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

PostGIS trac at osgeo.org
Mon Nov 14 13:40:39 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):

  * keywords:  => history
  * status:  assigned => closed
  * resolution:  => fixed
  * milestone:  PostGIS Raster Future => PostGIS 2.0.0


Comment:

 Added support for width/height in r8153.

 The function signature changes are:

 {{{
 _st_resample(
         rast raster,
         algorithm text DEFAULT 'NearestNeighbour', maxerr double precision
 DEFAULT 0.125,
         srid integer DEFAULT NULL,
         scalex double precision DEFAULT 0, scaley double precision DEFAULT
 0,
         gridx double precision DEFAULT NULL, gridy double precision
 DEFAULT NULL,
         skewx double precision DEFAULT 0, skewy double precision DEFAULT
 0,
         width integer DEFAULT NULL, height integer DEFAULT NULL
 )
 }}}

     width: the number of columns in the raster.  width/height are mutually
 exclusive to scalex/scaley

     height: the number of rows in the raster.  width/height are mutually
 exclusive to scalex/scaley

 {{{
 st_resample(
         rast raster,
         ref raster,
         algorithm text DEFAULT 'NearestNeighbour',
         maxerr double precision DEFAULT 0.125,
         usescale boolean DEFAULT TRUE
 )
 }}}

     usescale: if FALSE, the reference raster's width and height are used
 instead of the X and Y scales.

 New function signatures are:

 {{{
 st_resample(
         rast raster,
         width integer, height integer,
         srid integer DEFAULT NULL,
         gridx double precision DEFAULT NULL, gridy double precision
 DEFAULT NULL,
         skewx double precision DEFAULT 0, skewy double precision DEFAULT
 0,
         algorithm text DEFAULT 'NearestNeighbour', maxerr double precision
 DEFAULT 0.125
 )
 }}}

 {{{
 st_resample(
         rast raster,
         ref raster,
         usescale boolean,
         algorithm text DEFAULT 'NearestNeighbour',
         maxerr double precision DEFAULT 0.125
 )
 }}}

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