12.07.2015 Views

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PostGIS</strong> <strong>1.5.8</strong> <strong>Manual</strong>223 / 310DescriptionThis set-returning function (SRF) returns a set of geometry_dump rows formed by a geometry (geom) and an array of integers(path).The geom component of geometry_dump are all the POINTs that make up the supplied geometryThe path component of geometry_dump (an integer[]) is an index reference enumerating the POINTs of the suppliedgeometry. For example, if a LINESTRING is supplied, a path of {i} is returned where i is the nth coordinate in the LIN-ESTRING. If a POLYGON is supplied, a path of {i,j} is returned where i is the outer ring followed by the inner rings and jenumerates the POINTs.Availability: 1.5.0This function supports 3d and will not drop the z-index.This method supports Circular Strings and CurvesExamplesSELECT path, ST_AsText(geom)FROM (SELECT (ST_DumpPoints(g.geom)).*FROM(SELECT’GEOMETRYCOLLECTION(POINT ( 0 1 ),LINESTRING ( 0 3, 3 4 ),POLYGON (( 2 0, 2 3, 0 2, 2 0 )),POLYGON (( 3 0, 3 3, 6 3, 6 0, 3 0 ),( 5 1, 4 2, 5 2, 5 1 )),MULTIPOLYGON ((( 0 5, 0 8, 4 8, 4 5, 0 5 ),( 1 6, 3 6, 2 7, 1 6 )),(( 5 4, 5 8, 6 7, 5 4 ))))’::geometry AS geom) AS g) j;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!