PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
Calculate the area of an LWGEOM.
Calculate the geodetic area of a lwgeom on the sphere.
Anything except POLYGON, MULTIPOLYGON and GEOMETRYCOLLECTION return zero immediately. Multi's recurse, polygons calculate external ring area and subtract internal ring area. A GBOX is required to calculate an outside point.
Definition at line 2027 of file lwgeodetic.c.
References area(), COLLECTIONTYPE, LWCOLLECTION::geoms, lwgeom_is_empty(), MULTIPOLYGONTYPE, LWCOLLECTION::ngeoms, LWPOLY::nrings, POLYGONTYPE, ptarray_area_sphere(), SPHEROID::radius, LWPOLY::rings, ovdump::type, and LWGEOM::type.
Referenced by geography_area(), geography_centroid_from_mpoly(), test_lwgeom_area_sphere(), and test_spheroid_area().