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

country areas are not areas #62

Open
edzer opened this issue Nov 26, 2022 · 1 comment
Open

country areas are not areas #62

edzer opened this issue Nov 26, 2022 · 1 comment

Comments

@edzer
Copy link

edzer commented Nov 26, 2022

In notebook 02, the areas you compute with countries.geometry.area are not areas; they're computed as if geographic coordinates are Cartesian - their unit is squared degrees, which is meaningless (because dependent on latitude).

@edzer
Copy link
Author

edzer commented Nov 26, 2022

Ah, I now see the warning: "/tmp/ipykernel_603399/3077649407.py:1: UserWarning: Geometry is in a geographic CRS. Results from 'area' are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation." Well, you can leave out the likely, but better return an error.

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

1 participant