]> granicus.if.org Git - postgis/commitdiff
Move ST_Intersection, ST_Disjoint provide examples for both.
authorRegina Obe <lr@pcorp.us>
Tue, 15 Jul 2008 17:51:39 +0000 (17:51 +0000)
committerRegina Obe <lr@pcorp.us>
Tue, 15 Jul 2008 17:51:39 +0000 (17:51 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2854 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference.xml
doc/reference_new.xml

index c0f07d04bc7239ccf2e85e841fcddcdd1e00d75a..ba5b918c3a8301a82f12f8def353a166f92e24e8 100644 (file)
           </listitem>
         </varlistentry>
 
-        <varlistentry>
-          <term>ST_Disjoint(A geometry, B geometry)</term>
-
-          <listitem>
-            <para>Returns TRUE if the Geometries are "spatially
-            disjoint".</para>
-
-            <para>Performed by the GEOS module</para>
-
-            <para>Do not call with a GeometryCollection as an argument</para>
-
-            <para>NOTE: this is the "allowable" version that returns a
-            boolean, not an integer.</para>
-
-            <para>OGC SPEC s2.1.1.2 //s2.1.13.3 - a.Relate(b,
-            'FF*FF****')</para>
-          </listitem>
-        </varlistentry>
-
-        <varlistentry>
-          <term>ST_Intersects(A geometry, B geometry)</term>
-
-          <listitem>
-            <para>Returns TRUE if the Geometries "spatially
-            intersect" - (share any portion of space) and FALSE if they don't.</para>
-
-            <para>Performed by the GEOS module</para>
-
-            <para>Do not call with a GeometryCollection as an argument</para>
-
-            <para>This function call will automatically include a bounding box
-            comparison that will make use of any indexes that are available on
-            the geometries. To avoid index use, use the function
-            _ST_Intersects.</para>
-
-            <para>NOTE: this is the "allowable" version that returns a
-            boolean, not an integer.</para>
-
-            <para>OGC SPEC s2.1.1.2 //s2.1.13.3 - Intersects(g1, g2 ) --&gt;
-            Not (Disjoint(g1, g2 ))</para>
-          </listitem>
-        </varlistentry>
-
         <varlistentry>
           <term>ST_Touches(A geometry, B geometry)</term>
 
index b22c70848e96289b7235e90adfa747360642fc30..38a2043483f51e6f6fcbb7fcc2ebf8ed266f1b91 100644 (file)
@@ -486,8 +486,76 @@ FROM userpoints ;
   
   
   <sect1>
-    <title>Spatial Relationships</title>
+    <title>Spatial Relationships and Measurements</title>
 
+       <refentry id="ST_Disjoint">
+               <refnamediv>
+                       <refname>ST_Disjoint</refname>
+                       
+                       <refpurpose>Returns TRUE if the Geometries do not "spatially
+                       intersect" - if they do not share any space together.
+                       </refpurpose>
+               </refnamediv>
+               <refsynopsisdiv>
+                       <funcsynopsis>
+                               <funcprototype>
+                                       <funcdef>boolean <function>ST_Disjoint</function></funcdef>
+                                       <paramdef>
+                                               <type>geometry</type>
+                                               <parameter>A</parameter>
+                                       </paramdef>
+                                       <paramdef>
+                                               <type>geometry</type>
+                                               <parameter>B</parameter>
+                                       </paramdef>
+                               </funcprototype>
+                       </funcsynopsis>
+               </refsynopsisdiv>
+               <refsection>
+                       <title>Description</title>
+                       <para>Overlaps, Touches, Within all imply geometries are not spatially disjoint.  If any of the aforementioned
+                               returns true, then the geometries are not spatially disjoint.  
+                               Disjoint implies false for spatial intersection.</para>
+                       <para><inlinegraphic class="sfs_compliant" fileref="images/warning.png" />
+                               Do not call with a GeometryCollection as an argument
+                       </para>
+                       <para>Performed by the GEOS module</para>
+                       <note>
+                         <para>This function call does not use indexes</para>
+                         
+                       </note>
+                       <note>
+                         <para>NOTE: this is the "allowable" version that returns a
+            boolean, not an integer.</para>
+                       </note>
+                       <para>
+                         <inlinegraphic class="sfs_compliant" fileref="images/check.png" />
+                         This method implements the
+                         <ulink url="http://www.opengeospatial.org/standards/sfs">OGC SPEC s2.1.1.2 //s2.1.13.3 - a.Relate(b,
+            'FF*FF****')</ulink>
+                       </para> 
+               </refsection>
+               <refsection>
+               <title>Examples</title>
+               
+               <programlisting>SELECT ST_Disjoint('POINT(0 0)'::geometry, 'LINESTRING ( 2 0, 0 2 )'::geometry);
+ st_disjoint
+---------------
+ t
+(1 row)
+SELECT ST_Disjoint('POINT(0 0)'::geometry, 'LINESTRING ( 0 0, 0 2 )'::geometry);
+ st_disjoint
+---------------
+ f
+(1 row)
+               </programlisting>
+               </refsection>
+
+               <refsection>
+                       <title>See Also</title>
+                       <para><xref linkend="ST_Intersects"/>ST_Intersects</para>
+               </refsection>
+    </refentry>
     <refentry id="ST_Distance">
       <refnamediv>
         <refname>ST_Distance</refname>
