From ddcfa9e1e1ef6eb5e549ad637dfc65dd926974a1 Mon Sep 17 00:00:00 2001 From: Bborie Park Date: Wed, 31 Oct 2012 00:42:00 +0000 Subject: [PATCH] Changed when the isnodata check takes place for out-db raster tiles git-svn-id: http://svn.osgeo.org/postgis/trunk@10603 b70326c6-7e19-0410-871a-916f4a2858ee --- raster/loader/raster2pgsql.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/raster/loader/raster2pgsql.c b/raster/loader/raster2pgsql.c index efafb0cf1..020ab5456 100644 --- a/raster/loader/raster2pgsql.c +++ b/raster/loader/raster2pgsql.c @@ -1691,7 +1691,7 @@ convert_raster(int idx, RTLOADERCFG *config, RASTERINFO *info, STRINGBUFFER *til /* each tile is a raster */ for (ytile = 0; ytile < ntiles[1]; ytile++) { for (xtile = 0; xtile < ntiles[0]; xtile++) { - + /* compute tile's upper-left corner */ GDALApplyGeoTransform( info->gt, @@ -1725,9 +1725,6 @@ convert_raster(int idx, RTLOADERCFG *config, RASTERINFO *info, STRINGBUFFER *til return 0; } - /* inspect each band of raster where band is NODATA */ - rt_band_check_is_nodata(band); - /* add band to raster */ if (rt_raster_add_band(rast, band, rt_raster_get_num_bands(rast)) == -1) { rterror(_("convert_raster: Could not add offlineband to raster")); @@ -1735,6 +1732,9 @@ convert_raster(int idx, RTLOADERCFG *config, RASTERINFO *info, STRINGBUFFER *til raster_destroy(rast); return 0; } + + /* inspect each band of raster where band is NODATA */ + rt_band_check_is_nodata(band); } /* convert rt_raster to hexwkb */ -- 2.40.0