Osm2pgsql/Key:way area

From OpenStreetMap Wiki
< Osm2pgsql(Redirected from Key:way area)
Jump to navigation Jump to search
Public-images-osm logo.svg way_area
Osm element key.svg
DescriptionTranslate.svg
Synthetic key created by osm2pgsql during import for Mapnik. It is calculated by the get_area function. Edit or translate this description.
Used on these elementsTranslate.svg
use on nodes unspecifieduse on ways unspecifieduse on areas unspecifieduse on relations unspecified
WikidataTranslate.svg
StatusTranslate.svgunspecifiedTranslate.svg

The key way_area=* is a synthetic key created by osm2pgsql during import for Mapnik. It is calculated by the get_area function.

The unit of the area depends on how the data was imported, if it was with osm2pgsql -l (latlon), it will be square degrees, otherwise square meters.

Note of warning: the square meters are projected square meters. With the default Spherical Mercator projection, this means that same sized areas appear larger in the way_area column the further from the equator they are.

See also