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

PostGIS trac at osgeo.org
Fri Jul 8 14:47:19 PDT 2011


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

Comment(by pracine):

 It is not explicit in the spec but you never want to do that... You would
 lose most of your raster. What you might want to do however it to realign
 a raster so it matches the grid of a second one. To do that you pass the
 upper left corner x and y of the second to ST_Resample and you just snap
 the upper left corner of the first to the grid defined by this x and y and
 the provided pixelsize.

 In other words x and y are not really the upperleft corner of the second
 raster but just the upper left corner of any pixel of the grid you want to
 snap to.

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