From e8c1d3b11912894d722fbc65c080f574e6dd066c Mon Sep 17 00:00:00 2001 From: Regina Obe Date: Sun, 11 Apr 2010 23:21:47 +0000 Subject: [PATCH] start documenting ST_DumpAsPolygons. Will provide examples once get it to stop crashing on me. git-svn-id: http://svn.osgeo.org/postgis/trunk@5530 b70326c6-7e19-0410-871a-916f4a2858ee --- doc/reference_wktraster.xml | 49 ++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/doc/reference_wktraster.xml b/doc/reference_wktraster.xml index 3ea596ca2..e14f1e85b 100644 --- a/doc/reference_wktraster.xml +++ b/doc/reference_wktraster.xml @@ -351,7 +351,7 @@ VALUES (1, See Also - , + , @@ -1482,6 +1482,53 @@ FROM (SELECT ST_SetRotation(rast,0.1,0.1) As rast , , + + + + ST_DumpAsPolygons + Returns a set of geomval (geom,val) rows, from a given raster band. If no band number is specified, band num defaults to 1. + + + + + + geomval[] ST_DumpAsPolygons + raster rast + + + + geomval[] ST_DumpAsPolygons + raster rast + integer band_num + + + + + + Description + This is a set-returning function (SRF). It returns a set of + geomval rows, formed by a geometry (geom) and a pixel band value (val). + Each polygon is the union of all pixels for that band that have the same pixel value denoted by val + + ST_DumpAsPolygon is useful for polygonizing rasters. It is the + reverse of a GROUP BY in that it creates new rows. For example it + can be used to expand a single raster into multiple POLYGONS/MULTIPOLYGONS. + + Availability: Requires GDAL 1.6 or higher. + Still under development and testing. + + + + Examples + + Forthcoming + + + + See Also + + + -- 2.50.1