]> granicus.if.org Git - postgis/commitdiff
Addition of some commented code. Might be useful if an option is added
authorBborie Park <bkpark at ucdavis.edu>
Mon, 14 May 2012 23:28:56 +0000 (23:28 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Mon, 14 May 2012 23:28:56 +0000 (23:28 +0000)
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

raster/loader/raster2pgsql.c

index b6e371f632e81c22c848e02c30dc82ebc6c3a772..9423016335cf1ad31008e5aeeaba8c10960a6f33 100644 (file)
@@ -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);