[postgis-tickets] [PostGIS] #2911: ST_Rescale changes extent

PostGIS trac at osgeo.org
Thu Aug 28 01:42:45 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:          |  
--------------------+-------------------------------------------------------

Comment(by strk):

 In other words, ST_Rescale does not change the scale, but just the size,
 although the parameters are floating point numbers. Noticeable are the
 "default geotransform" notices:

 {{{
 pg21=# with data as (
    SELECT ST_AddBand(
           ST_MakeEmptyRaster(10, 10, 0, 0, 1, -1, 0, 0, 0),
           1, '8BUI', 0, 0
         ) r
  ),
  meta as (
    SELECT st_metadata(st_rescale(r,2.0,-2.0)) m from data
  ) select (m).* from meta;
 NOTICE:  Raster has default geotransform. Adjusting metadata for use of
 GDAL Warp API
 CONTEXT:  SQL function "st_rescale" statement 1
 -[ RECORD 1 ]--
 upperleftx | 0
 upperlefty | 0
 width      | 5
 height     | 5
 scalex     | 1
 scaley     | -1
 skewx      | 0
 skewy      | 0
 srid       | 0
 numbands   | 1

 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2911#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