[postgis-devel] [PostGIS] #1114: [raster] ST_Resample

PostGIS trac at osgeo.org
Sat Jul 9 04:44:39 PDT 2011


#1114: [raster] ST_Resample
----------------------------+-----------------------------------------------
 Reporter:  dustymugs       |       Owner:  dustymugs            
     Type:  task            |      Status:  new                  
 Priority:  medium          |   Milestone:  PostGIS Raster Future
Component:  postgis raster  |     Version:  trunk                
 Keywords:                  |  
----------------------------+-----------------------------------------------

Comment(by pracine):

 Replying to [comment:11 dustymugs]:
 > Have you had the chance to read my question regarding ST_Transform (and
 thus ST_Resample) in the devel mailing list?  If not, I'll post the
 content here...
 >
 > From what I can tell, the GDAL warp API underlying ST_Resample
 automatically de-skews the input raster.  Is this what we want?  Or do we
 want the input raster's skew maintained in the resampled raster?

 Shoul I understand here that it is not possible to resample to a rotated
 grid using GDAL?

 I agree that it is not clear what should be the desired behaviour with the
 first series of variant when the raster is rotated... If the raster is not
 rotated only changing the pixel size make sense (variant 1 and 3). You
 want the upperleft corner to stay the same. But what if the raster is
 rotated? I would solve this like this:

 1) Take for granted that when no skewx and skewy are provided they are 0
 and hence we lose the rotation if there was one.

 2) Add a variant to the first series taking skewx ans skewy (like in the
 second series) allowing to specify the new rotation if we want to keep
 one.

 Do you want me to update the specs to reflect that?

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1114#comment:13>
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-devel mailing list