[postgis-commits] svn - r2854 - trunk/doc

postgis-commits at postgis.refractions.net postgis-commits at postgis.refractions.net
Tue Jul 15 10:51:40 PDT 2008


Author: robe
Date: 2008-07-15 10:51:39 -0700 (Tue, 15 Jul 2008)
New Revision: 2854

Modified:
   trunk/doc/reference.xml
   trunk/doc/reference_new.xml
Log:
Move ST_Intersection, ST_Disjoint provide examples for both.

Modified: trunk/doc/reference.xml
===================================================================
--- trunk/doc/reference.xml	2008-07-15 15:33:19 UTC (rev 2853)
+++ trunk/doc/reference.xml	2008-07-15 17:51:39 UTC (rev 2854)
@@ -41,49 +41,6 @@
         </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>
 
           <listitem>

Modified: trunk/doc/reference_new.xml
===================================================================
--- trunk/doc/reference_new.xml	2008-07-15 15:33:19 UTC (rev 2853)
+++ trunk/doc/reference_new.xml	2008-07-15 17:51:39 UTC (rev 2854)
@@ -486,8 +486,76 @@
   
   
   <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,13 +683,83 @@
         <para><xref linkend="ST_Distance"/></para>
       </refsection>
     </refentry>
+	
+	<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>
-      <title>Spatial Predicates</title>
-  </sect1>
-  
-  <sect1>
       <title>Linear Referencing</title>
   </sect1>
   



More information about the postgis-commits mailing list