]> granicus.if.org Git - postgis/commitdiff
remove ST_Area from reference.xml already accounted for in reference_new.xml, move...
authorRegina Obe <lr@pcorp.us>
Tue, 29 Jul 2008 12:00:08 +0000 (12:00 +0000)
committerRegina Obe <lr@pcorp.us>
Tue, 29 Jul 2008 12:00:08 +0000 (12:00 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2891 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference.xml
doc/reference_new.xml

index eac52cb5716590a3a556530223a76756d8f4438b..510b7cb5bc4c17081af706ba35f84ac4e65f2def 100644 (file)
 
     <sect2>
       <title>Geometry Processing Functions</title>
-
-      <variablelist>
-        <varlistentry>
-          <term>ST_Area(geometry)</term>
-
-          <listitem>
-            <para>Returns the area of the geometry if it is a polygon or
-            multi-polygon.</para>
-          </listitem>
-        </varlistentry>
-
-        <varlistentry>
-          <term>ST_Length(geometry)</term>
-
-          <listitem>
-            <para>The length of this Curve in its associated spatial
-            reference.</para>
-
-            <para>synonym for length2d()</para>
-
-            <para>OGC SPEC 2.1.5.1</para>
-          </listitem>
-        </varlistentry>
-
+         <variablelist>
         <varlistentry>
           <term>ST_Boundary(geometry)</term>
 
@@ -1201,16 +1178,6 @@ GROUP BY gid, field1,field2;
             strings.</para>
           </listitem>
         </varlistentry>
-
-        <varlistentry>
-          <term>ST_perimeter(geometry)</term>
-
-          <listitem>
-            <para>Returns the 2-dimensional perimeter of the geometry, if it
-            is a polygon or multi-polygon.</para>
-          </listitem>
-        </varlistentry>
-
         <varlistentry>
           <term>ST_perimeter2d(geometry)</term>
 
@@ -2431,17 +2398,6 @@ WHERE n*100.00/length &lt; 1;
         </listitem>
       </varlistentry>
 
-      <varlistentry>
-        <term>ST_Length</term>
-
-        <listitem>
-          <para>Return the length measurement of an ST_Curve or ST_MultiCurve
-          value.</para>
-
-          <para>SQL-MM 3: 7.1.2, 9.3.4</para>
-        </listitem>
-      </varlistentry>
-
       <varlistentry>
         <term>ST_LineFromText</term>
 
@@ -2554,17 +2510,6 @@ WHERE n*100.00/length &lt; 1;
         </listitem>
       </varlistentry>
 
-      <varlistentry>
-        <term>ST_Perimeter</term>
-
-        <listitem>
-          <para>Return the length measurement of the boundary of an ST_Surface
-          or ST_MultiRSurface value.</para>
-
-          <para>SQL-MM 3: 8.1.3, 9.5.4</para>
-        </listitem>
-      </varlistentry>
-
       <varlistentry>
         <term>ST_Point</term>
 
index 6a2d6311820a3eba5f82cc304a6506de34d1e660..c363c46f31a1790fa67f33804b8b304e9cfac116 100644 (file)
@@ -2797,7 +2797,65 @@ SELECT ST_Intersects('POINT(0 0)'::geometry, 'LINESTRING ( 0 0, 0 2 )'::geometry
                        <title>See Also</title>
                        <para><xref linkend="ST_Disjoint"/></para>
                </refsection>
-    </refentry>
+    </refentry>                
+       <refentry id="ST_Length">
+               <refnamediv>
+                 <refname>ST_Length</refname>
+       
+                 <refpurpose>Returns the length of the geometry if it is a linestring or multilinestring.</refpurpose>
+               </refnamediv>
+               <refsynopsisdiv>
+                 <funcsynopsis>
+                       <funcprototype>
+                         <funcdef>float <function>ST_Length</function></funcdef>
+                               <paramdef><type>geometry </type><parameter>g1</parameter></paramdef>
+                       </funcprototype>
+                 </funcsynopsis>
+               </refsynopsisdiv>
+               <refsection>
+                       <title>Description</title>
+                       
+                       <para>Returns the 2D length of the geometry if it is a linestring, multilinestring, ST_Curve, ST_MultiCurve.  0 is returned for
+                               areal geometries.  For areal geometries use ST_Perimeter.  Measurements are in the units of the 
+                               spatial reference system of the geometry.</para>
+                               
+                       <para>Currently this is an alias for ST_Length2D, but this may change to support higher dimensions.</para>
+               
+                       <para><inlinemediaobject>
+                               <imageobject>
+                                 <imagedata fileref="images/check.png" />
+                               </imageobject>
+                         </inlinemediaobject> This method implements the <ulink
+                       url="http://www.opengeospatial.org/standards/sfs">OpenGIS Simple Features
+                       Implementation Specification for SQL. OGC SPEC 2.1.5.1</ulink></para>
+                       
+                       <para><inlinemediaobject>
+                               <imageobject>
+                                 <imagedata fileref="images/check.png" />
+                               </imageobject>
+                         </inlinemediaobject> This method implements the SQL/MM specification:
+                       SQL-MM 3: 7.1.2, 9.3.4</para>
+               </refsection>
+               
+                 <refsection>
+                       <title>Examples</title>
+                       <para>Return length in feet for line string. Note this is in feet because 2249 is
+                               Mass State Plane Feet</para>
+                       <programlisting>
+SELECT SELECT ST_Length(ST_GeomFromText('LINESTRING(743238 2967416,743238 2967450,743265 2967450,
+743265.625 2967416,743238 2967416)',2249));
+st_length
+---------
+ 122.630744000095
+(1 row)
+                       </programlisting>
+                 </refsection>
+               <refsection>
+                       <title>See Also</title>
+                       <para><xref linkend="ST_Perimeter" /></para>
+               </refsection>
+       </refentry>
+       
        <refentry id="ST_OrderingEquals">
          <refnamediv>
                <refname>ST_OrderingEquals</refname>
@@ -2868,8 +2926,82 @@ SELECT ST_OrderingEquals(ST_Reverse(ST_GeomFromText('LINESTRING(0 0, 10 10)')),
        
                <para><xref linkend="ST_Equals"/>, <xref linkend="ST_Reverse"/></para>
          </refsection>
-         
        </refentry>
+       <refentry id="ST_Perimeter">
+               <refnamediv>
+                 <refname>ST_Perimeter</refname>
+       
+                 <refpurpose>Return the length measurement of the boundary of an ST_Surface
+          or ST_MultiSurface value. (Polygon, Multipolygon)</refpurpose>
+               </refnamediv>
+               <refsynopsisdiv>
+                 <funcsynopsis>
+                       <funcprototype>
+                         <funcdef>float <function>ST_Length</function></funcdef>
+                               <paramdef><type>geometry </type><parameter>g1</parameter></paramdef>
+                       </funcprototype>
+                 </funcsynopsis>
+               </refsynopsisdiv>
+               <refsection>
+                       <title>Description</title>
+                       
+                       <para>Returns the 2D perimeter of the geometry if it is a ST_Surface, ST_MultiSurface (Polygon, Multipolygon).  0 is returned for
+                               non-areal geometries.  For linestrings use ST_Length.  Measurements are in the units of the 
+                               spatial reference system of the geometry.</para>
+                               
+                       <para>Currently this is an alias for ST_Perimeter2D, but this may change to support higher dimensions.</para>
+               
+                       <para><inlinemediaobject>
+                               <imageobject>
+                                 <imagedata fileref="images/check.png" />
+                               </imageobject>
+                         </inlinemediaobject> This method implements the <ulink
+                       url="http://www.opengeospatial.org/standards/sfs">OpenGIS Simple Features
+                       Implementation Specification for SQL. OGC SPEC 2.1.5.1</ulink></para>
+                       
+                       <para><inlinemediaobject>
+                               <imageobject>
+                                 <imagedata fileref="images/check.png" />
+                               </imageobject>
+                         </inlinemediaobject> This method implements the SQL/MM specification:
+                       SQL-MM 3: 8.1.3, 9.5.4</para>
+               </refsection>
+               
+                 <refsection>
+                       <title>Examples</title>
+                       <para>Return perimeter in feet for polygon and multipolygon. Note this is in feet because 2249 is
+                               Mass State Plane Feet</para>
+                       <programlisting>
+SELECT ST_Perimeter(ST_GeomFromText('POLYGON((743238 2967416,743238 2967450,743265 2967450,
+743265.625 2967416,743238 2967416))', 2249));
+st_perimeter
+---------
+ 122.630744000095
+(1 row)
+
+SELECT ST_Perimeter(ST_GeomFromText('MULTIPOLYGON(((763104.471273676 2949418.44119003,
+763104.477769673 2949418.42538203,
+763104.189609677 2949418.22343004,763104.471273676 2949418.44119003)),
+((763104.471273676 2949418.44119003,763095.804579742 2949436.33850239,
+763086.132105649 2949451.46730207,763078.452329651 2949462.11549407,
+763075.354136904 2949466.17407812,763064.362142565 2949477.64291974,
+763059.953961626 2949481.28983009,762994.637609571 2949532.04103014,
+762990.568508415 2949535.06640477,762986.710889563 2949539.61421415,
+763117.237897679 2949709.50493431,763235.236617789 2949617.95619822,
+763287.718121842 2949562.20592617,763111.553321674 2949423.91664605,
+763104.471273676 2949418.44119003)))', 2249));
+st_perimeter
+---------
+ 845.227713366825
+(1 row)
+                       </programlisting>
+                 </refsection>
+               <refsection>
+                       <title>See Also</title>
+                       <para><xref linkend="ST_Length" /></para>
+               </refsection>
+       </refentry>     
+       
     <refentry id="ST_PointOnSurface">
       <refnamediv>
         <refname>ST_PointOnSurface</refname>