PostGIS
2.5.7dev-r@@SVN_REVISION@@
|
Calculate the area of an LWGEOM.
Calculate the geodetic area of a lwgeom on the spheroid.
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 check relationship to equator an outside point. WARNING: Does NOT WORK for polygons over equator or pole.
Definition at line 647 of file lwspheroid.c.
References area(), COLLECTIONTYPE, LWCOLLECTION::geoms, lwgeom_area_spheroid(), lwgeom_is_empty(), MULTIPOLYGONTYPE, LWCOLLECTION::ngeoms, LWPOLY::nrings, POLYGONTYPE, ptarray_area_spheroid(), LWPOLY::rings, LWGEOM::type, and ovdump::type.
Referenced by geography_area(), geography_centroid_from_mpoly(), lwgeom_area_spheroid(), and test_spheroid_area().