ST_AREA
functionsupportedCore SQL functionsReturns the area of the Polygon(s) in a GEOGRAPHY or GEOMETRY object.
Syntax
ST_AREA( <geography_or_geometry_expression> )
Parameters
| Name | Required | Description |
|---|---|---|
geography_or_geometry_expression | required | The argument must be of type GEOGRAPHY or GEOMETRY. |
Returns
Returns a REAL value, which represents the area: - For GEOGRAPHY input values, the area is in square meters. - For GEOMETRY input values, the area is computed with the same units used to define the input coordinates.
Usage notes
- If geography_expression is not a Polygon, MultiPolygon, or GeometryCollection containing polygons, ST_AREA returns 0.
- If geography_expression is a GeometryCollection, ST_AREA returns the sum of the areas of the polygons in the collection.