[postgis-commits] svn - r3509 - trunk/doc
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Fri Jan 9 06:15:30 PST 2009
Author: robe
Date: 2009-01-09 06:15:30 -0800 (Fri, 09 Jan 2009)
New Revision: 3509
Modified:
trunk/doc/using_postgis.xml
Log:
Missed some ST_ spots.
Modified: trunk/doc/using_postgis.xml
===================================================================
--- trunk/doc/using_postgis.xml 2009-01-09 13:49:52 UTC (rev 3508)
+++ trunk/doc/using_postgis.xml 2009-01-09 14:15:30 UTC (rev 3509)
@@ -64,7 +64,7 @@
interfaces:</para>
<programlisting>bytea WKB = ST_AsBinary(geometry);
-text WKT = asText(geometry);
+text WKT = ST_AsText(geometry);
geometry = ST_GeomFromWKB(bytea WKB, SRID);
geometry = ST_GeometryFromText(text WKT, SRID);</programlisting>
@@ -1165,7 +1165,7 @@
grab a "map frame" worth of data for display. Using a "BOX3D" object for
the frame, such a query looks like this:</para>
- <programlisting>SELECT AsText(roads_geom) AS geom
+ <programlisting>SELECT ST_AsText(roads_geom) AS geom
FROM roads
WHERE
roads_geom && SetSRID('BOX3D(191232 243117,191232 243119)'::box3d,-1);</programlisting>
@@ -2151,7 +2151,7 @@
* Create a statement and execute a select query.
*/
Statement s = conn.createStatement();
- ResultSet r = s.executeQuery("select AsText(geom) as geom,id from geomtable");
+ ResultSet r = s.executeQuery("select ST_AsText(geom) as geom,id from geomtable");
while( r.next() ) {
/*
* Retrieve the geometry as an object then cast it to the geometry type.
More information about the postgis-commits
mailing list