From: Regina Obe Date: Mon, 21 Jul 2008 11:38:00 +0000 (+0000) Subject: delete reference to ST_Equals in reference.xml - alread in new version, include an... X-Git-Tag: 1.4.0b1~829 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=998fa07bcbf0025ad5b5fa28a64965d74e4a17e5;p=postgis delete reference to ST_Equals in reference.xml - alread in new version, include an ST_DWithin non-join join example. git-svn-id: http://svn.osgeo.org/postgis/trunk@2870 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference.xml b/doc/reference.xml index de013f8f4..7fb8db45e 100644 --- a/doc/reference.xml +++ b/doc/reference.xml @@ -23,23 +23,6 @@ Geometry Relationship Functions - - ST_Equals(geometry, geometry) - - - 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. - - Performed by the GEOS module - - OGC SPEC s2.1.1.2 - - - ST_Touches(A geometry, B geometry) @@ -2652,17 +2635,6 @@ WHERE n*100.00/length < 1; - - ST_Equals - - - Test if an ST_Geometry value as spatially equal to another - ST_Geometry value. - - SQL-MM 3: 5.1.24 - - - ST_ExteriorRing diff --git a/doc/reference_new.xml b/doc/reference_new.xml index 10bf7c64b..5304b3ef8 100644 --- a/doc/reference_new.xml +++ b/doc/reference_new.xml @@ -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; @@ -1377,6 +1385,14 @@ SELECT DISTINCT ON (s.gid) s.gid, s.school_name, s.the_geom, h.hospital_name OpenGIS Simple Features Implementation Specification for SQL OGC SPEC s2.1.1.2 + + + + + + This method implements the SQL/MM specification: + SQL-MM 3: 5.1.24 +