[postgis-tickets] [PostGIS] #2251: [raster ] Rescaling raster chooses wrong values
PostGIS
trac at osgeo.org
Wed Mar 27 06:30:15 PDT 2013
#2251: [raster ] Rescaling raster chooses wrong values
----------------------+-----------------------------------------------------
Reporter: dzwarg | Owner: dustymugs
Type: defect | Status: assigned
Priority: critical | Milestone: PostGIS 2.1.0
Component: raster | Version: trunk
Keywords: |
----------------------+-----------------------------------------------------
Changes (by dustymugs):
* keywords: raster =>
* status: new => assigned
* version: 2.0.x => trunk
* component: postgis => raster
* milestone: => PostGIS 2.1.0
Comment:
The following should result in the same answer and exposes the error in
this ticket.
{{{
-- edge case
WITH foo AS (
SELECT ST_AddBand(ST_MakeEmptyRaster(10, 10, 0, 0, 1, -1, 0, 0,
0), 1, '8BUI', 1, 0) AS rast
)
SELECT
ST_Metadata(ST_Rescale(rast, 2, 2)) AS rescale,
ST_Metadata(ST_Resize(rast, 0.5, 0.5)) AS resize
FROM foo;
}}}
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2251#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list