From: Regina Obe Date: Tue, 17 May 2011 03:02:25 +0000 (+0000) Subject: document ST_GDALDrivers and back reference to ST_AsGDALRaster X-Git-Tag: 2.0.0alpha1~1647 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5ec07906fa8405f53898834965c1e264eeed621;p=postgis document ST_GDALDrivers and back reference to ST_AsGDALRaster git-svn-id: http://svn.osgeo.org/postgis/trunk@7164 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_raster.xml b/doc/reference_raster.xml index 0f794c273..3151981fb 100644 --- a/doc/reference_raster.xml +++ b/doc/reference_raster.xml @@ -668,6 +668,105 @@ postgis_raster_lib_version + + + + + + ST_GDALDrivers + + Returns a list of raster formats supported by your lib gdal. These are the formats you can output your raster using ST_AsGDALRaster. + + + + + + setof record ST_GDALDrivers + integer OUT idx + text OUT short_name + text OUT long_name + text OUT create_options + + + + + + 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 and xml formatted list of create_options for the specific driver. + + Availability: 2.0.0 - requires GDAL >= 1.6.0. + + + + Examples + + SELECT short_name, long_name +FROM st_gdaldrivers() +ORDER BY short_name; + short_name | long_name +----------------+-------------------------------------- +AAIGrid | Arc/Info ASCII Grid +DTED | DTED Elevation Raster +EHdr | ESRI .hdr Labelled +FIT | FIT Image +GIF | Graphics Interchange Format (.gif) +GSAG | Golden Software ASCII Grid (.grd) +GSBG | Golden Software Binary Grid (.grd) +GTiff | GeoTIFF +HF2 | HF2/HFZ heightfield raster +HFA | Erdas Imagine Images (.img) +ILWIS | ILWIS Raster Map +INGR | Intergraph Raster +JPEG | JPEG JFIF +KMLSUPEROVERLAY | Kml Super Overlay +NITF | National Imagery Transmission Format +PNG | Portable Network Graphics +R | R Object Data Store +SAGA | SAGA GIS Binary Grid (.sdat) +SRTMHGT | SRTMHGT File Format +USGSDEM | USGS Optional ASCII DEM (and CDED) +VRT | Virtual Raster +XPM | X11 PixMap Format + + +-- Output the create options XML column of Geo Tiff as a table -- +-- Note you can use these creator options in ST_AsGDALRaster options argument +SELECT unnest(xpath('/CreationOptionList/Option/@name', create_options::xml)) As opt_name, + unnest(xpath('/CreationOptionList/Option/@description', create_options::xml)) As opt_descrip +FROM st_gdaldrivers() +WHERE short_name = 'GTiff'; + + opt_name | opt_descrip +--------------------+---------------------------------------------------------------------- + COMPRESS | Predictor Type + PREDICTOR | JPEG quality 1-100 + JPEG_QUALITY | DEFLATE compression level 1-9 + ZLEVEL | BITS for sub-byte files (1-7), sub-uint16 (9-15), sub-uint 32 (17-31) + NBITS | Switch to tiled format + INTERLEAVE | Write out world file + TILED | Write out .RPB (RPC) file + TFW | Tile Width + RPB | Tile/Strip Height + BLOCKXSIZE | Can newly created files have missing blocks? + BLOCKYSIZE | Mark first extrasample as being alpha + PHOTOMETRIC | Force creation of BigTIFF file + SPARSE_OK | Force endianness of created file. For DEBUG purpose mostly + ALPHA | Force copy of overviews of source dataset (CreateCopy()) + PROFILE | Predictor Type + PIXELTYPE | JPEG quality 1-100 +: +: + + + + + + See Also + + + @@ -3061,7 +3160,7 @@ FROM dummy_rast WHERE rid=1; Returns the raster tile in the designated format. Arguments are itemized below: - format format to output. This is dependent on the drivers compiled in your libgdal library. Generally available are 'JPEG', 'GTIff', 'PNG'. Use ST_GDALRasters() to get a list of formats supported by your library. + format format to output. This is dependent on the drivers compiled in your libgdal library. Generally available are 'JPEG', 'GTIff', 'PNG'. Use to get a list of formats supported by your library. options text array of GDAL options. Valid options are dependent on the format. Refer to GDAL Raster format options for more details. srs The proj4text or srtext (from spatial_ref_sys) to embed in the image @@ -3098,7 +3197,7 @@ FROM dummy_rast WHERE rid=2; See Also - +