<refsection>
<title>Examples</title>
- <programlisting>SELECT ST_AsText(ST_CollectionExtract(ST_GeomFromText('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POINT(0 0)))'),1));
- st_astext
- ---------------
- MULTIPOINT(0 0)
- (1 row)
+ <programlisting>-- Constants: 1 == POINT, 2 == LINESTRING, 3 == POLYGON
+SELECT ST_AsText(ST_CollectionExtract(ST_GeomFromText('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(POINT(0 0)))'),1));
+st_astext
+---------------
+MULTIPOINT(0 0)
+(1 row)
</programlisting>
</refsection>
<refsection>