Skip to main content
Return the geodesic area of A using WGS84 spheroid. Unit is square meter. Works better for large geometries (country level) compared to ST_Area + ST_Transform. It is equivalent to PostGIS ST_Area(geography, use_spheroid=true) function and produces nearly identical results. Geometry must be in EPSG:4326 (WGS84) projection and must be in ==lon/lat== order. You can use ==ST_FlipCoordinates== to swap lat and lon.
By default, this function uses lon/lat order since v1.5.0. Before, it used lat/lon order.
ST_AreaSpheroid

Signatures

ST_AreaSpheroid (A: Geometry)

Parameters

A
Geometry
required
The input geometry.

Return type

A numeric value.

Example

SELECT ST_AreaSpheroid(ST_GeomFromWKT('Polygon ((34 35, 28 30, 25 34, 34 35))'))
201824850811.76245