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

PostGIS trac at osgeo.org
Thu Jul 7 07:24:05 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 dustymugs):

 I think having four (technically five including ST_Transform as all these
 functions run against rt_raster_gdal_warp at the lowest level) works
 better due to cleaner function declaration and purpose.  Having five
 different functions especially helps with being able to specify default
 parameters.

 The disadvantage with having only ST_Resample (not counting ST_Transform
 due to it being a parallel to the geometry version) is that there is no
 easy way to maintain a consistent order for the function parameters if you
 want to make variations for just specific elements and still be able to
 set default parameter values.

 I'm of the opinion that people will preferentially use the shortcut
 variations instead of the full ST_Resample.  Say for example, the user
 wants to change the upper left corner:

 {{{
 ST_Resample(
         rast,
         NULL,
         0,
         0,
         -500000,
         400000
 )
 }}}

 The above call is more involved than calling:

 {{{
 ST_Realign(
         rast,
         -500000,
         400000
 )
 }}}

 I would expect that if a user needs to do multiple resampling operations
 that isn't addressed in a single variation (such as variation #1 of
 ST_Realign) and runs as efficiently as possible, they'd use ST_Resample.

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