[postgis-devel] [PostGIS] #1267: [raster] Add manual height/width support to ST_Resample

PostGIS trac at osgeo.org
Tue Nov 15 07:14:17 PST 2011


#1267: [raster] Add manual height/width support to ST_Resample
-----------------------------+----------------------------------------------
  Reporter:  serveralex      |       Owner:  dustymugs    
      Type:  enhancement     |      Status:  closed       
  Priority:  medium          |   Milestone:  PostGIS 2.0.0
 Component:  postgis raster  |     Version:  trunk        
Resolution:  fixed           |    Keywords:  history      
-----------------------------+----------------------------------------------
Changes (by dustymugs):

  * status:  reopened => closed
  * resolution:  => fixed


Comment:

 As ST_Resample behaves the same way as GDAL gdalwarp utility, this latest
 change maintains that behavior.  gdalwarp does not permit specifying scale
 and width/height at the same time.

 http://gdal.org/gdalwarp.html

 Look at switches -tr and -ts.

 You can only have one or the other as they're dependent upon one another.
 Using GDAL's suggested extent for the warped raster, you can compute the
 dependent variable.  If width/height is provided, the scales are computed
 for the suggested extent.  If scale is provided, the width and height are
 also computed.

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