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

PostGIS trac at osgeo.org
Fri Aug 29 00:54:35 PDT 2014


#2911: ST_Rescale changes extent
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  strk         
     Type:  defect   |      Status:  assigned     
 Priority:  blocker  |   Milestone:  PostGIS 2.1.4
Component:  raster   |     Version:  2.1.x        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by strk):

 Warping with a rotation still results in wrong output:
 {{{
 select x, y, m.width, m.height, m.skewx, m.skewy from generate_series(-1,
 1) x, generate_series(-1, 1) y, ST_AddBand(ST_MakeEmptyRaster(10, 10, x,
 y, 1, -1, 0, 0, 0), 1, '8BUI', 0, 0) r,
 st_metadata(_st_gdalwarp(r,'NearestNeighbor',
 0.125,NULL,NULL,NULL,NULL,NULL,1,1)) m;
  x  | y  | width | height | skewx | skewy
 ----+----+-------+--------+-------+-------
  -1 | -1 |    10 |     15 |     1 |     1
   0 | -1 |    10 |     15 |     1 |     1
   1 | -1 |    10 |     15 |     1 |     1
  -1 |  0 |    10 |     15 |     1 |     1
   0 |  0 |     1 |     12 |     1 |     1
   1 |  0 |    10 |     15 |     1 |     1
  -1 |  1 |    10 |     15 |     1 |     1
   0 |  1 |    10 |     15 |     1 |     1
   1 |  1 |    10 |     15 |     1 |     1
 (9 rows)
 }}}

 Trying to fix that I got the failures reported in #2912

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