@@ -615,10 +683,80 @@ SELECT DISTINCT ON (s.gid) s.gid, s.school_name, s.the_geom, h.hospital_name
         <para><xref linkend="ST_Distance"/></para>
       </refsection>
     </refentry>
-  </sect1>
-  
-  <sect1>
-      <title>Spatial Predicates</title>
+       
+       <refentry id="ST_Intersects">
+               <refnamediv>
+                       <refname>ST_Intersects</refname>
+                       
+                       <refpurpose>Returns TRUE if the Geometries "spatially
+                       intersect" - (share any portion of space) and FALSE if they don't (they are Disjoint).
+                       </refpurpose>
+               </refnamediv>
+               <refsynopsisdiv>
+                       <funcsynopsis>
+                               <funcprototype>
+                                       <funcdef>boolean <function>ST_Intersects</function></funcdef>
+                                       <paramdef>
+                                               <type>geometry</type>
+                                               <parameter>A</parameter>
+                                       </paramdef>
+                                       <paramdef>
+                                               <type>geometry</type>
+                                               <parameter>B</parameter>
+                                       </paramdef>
+                               </funcprototype>
+                       </funcsynopsis>
+               </refsynopsisdiv>
+               <refsection>
+                       <title>Description</title>
+                       <para>Overlaps, Touches, Within all imply spatial intersection.  If any of the aforementioned
+                               returns true, then the geometries also spatially intersect.  
+                               Disjoint implies false for spatial intersection.</para>
+                       <para><inlinegraphic class="sfs_compliant" fileref="images/warning.png" />
+                               Do not call with a GeometryCollection as an argument
+                       </para>
+                       <para>Performed by the GEOS module</para>
+                       <note>
+                         <para>This function call will automatically include a bounding box
+                         comparison that will make use of any indexes that are available on the
+                         geometries.</para>
+                         
+                       </note>
+                       <note>
+                         <para>NOTE: this is the "allowable" version that returns a
+            boolean, not an integer.</para>
+                       </note>
+                       <para>
+                         <inlinegraphic class="sfs_compliant" fileref="images/check.png" />
+                         This method implements the
+                         <ulink url="http://www.opengeospatial.org/standards/sfs">OpenGIS Simple
+                         Features Implementation Specification for SQL</ulink>
+                       </para>
+                       <para>
+                         <inlinegraphic class="sql_mm_compliant" fileref="images/check.png" />
+                         OGC SPEC s2.1.1.2 //s2.1.13.3 - ST_Intersects(g1, g2 ) --&gt;
+                               Not (ST_Disjoint(g1, g2 ))
+                       </para> 
+               </refsection>
+               <refsection>
+        <title>Examples</title>
+<programlisting>SELECT ST_Intersects('POINT(0 0)'::geometry, 'LINESTRING ( 2 0, 0 2 )'::geometry);
+ st_intersects
+---------------
+ f
+(1 row)
+SELECT ST_Intersects('POINT(0 0)'::geometry, 'LINESTRING ( 0 0, 0 2 )'::geometry);
+ st_intersects
+---------------
+ t
+(1 row)
+               </programlisting>
+               </refsection>
+               <refsection>
+                       <title>See Also</title>
+                       <para><xref linkend="ST_Disjoint"/>ST_Disjoint</para>
+               </refsection>
+    </refentry>
   </sect1>
   
   <sect1>