mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-24 09:02:37 +00:00
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:
parent
4cb5020d6a
commit
ddcfa9e1e1
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue