Ticket #895 (closed patch: invalid)
[raster]: FV.01 functions
|Reported by:||dustymugs||Owned by:||dustymugs|
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:
for getting available and usable GDAL drivers on the server
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.