Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Area calculation inconsistencies #99

Open
janikmu opened this issue Dec 7, 2020 · 1 comment
Open

Area calculation inconsistencies #99

janikmu opened this issue Dec 7, 2020 · 1 comment

Comments

@janikmu
Copy link

janikmu commented Dec 7, 2020

When calculating the area in square meters

area = transform_geom(geojson_obj, 'epsg:4326', 'epsg:3857').area

the resulting area is sometimes a lot (up to double) bigger than the "real" area.
"Real" area can either mean https://github.com/scisco/area implementation of geojson-area and/or Wikipedia for a given administrative boundary.

Example: Take the administrative boundary of Luzern, CH (https://nominatim.openstreetmap.org/ui/details.html?osmtype=R&osmid=1682891&class=boundary). Wikipedia states 29 square kilometers. The area package (as well as geojson.io) calculates somewhere around 31 square kilometers. openpoiservice, however, calculates 67 square kilometers.

@TimMcCauley
Copy link
Contributor

This is to be expected using 3857... please feel free to raise a PR using a more suitable projection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants