From: Regina Obe Date: Fri, 9 Oct 2009 10:39:36 +0000 (+0000) Subject: Put in proto for ST_Area(geography). Still need to put in example but my ST_Area... X-Git-Tag: 1.5.0b1~384 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=efaa26243aa1dbd955856c2011983a08893f8240;p=postgis Put in proto for ST_Area(geography). Still need to put in example but my ST_Area is non-existent will double-check why. git-svn-id: http://svn.osgeo.org/postgis/trunk@4631 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference.xml b/doc/reference.xml index 1473021b7..c68d22856 100644 --- a/doc/reference.xml +++ b/doc/reference.xml @@ -8915,7 +8915,7 @@ FROM ST_Area Returns the area of the geometry if it is a polygon or - multi-polygon. + multi-polygon. For geometry type area is in SRID units. For geography area is in square meters. @@ -8923,6 +8923,11 @@ FROM float ST_Area geometry g1 + + + float ST_Area + geography g1 + @@ -8930,7 +8935,7 @@ FROM 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. + ST_MultiSurface value. For geometry Area is in the units of the spatial reference system. For geography area is in square meters. @@ -8951,7 +8956,7 @@ FROM Examples Return area in square feet for a plot of Massachusetts land. Note this is in square feet because 2249 is - Mass State Plane Feet + Mass State Plane Feet and the section is in US Mass state plane meters (26986) 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 See Also - , , + , , ,