Put in proto for ST_Area(geography). Still need to put in example but my ST_Area...
authorRegina Obe <lr@pcorp.us>
Fri, 9 Oct 2009 10:39:36 +0000 (10:39 +0000)
committerRegina Obe <lr@pcorp.us>
Fri, 9 Oct 2009 10:39:36 +0000 (10:39 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4631 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference.xml

index 1473021b73d070f5bf04ffd3e5952e5333d87f17..c68d228567494c7b0b7f1d40e7ac16bd13105dd5 100644 (file)
@@ -8915,7 +8915,7 @@ FROM
                  <refname>ST_Area</refname>
 
                  <refpurpose>Returns the area of the geometry if it is a polygon or
-                               multi-polygon.</refpurpose>
+                               multi-polygon. For geometry type area is in SRID units.  For geography area is in square meters.</refpurpose>
                </refnamediv>
                <refsynopsisdiv>
                  <funcsynopsis>
@@ -8923,6 +8923,11 @@ FROM
                          <funcdef>float <function>ST_Area</function></funcdef>
                                <paramdef><type>geometry </type><parameter>g1</parameter></paramdef>
                        </funcprototype>
+
+                       <funcprototype>
+                         <funcdef>float <function>ST_Area</function></funcdef>
+                               <paramdef><type>geography </type><parameter>g1</parameter></paramdef>
+                       </funcprototype>
                  </funcsynopsis>
                </refsynopsisdiv>
                <refsection>
@@ -8930,7 +8935,7 @@ FROM
 
                        <para>Returns the area of the geometry if it is a polygon or
                                multi-polygon. Return the area measurement of an ST_Surface or
-                 ST_MultiSurface value. Area is in the units of the spatial reference system.</para>
+                 ST_MultiSurface value. For geometry Area is in the units of the spatial reference system.  For geography area is in square meters.</para>
 
                        <para><inlinemediaobject>
                                <imageobject>
@@ -8951,7 +8956,7 @@ FROM
                  <refsection>
                        <title>Examples</title>
                        <para>Return area in square feet for a plot of Massachusetts land. Note this is in square feet because 2249 is
-                               Mass State Plane Feet</para>
+                               Mass State Plane Feet and the section is in US Mass state plane meters (26986)</para>
                        <programlisting>
 SELECT ST_Area(ST_GeomFromText('POLYGON((743238 2967416,743238 2967450,
        743265 2967450,743265.625 2967416,743238 2967416))',2249));
@@ -8960,7 +8965,7 @@ st_area
  928.625
 (1 row)
 
---this returns in square meters
+--this returns in square meters - geometry in US State plane meters
 SELECT ST_Area(ST_Transform(ST_GeomFromText('POLYGON((743238 2967416,743238 2967450,
        743265 2967450,743265.625 2967416,743238 2967416))',2249), 26986));
 st_area
@@ -8970,7 +8975,7 @@ st_area
                  </refsection>
                <refsection>
                        <title>See Also</title>
-                       <para><xref linkend="ST_GeomFromText" />, <xref linkend="ST_SetSRID" />,<xref linkend="ST_Transform" /></para>
+                       <para><xref linkend="ST_GeomFromText" />, <xref linkend="ST_GeographyFromText" />, <xref linkend="ST_SetSRID" />,<xref linkend="ST_Transform" /></para>
                </refsection>
 
        </refentry>