]> granicus.if.org Git - postgis/commitdiff
Put constants reference in the example, so people see it (nobody reads documentation...
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 18 Nov 2009 19:53:17 +0000 (19:53 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 18 Nov 2009 19:53:17 +0000 (19:53 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4854 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_editor.xml

index 7b91cbea8715082a70c2e4f7cdac8a9627b9b0d6..72baba965cd5556530af73243e134cf0ce3772ad 100644 (file)
@@ -638,11 +638,12 @@ MULTILINESTRING((-45.2 -33.2,-46 -32),(-29 -27,-30 -29.7,-36 -31,-45 -33))
                <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>