[postgis-devel] [PostGIS] #895: FV.01 functions

PostGIS trac at osgeo.org
Thu Mar 31 16:21:57 PDT 2011


#895: FV.01 functions
-----------------------+----------------------------------------------------
 Reporter:  dustymugs  |       Owner:  pramsey              
     Type:  patch      |      Status:  new                  
 Priority:  medium     |   Milestone:  PostGIS Raster Future
Component:  postgis    |     Version:  trunk                
 Keywords:             |  
-----------------------+----------------------------------------------------
 Well, I believe I've completed the functions for FV.01.  The following
 functions have been added:

 ST_Band(rast raster, bandnums int[])

 ST_AsGDALRaster(rast raster, format text, options text[], srs text)

 ST_AsTiff(rast raster, options text[], srs text)

 ST_AsPNG(rast raster, options text[], srs text)

 ST_AsJPEG(rast raster, options text[], srs text)

 Each of the above have several variations.

 I've also added two ancillary function:

 ST_getGDALDrivers()
   for getting available and usable GDAL drivers on the server

 ST_srtext(rast raster)
   A bunch of the functions needed to get a spatial reference's
 srtext/proj4text to pass to the GDAL raster, so this function was written.

 I've added test cases to both test/core and test/regress though I think
 the test cases could be built upon.

 As my C skills were definitely rusty when I started this, please feel free
 to correct my errors and more importantly, let me know what they are.  I
 will admit, the code was easy to understand and well documented!

 Oh, I did make one tweak to raster/scripts/python/Makefile.in to accept
 the variable DESTDIR for when building packages.

 -bborie

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