[postgis-commits] svn - r2827 - trunk/doc
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Sun Jul 6 00:22:51 PDT 2008
Author: robe
Date: 2008-07-06 00:22:51 -0700 (Sun, 06 Jul 2008)
New Revision: 2827
Modified:
trunk/doc/postgis.xml
Log:
fixed ST_Dimension example, flipped order of conditions in WHERE on some examples (in later versions of PostgreSQL since we don't have our costs right - the planner may choose to process in order of conditions
Modified: trunk/doc/postgis.xml
===================================================================
--- trunk/doc/postgis.xml 2008-07-06 01:47:38 UTC (rev 2826)
+++ trunk/doc/postgis.xml 2008-07-06 07:22:51 UTC (rev 2827)
@@ -2052,8 +2052,7 @@
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 @@
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 @@
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>
More information about the postgis-commits
mailing list