From: Bborie Park Date: Mon, 14 May 2012 23:28:56 +0000 (+0000) Subject: Addition of some commented code. Might be useful if an option is added X-Git-Tag: 2.0.1~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0df24a127d6530893adb18a37e03e076aa538a25;p=postgis Addition of some commented code. Might be useful if an option is added to output the VRTs used in the process of loading rasters git-svn-id: http://svn.osgeo.org/postgis/trunk@9734 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/raster/loader/raster2pgsql.c b/raster/loader/raster2pgsql.c index b6e371f63..942301633 100644 --- a/raster/loader/raster2pgsql.c +++ b/raster/loader/raster2pgsql.c @@ -1365,7 +1365,7 @@ build_overview(int idx, RTLOADERCFG *config, RASTERINFO *info, int ovx, STRINGBU /* create VRT dataset */ hdsDst = VRTCreate(tile_size[0], tile_size[1]); /* - GDALSetDescription(hdsDst, fn); + GDALSetDescription(hdsDst, fn); */ GDALSetProjection(hdsDst, info->srs); GDALSetGeoTransform(hdsDst, gt); @@ -1718,6 +1718,10 @@ convert_raster(int idx, RTLOADERCFG *config, RASTERINFO *info, STRINGBUFFER *til /* each tile is a VRT with constraints set for just the data required for the tile */ for (ytile = 0; ytile < ntiles[1]; ytile++) { for (xtile = 0; xtile < ntiles[0]; xtile++) { + /* + char fn[100]; + sprintf(fn, "/tmp/tile%d.vrt", (ytile * ntiles[0]) + xtile); + */ /* compute tile's upper-left corner */ GDALApplyGeoTransform( @@ -1734,6 +1738,9 @@ convert_raster(int idx, RTLOADERCFG *config, RASTERINFO *info, STRINGBUFFER *til /* create VRT dataset */ hdsDst = VRTCreate(info->tile_size[0], info->tile_size[1]); + /* + GDALSetDescription(hdsDst, fn); + */ GDALSetProjection(hdsDst, info->srs); GDALSetGeoTransform(hdsDst, gt);