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
This commit is contained in:
Bborie Park 2012-10-31 00:42:00 +00:00
parent 4cb5020d6a
commit ddcfa9e1e1

View file

@ -1691,7 +1691,7 @@ convert_raster(int idx, RTLOADERCFG *config, RASTERINFO *info, STRINGBUFFER *til
/* each tile is a raster */ /* each tile is a raster */
for (ytile = 0; ytile < ntiles[1]; ytile++) { for (ytile = 0; ytile < ntiles[1]; ytile++) {
for (xtile = 0; xtile < ntiles[0]; xtile++) { for (xtile = 0; xtile < ntiles[0]; xtile++) {
/* compute tile's upper-left corner */ /* compute tile's upper-left corner */
GDALApplyGeoTransform( GDALApplyGeoTransform(
info->gt, info->gt,
@ -1725,9 +1725,6 @@ convert_raster(int idx, RTLOADERCFG *config, RASTERINFO *info, STRINGBUFFER *til
return 0; return 0;
} }
/* inspect each band of raster where band is NODATA */
rt_band_check_is_nodata(band);
/* add band to raster */ /* add band to raster */
if (rt_raster_add_band(rast, band, rt_raster_get_num_bands(rast)) == -1) { if (rt_raster_add_band(rast, band, rt_raster_get_num_bands(rast)) == -1) {
rterror(_("convert_raster: Could not add offlineband to raster")); 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); raster_destroy(rast);
return 0; return 0;
} }
/* inspect each band of raster where band is NODATA */
rt_band_check_is_nodata(band);
} }
/* convert rt_raster to hexwkb */ /* convert rt_raster to hexwkb */