From 4ba2305eb2057b996d95f111efd4523e3fcb38e7 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Sat, 10 Mar 2012 13:44:14 +0000 Subject: [PATCH] More wrapping (xmllint) git-svn-id: http://svn.osgeo.org/postgis/trunk@9464 b70326c6-7e19-0410-871a-916f4a2858ee --- doc/reference_raster.xml | 89 ++++++++++++++++++++++++++++++++++------ 1 file changed, 77 insertions(+), 12 deletions(-) diff --git a/doc/reference_raster.xml b/doc/reference_raster.xml index 42fb37319..5cccdd988 100644 --- a/doc/reference_raster.xml +++ b/doc/reference_raster.xml @@ -4292,7 +4292,7 @@ rid | exclude_nodata | include_nodata Description Returns set of histogram records consisting of min,max, count, percent for a given raster band for each bin. If no band is specified nband defaults to 1. - By default only considers pixel values not equal to the nodata value . Set exclude_nodata_value to false to get count all pixels. + By default only considers pixel values not equal to the nodata value . Set exclude_nodata_value to false to get count all pixels. @@ -4626,7 +4626,10 @@ FROM (SELECT band, ST_SummaryStats('o_4_boston','rast', band,true,0.25) As stats See Also - , + +, + + @@ -4923,10 +4926,20 @@ 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 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 + + + 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 + + Availability: 2.0.0 - requires GDAL >= 1.6.0. @@ -5011,13 +5024,32 @@ FROM dummy_rast WHERE rid=2; Returns the selected bands of the raster as a single Joint Photographic Exports Group Image (JPEG). Use if you need to export as less common raster types. If no band is specified and 1 or more than 3 bands, then only the first band is used. If 3 bands then all 3 bands are used. There are many variants of the function with many options. These are itemized below: + nband is for single band exports. + + nbands is an array of bands to export (note that max is 3 for JPEG) 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 + - quality number from 0 to 100. The higher the number the crisper the image. - options text Array of GDAL options as defined for JPEG (look at create_options for JPEG ). For JPEG valid ones are PROGRESSIVE ON or OFF and QUALITY a range from 0 to 100 and default to 75. Refer to GDAL Raster format options for more details. + + + quality number from 0 to 100. The higher the number the crisper the image. + + + + + options text Array + of GDAL options as defined for JPEG + (look at create_options for JPEG ). For JPEG + valid ones are PROGRESSIVE + ON or OFF and QUALITY a range + from 0 to 100 and default to 75. Refer to GDAL + Raster format options for more details. + Availability: 2.0.0 - requires GDAL >= 1.6.0. @@ -5093,14 +5125,33 @@ SELECT ST_AsJPEG(rast,ARRAY[2,1,3],ARRAY['QUALITY=90','PROGRESSIVE=ON']) As rast 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 srid is specified then then srid of the raster is used. These are itemized below: + nband is for single band exports. + + 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 number from 1 to 9. The higher the number the greater the compression. - options text Array of GDAL options as defined for PNG (look at create_options for PNG of ). For PNG valid one is only ZLEVEL (amount of time to spend on compression -- default 6) e.g. ARRAY['ZLEVEL=9']. - WORLDFILE is not allowed since the function would have to output two outputs. Refer to GDAL Raster format options for more details. + + + compression number from 1 to 9. The higher the number the greater the compression. + + + + + options text Array of GDAL + options as defined for PNG (look at create_options + for PNG of ). For PNG valid one is only ZLEVEL (amount + of time to spend on compression -- default 6) + e.g. ARRAY['ZLEVEL=9']. + WORLDFILE is not allowed since the function + would have to output two outputs. Refer to GDAL + Raster format options for more details. + Availability: 2.0.0 - requires GDAL >= 1.6.0. @@ -5169,11 +5220,25 @@ FROM dummy_rast WHERE rid=2; Returns the selected bands of the raster as a single Tagged Image File Format (TIFF). If no band is specified, will try to use all bands. This is a wrapper around . 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 some other percent), LZW, JPEG, DEFLATE9. - 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. - srid srid of spatial_ref_sys of the raster. This is used to populate the georeference information + + +compression Compression expression -- JPEG90 (or some other percent), LZW, JPEG, DEFLATE9. + + + + +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. + + + + +srid srid of spatial_ref_sys of the raster. This is used to populate the georeference information + + Availability: 2.0.0 - requires GDAL >= 1.6.0. -- 2.40.0