From: Bborie Park Date: Mon, 4 Feb 2013 19:07:28 +0000 (+0000) Subject: Fixed dimension error of bands when using ST_Tile on out-db rasters. X-Git-Tag: 2.1.0beta2~221 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d4416b32f22c2369de4d6e58b5a8df1747fc8f13;p=postgis 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 --- diff --git a/NEWS b/NEWS index 8fdc5265d..57b66233e 100644 --- a/NEWS +++ b/NEWS @@ -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 diff --git a/raster/rt_core/rt_api.c b/raster/rt_core/rt_api.c index c2e215304..20903e32a 100644 --- a/raster/rt_core/rt_api.c +++ b/raster/rt_core/rt_api.c @@ -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; diff --git a/raster/rt_pg/rt_pg.c b/raster/rt_pg/rt_pg.c index f5815821e..973947658 100644 --- a/raster/rt_pg/rt_pg.c +++ b/raster/rt_pg/rt_pg.c @@ -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)