From: Paul Ramsey Date: Wed, 18 Nov 2009 19:54:35 +0000 (+0000) Subject: Add another example (#218) X-Git-Tag: 1.5.0b1~207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=edd0c60df0d9f0f7f630ebd3cf92d52cbf769340;p=postgis Add another example (#218) git-svn-id: http://svn.osgeo.org/postgis/trunk@4855 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_editor.xml b/doc/reference_editor.xml index 72baba965..4228507cf 100644 --- a/doc/reference_editor.xml +++ b/doc/reference_editor.xml @@ -643,6 +643,12 @@ SELECT ST_AsText(ST_CollectionExtract(ST_GeomFromText('GEOMETRYCOLLECTION(GEOMET st_astext --------------- MULTIPOINT(0 0) +(1 row) + +SELECT ST_AsText(ST_CollectionExtract(ST_GeomFromText('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(LINESTRING(0 0, 1 1)),LINESTRING(2 2, 3 3))'),2)); +st_astext +--------------- +MULTILINESTRING((0 0, 1 1), (2 2, 3 3)) (1 row)