PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwgeom_area_sphere()

double lwgeom_area_sphere ( const LWGEOM lwgeom,
const SPHEROID spheroid 
)

Delegate to the spheroid function with a spherically parameterized spheroid.

Calculate the geodetic area of a lwgeom on the sphere.

Definition at line 1950 of file lwgeodetic.c.

1951{
1952 SPHEROID s;
1954 return lwgeom_area_spheroid(lwgeom, &s);
1955}
char * s
Definition cu_in_wkt.c:23
#define WGS84_RADIUS
Definition liblwgeom.h:148
double lwgeom_area_spheroid(const LWGEOM *lwgeom, const SPHEROID *spheroid)
Calculate the geodetic area of a lwgeom on the spheroid.
Definition lwspheroid.c:647
void spheroid_init(SPHEROID *s, double a, double b)
Initialize a spheroid object for use in geodetic functions.
Definition lwspheroid.c:39

References lwgeom_area_spheroid(), s, spheroid_init(), and WGS84_RADIUS.

Referenced by geography_centroid_from_mpoly(), test_lwgeom_area_sphere(), and test_spheroid_area().

Here is the call graph for this function:
Here is the caller graph for this function: