]> granicus.if.org Git - postgis/commitdiff
Add another example (#218)
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 18 Nov 2009 19:54:35 +0000 (19:54 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 18 Nov 2009 19:54:35 +0000 (19:54 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4855 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_editor.xml

index 72baba965cd5556530af73243e134cf0ce3772ad..4228507cfa6ea9387612e8351dbdf05103c8bea7 100644 (file)
@@ -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)
                        </programlisting>
                </refsection>