Fixed dimension error of bands when using ST_Tile on out-db rasters.

Ticket #2198

git-svn-id: http://svn.osgeo.org/postgis/trunk@11079 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Bborie Park 2013-02-04 19:07:28 +00:00
parent 899d874852
commit d4416b32f2
3 changed files with 3 additions and 2 deletions

2
NEWS
View file

@ -140,6 +140,8 @@ PostGIS 2.1.0
- #2182, Fix issue with outdb rasters with no SRID and ST_Resize
- #2188, Fix function parameter value overflow that caused problems
when copying data from a GDAL dataset
- #2198, Fix incorrect dimensions used when generating bands of out-db
rasters in ST_Tile()
PostGIS 2.0.3
2013/MM/DD

View file

@ -1587,7 +1587,6 @@ rt_band_load_offline_data(rt_band band) {
double gt[6] = {0.};
double ogt[6] = {0.};
double offset[2] = {0};
int i = 0;
rt_raster _rast = NULL;
rt_band _band = NULL;

View file

@ -5825,7 +5825,7 @@ Datum RASTER_tile(PG_FUNCTION_ARGS)
rt_band_get_ext_band_num(_band, &bandnum);
band = rt_band_new_offline(
arg2->raster.width, arg2->raster.height,
width, height,
pixtype,
hasnodata, nodataval,
bandnum, rt_band_get_ext_path(_band)