[postgis-commits] svn - r2969 - trunk/doc

postgis-commits at postgis.refractions.net postgis-commits at postgis.refractions.net
Tue Sep 16 06:35:08 PDT 2008


Author: robe
Date: 2008-09-16 06:35:08 -0700 (Tue, 16 Sep 2008)
New Revision: 2969

Modified:
   trunk/doc/faq.xml
Log:
Cleanup of FAQ

Modified: trunk/doc/faq.xml
===================================================================
--- trunk/doc/faq.xml	2008-09-16 13:17:08 UTC (rev 2968)
+++ trunk/doc/faq.xml	2008-09-16 13:35:08 UTC (rev 2969)
@@ -40,7 +40,7 @@
 VALUES (
   1, 
   'First Geometry', 
-  GeomFromText('LINESTRING(2 3,4 5,6 5,7 8)', -1)
+  ST_GeomFromText('LINESTRING(2 3,4 5,6 5,7 8)', -1)
 );</programlisting>
 
         <para>For more information about other GIS objects, see the <link
@@ -48,7 +48,7 @@
 
         <para>To view your GIS data in the table:</para>
 
-        <programlisting>SELECT id, name, AsText(geom) AS geom FROM gtest;</programlisting>
+        <programlisting>SELECT id, name, ST_AsText(geom) AS geom FROM gtest;</programlisting>
 
         <para>The return value should look something like this:</para>
 
@@ -91,9 +91,7 @@
         <programlisting>SELECT id, the_geom 
 FROM thetable 
 WHERE 
-  the_geom &amp;&amp; 'POLYGON((0 0, 0 10, 10 10, 10 0, 0 0))' 
-AND
-  _ST_Contains(the_geom,'POLYGON((0 0, 0 10, 10 10, 10 0, 0 0))');</programlisting>
+  ST_Contains(the_geom,'POLYGON((0 0, 0 10, 10 10, 10 0, 0 0))');</programlisting>
       </answer>
     </qandaentry>
 
@@ -229,7 +227,8 @@
         coordinate systems must be defined in the SPATIAL_REF_SYS table, and
         the geometries being reprojected must already have an SRID set on
         them. Once that is done, a reprojection is as simple as referring to
-        the desired destination SRID.</para>
+        the desired destination SRID. The below projects a geometry to NAD 83 long lat.  
+		The below will only work if the srid of the_geom is not -1 (not undefined spatial ref)</para>
 
         <programlisting>SELECT ST_Transform(the_geom,4269) FROM geotable;</programlisting>
       </answer>



More information about the postgis-commits mailing list