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

Change to CRS for calculating centroid #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fnands
Copy link
Contributor

@fnands fnands commented Nov 18, 2022

When calculating overlap geopandas raises a warning:

skysat_stereo_workflow.py:43: UserWarning: Geometry is in a geographic CRS. Results from 'centroid' are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation.

I implemented the solution from here, which changes to an equidistant projection before centroid calculation.

In practice, we are not dealing with huge distances here, so probably overkill, but gets geopandas to shut up and technically the correct thing to do.

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

Successfully merging this pull request may close these issues.

None yet

1 participant