Measure Area
The area of each polygon, as a number or a new attribute.
Pitfall. In a geographic CRS, planar engines return square degrees; geodesic ones (Turf, terra, PostGIS geography) return square metres.
Pitfall. Projected areas carry the projection's scale error; use an equal-area projection for large areas.
| Also called | Calculate Geometry (area), Add Geometry Attributes, polygon area, shape area |
|---|---|
| Group | vector/measure |
| Checks | crs.measure |
| Pitfalls | 2 listed above |
| Columbus tool | Not stated |
| Notes | Not stated |
| Status | active |
| Broader | Not stated |
| Narrower | Not stated |
| Related |
Parameters
| Name | Type | Required | Default | Values | Note |
|---|---|---|---|---|---|
unit | enum | no | m2 | m2, ha, km2, ft2, acre | Not stated |
Inputs and outputs
| Direction | Name | Type | Geometry | Note |
|---|---|---|---|---|
| Input | layer | vector | polygon | Not stated |
| Output | output | any | Not stated | The areas, or the layer with an area attribute. |
In each engine
| Engine | Tool | Parameters | Differences |
|---|---|---|---|
apache-sedona | sedona.sql.ST_Area |
|
|
geopandas | geopandas.GeoSeries.area |
|
|
grass | v.to.db |
|
Preset: {"option":"area","columns":"area"} |
postgis | st_area |
|
|
qgis | native:exportaddgeometrycolumns |
|
|
sf | sf::st_area |
|
|
shapely | shapely.area |
| None noted |
terra | terra::expanse |
|
|
turf-js | turf.area |
|
|
whiteboxtools | PolygonArea |
|
|