[postgis-tickets] [PostGIS] #2911: ST_Rescale changes extent
PostGIS
trac at osgeo.org
Thu Aug 28 01:27:34 PDT 2014
#2911: ST_Rescale changes extent
--------------------+-------------------------------------------------------
Reporter: strk | Owner: dustymugs
Type: defect | Status: new
Priority: high | Milestone: PostGIS 2.1.4
Component: raster | Version: 2.1.x
Keywords: |
--------------------+-------------------------------------------------------
According to documentation ( http://postgis.net/docs/RT_ST_Rescale.html ),
ST_Rescale should only change the pixel scale, by retaining (or at most
slightly enlarging) the extent of a raster.
While it mostly work that way, I've found this input to be handled
differently, by retaining the same scale and halving the extent instead
(!!)
{{{
0100000100000000000000F03F000000000000F0BF0000000000000000000000000000000000000000000000000000000000000000000000000A000A00640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
}}}
Its metadata:
{{{
upperleftx | 0
upperlefty | 0
width | 10
height | 10
scalex | 1
scaley | -1
skewx | 0
skewy | 0
srid | 0
numbands | 1
}}}
Can be created with:
{{{
SELECT ST_AddBand(
ST_MakeEmptyRaster(10, 10, 0, 0, 1, -1, 0, 0, 0),
1, '8BUI', 0, 0
);
}}}
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2911>
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