From: Regina Obe Date: Wed, 18 May 2011 05:43:38 +0000 (+0000) Subject: Document ST_AsTIFF and fix some missttatements about ST_ASPNG. Also pretend like... X-Git-Tag: 2.0.0alpha1~1629 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4facdf589adfed9106904ed1c299796d20c8859c;p=postgis Document ST_AsTIFF and fix some missttatements about ST_ASPNG. Also pretend like we are using default args already git-svn-id: http://svn.osgeo.org/postgis/trunk@7182 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_raster.xml b/doc/reference_raster.xml index 90218174f..d40ad46e9 100644 --- a/doc/reference_raster.xml +++ b/doc/reference_raster.xml @@ -3204,7 +3204,7 @@ FROM dummy_rast WHERE rid=2; ST_AsPNG - Return the raster tile selected bands as a single portable network graphics (PNG) image (byte array). If no band is specified, band 1 is assumed. + Return the raster tile selected bands as a single portable network graphics (PNG) image (byte array). If no band is specified, then the first 3 bands are used. @@ -3258,7 +3258,7 @@ FROM dummy_rast WHERE rid=2; Description - Returns the selected bands of the raster as a single Portable Network Graphics Image (PNG). Use if you need to export as less common raster types. There are many variants of the function with many options. These are itemized below: + Returns the selected bands of the raster as a single Portable Network Graphics Image (PNG). Use if you need to export as less common raster types. If no band is specified, then the first 3 bands are exported. There are many variants of the function with many options. If no srs is specified then then srs of the raster is used. These are itemized below: nband is for single band exports. @@ -3289,6 +3289,74 @@ FROM dummy_rast WHERE rid=2; , + + + + ST_AsTIFF + Return the raster tile selected bands as a single TIFF image (byte array). If no band is specified, band 1 is assumed. + + + + + + bytea ST_AsTIFF + raster rast + text[] [options] + text [srs] + + + bytea ST_AsTIFF + raster rast + text [compression] + text [srs] + + + bytea ST_AsPNG + raster rast + integer[] nbands + integer [compression] + integer [srs] + + + bytea ST_AsPNG + raster rast + integer[] nbands + text[] options + integer [srs] + + + + + + Description + + Returns the selected bands of the raster as a single Tagged Image File Format (TIFF). Use if you need to export as less common raster types. There are many variants of the function with many options. If no spatial reference SRS text is present, the spatial reference of the raster is used. These are itemized below: + + + nbands is an array of bands to export (note that max is 3 for PNG) and the order of the bands is RGB. e.g ARRAY[3,2,1] means map band 3 to Red, band 2 to green and band 1 to blue + + compression Compression expression -- JPEG90 (or someother percent), LZMA, JPEG, DEFALTE9 + options text Array of GDAL create options as defined for GTiff (look at create_options for GTiff of ). or refer to GDAL Raster format options for more details. + + + Availability: 2.0.0 - requires GDAL >= 1.6.0. + + + + Examples: Use jpeg compression 90% + + SELECT ST_AsTIFF(rast, 'JPEG90') As rasttiff +FROM dummy_rast WHERE rid=2; + + + + + + + See Also + , + +