]> granicus.if.org Git - postgis/commitdiff
fixed ST_Dimension example, flipped order of conditions in WHERE on some examples...
authorRegina Obe <lr@pcorp.us>
Sun, 6 Jul 2008 07:22:51 +0000 (07:22 +0000)
committerRegina Obe <lr@pcorp.us>
Sun, 6 Jul 2008 07:22:51 +0000 (07:22 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2827 b70326c6-7e19-0410-871a-916f4a2858ee

doc/postgis.xml

index a7f0f677cc3d5c2aeeb7011587d8f4949140e615..6e7f9e464cf0895caa2be7ea950889434c5e9985 100644 (file)
@@ -2052,8 +2052,7 @@ SELECT
 FROM 
   bc_roads AS r, 
   bc_municipality AS m 
-WHERE ST_Intersects(r.the_geom, m.the_geom)
-  AND m.name = 'PRINCE GEORGE';</programlisting>
+WHERE  m.name = 'PRINCE GEORGE' AND ST_Intersects(r.the_geom, m.the_geom);</programlisting>
             </answer>
           </qandaentry>
 
@@ -2069,9 +2068,8 @@ WHERE ST_Intersects(r.the_geom, m.the_geom)
 FROM 
   bc_roads r, 
   bc_municipality m 
-WHERE ST_Contains(m.the_geom, r.the_geom) 
-  AND r.name = 'Douglas St' 
-  AND m.name = 'VICTORIA'; 
+WHERE  r.name = 'Douglas St' AND m.name = 'VICTORIA' 
+       AND ST_Contains(m.the_geom, r.the_geom) ; 
 
 kilometers 
 ------------------
@@ -3342,7 +3340,7 @@ VACUUM FULL ANALYZE mytable;</programlisting>
               and the largest dimension of the components of a
               GEOMETRYCOLLECTION.</para>
 
-              <programlisting>select dimension('GEOMETRYCOLLECTION(LINESTRING(1 1,0 0),POINT(0 0)'); 
+              <programlisting>SELECT ST_dimension('GEOMETRYCOLLECTION(LINESTRING(1 1,0 0),POINT(0 0))'); 
 dimension 
 ----------- 
 1</programlisting>