PostGIS
2.4.9dev-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 642 of file lwspheroid.c.
References area(), COLLECTIONTYPE, LWCOLLECTION::geoms, lwgeom_is_empty(), MULTIPOLYGONTYPE, LWCOLLECTION::ngeoms, LWPOLY::nrings, POLYGONTYPE, ptarray_area_spheroid(), LWPOLY::rings, ovdump::type, and LWGEOM::type.
Referenced by geography_area(), geography_centroid_from_mpoly(), and test_spheroid_area().