DS-python-geospatial icon indicating copy to clipboard operation
DS-python-geospatial copied to clipboard

country areas are not areas

Open edzer opened this issue 3 years ago • 1 comments

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 avatar Nov 26 '22 16:11 edzer

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.

edzer avatar Nov 26 '22 16:11 edzer