Skip to main content
Returns the area of the two-dimensional components of a native GEO value. GEOGRAPHY results are square meters on the database spherical Earth model. GEOMETRY results are squared units of the input CRS. No reprojection is performed.

Syntax

POLYGON and MULTIPOLYGON contribute their filled area, with holes subtracted. Polygon components inside a GEOMETRYCOLLECTION are summed recursively. Points and lines contribute zero. Overlapping polygon components make the value topologically invalid and produce an error instead of being double-counted. For GEOGRAPHY, ring winding does not select the interior. Each ring is normalized to the smaller spherical region, so a single ring cannot represent an area larger than a hemisphere. Holes and multipolygon components follow the same rule. NULL produces NULL; an EMPTY value produces 0. Malformed WKB, unsupported dimensions or descriptors, and topologically invalid inputs produce a controlled error.

Examples

Keywords

ST_AREA,ST,AREA,GEOGRAPHY,GEOMETRY GEOGRAPHY, GEOMETRY, DOUBLE