]> granicus.if.org Git - postgis/commitdiff
delete reference to ST_Equals in reference.xml - alread in new version, include an...
authorRegina Obe <lr@pcorp.us>
Mon, 21 Jul 2008 11:38:00 +0000 (11:38 +0000)
committerRegina Obe <lr@pcorp.us>
Mon, 21 Jul 2008 11:38:00 +0000 (11:38 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2870 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference.xml
doc/reference_new.xml

index de013f8f42f080d184ecd4bd20100f4780c692bc..7fb8db45ea61e55f9e9b04c35970c9e72d009de8 100644 (file)
       <title>Geometry Relationship Functions</title>
 
       <variablelist>
-        <varlistentry>
-          <term>ST_Equals(geometry, geometry)</term>
-
-          <listitem>
-            <para>Returns TRUE if the given Geometries are "spatially
-            equal". Use this for a 'better' answer than '='.
-            equals('LINESTRING(0 0, 10 10)','LINESTRING(0 0, 5 5, 10 10)') is
-            true.  Note by spatially equal we also mean ordering of points can be different but
-                       represent the same geometry structure.  To verify the order of points is consistent, use 
-                       ST_OrderingEquals.</para>
-
-            <para>Performed by the GEOS module</para>
-
-            <para>OGC SPEC s2.1.1.2</para>
-          </listitem>
-        </varlistentry>
-
         <varlistentry>
           <term>ST_Touches(A geometry, B geometry)</term>
 
@@ -2652,17 +2635,6 @@ WHERE n*100.00/length &lt; 1;
         </listitem>
       </varlistentry>
 
-      <varlistentry>
-        <term>ST_Equals</term>
-
-        <listitem>
-          <para>Test if an ST_Geometry value as spatially equal to another
-          ST_Geometry value.</para>
-
-          <para>SQL-MM 3: 5.1.24</para>
-        </listitem>
-      </varlistentry>
-
       <varlistentry>
         <term>ST_ExteriorRing</term>
 
index 10bf7c64be289a4930ad62b03ad94c341b398f80..5304b3ef8dc433a8a8bdea369d72b7691b913acb 100644 (file)
@@ -1332,6 +1332,14 @@ SELECT DISTINCT ON (s.gid) s.gid, s.school_name, s.the_geom, h.hospital_name
        FROM schools s 
                LEFT JOIN hospitals h ON ST_DWithin(s.the_geom, h.the_geom, 3000)
        ORDER BY s.gid, ST_Distance(s.the_geom, h.the_geom);
+       
+--The schools with no close hospitals
+--Find all schools with no hospital within 3000 units
+--away from the school.  Units is in units of spatial ref (e.g. meters, feet, degrees)
+SELECT s.gid, s.school_name
+       FROM schools s 
+               LEFT JOIN hospitals h ON ST_DWithin(s.the_geom, h.the_geom, 3000)
+       WHERE h.gid IS NULL;
                          </programlisting>
       </refsection>
       
@@ -1377,6 +1385,14 @@ SELECT DISTINCT ON (s.gid) s.gid, s.school_name, s.the_geom, h.hospital_name
                  <ulink url="http://www.opengeospatial.org/standards/sfs">OpenGIS Simple
                  Features Implementation Specification for SQL OGC SPEC s2.1.1.2</ulink>
                </para>
+               
+               <para><inlinemediaobject>
+        <imageobject>
+          <imagedata fileref="images/check.png" />
+        </imageobject>
+      </inlinemediaobject> This method implements the SQL/MM specification:
+                               SQL-MM 3: 5.1.24
+               </para>
        
          </refsection>