]> granicus.if.org Git - postgis/commitdiff
ST_AddBand out-db band uses width value for height
authorBborie Park <bkpark at ucdavis.edu>
Sat, 24 Jan 2015 17:26:59 +0000 (17:26 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Sat, 24 Jan 2015 17:26:59 +0000 (17:26 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13196 b70326c6-7e19-0410-871a-916f4a2858ee

NEWS
raster/rt_pg/rtpg_create.c

diff --git a/NEWS b/NEWS
index 64f7a98e1f0056c4f48dcb51df7f412e2c75dfb1..5bd1cd8a441bbe2bd29bfecc3ea1078c3409e453 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -81,6 +81,7 @@ PostGIS 2.2.0
            like geometry extent
   - #2822, Use @ operator instead of ST_CoveredBy() for raster
            max extent constraint
+  - #3020, ST_AddBand out-db bug where height using width value
 
  * Code refactoring *
 
index ac4cc5a318fcac1f3e4b2cfa2091c8519ee92417..e9d5e494b7eaf303cc5c4fe3cec4ef167dfb02b7 100644 (file)
@@ -773,7 +773,7 @@ Datum RASTER_addBandOutDB(PG_FUNCTION_ARGS)
 
        /* some raster info */
        width = rt_raster_get_width(raster);
-       height = rt_raster_get_width(raster);
+       height = rt_raster_get_height(raster);
 
        /* are rasters aligned? */
        _rast = rt_raster_new(1, 1);