From: Regina Obe Date: Tue, 21 Jun 2011 05:45:01 +0000 (+0000) Subject: more fine tuning of output of driver options X-Git-Tag: 2.0.0alpha1~1385 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=338c68568ea3c0c931fb61081c5afb3e4405f114;p=postgis more fine tuning of output of driver options git-svn-id: http://svn.osgeo.org/postgis/trunk@7442 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_raster.xml b/doc/reference_raster.xml index fb6cf7245..270c96657 100644 --- a/doc/reference_raster.xml +++ b/doc/reference_raster.xml @@ -890,13 +890,13 @@ postgis_raster_lib_version Description Returns a list of raster formats short_name,long_name and creator options of each format supported by your lib gdal. Use the short_name as input in the format parameter of . - Options vary depending on what drivers your libgdal was compiled with. create_options returns an xml formatted set of CreationOptionList/Option consisting of name and optional type,description for each creator option for the specific driver. + Options vary depending on what drivers your libgdal was compiled with. create_options returns an xml formatted set of CreationOptionList/Option consisting of name and optional type,description and set of VALUE for each creator option for the specific driver. Availability: 2.0.0 - requires GDAL >= 1.6.0. - Examples + Examples: List of Drivers SELECT short_name, long_name FROM st_gdaldrivers() @@ -927,6 +927,8 @@ VRT | Virtual Raster XPM | X11 PixMap Format + +Example: List of options for each driver -- Output the create options XML column of JPEG as a table -- -- Note you can use these creator options in ST_AsGDALRaster options argument SELECT (xpath('@name', g.opt))[1]::text As oname, @@ -943,36 +945,103 @@ WHERE short_name = 'JPEG') As g; WORLDFILE | boolean | --- Output the create options XML column for GTiff as a table -- --- Note you can use these creator options in ST_AsGDALRaster options argument + +-- raw xml output for creator options for GeoTiff -- +SELECT create_options +FROM st_gdaldrivers() +WHERE short_name = 'GTiff'; + + + + + + + + + +