Skip to content

ST_Area

Returns the area of a geometry.

Usage

geometry ST_Area(geom: geometry)

Arguments

  • geom (geometry): Input geometry

Description

ST_Area() Returns the area of a polygon or multi-polygon geometry.

Examples

SELECT ST_Area(ST_GeomFromWKT('POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))'));
┌──────────────────────────────────────────────────────────────────────────┐
│ st_area(st_geomfromwkt(Utf8("POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))"))) │
│                                  float64                                 │
╞══════════════════════════════════════════════════════════════════════════╡
│                                                                    100.0 │
└──────────────────────────────────────────────────────────────────────────┘