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

shapely version #4

Open
andresfchamorro opened this issue Sep 5, 2023 · 0 comments
Open

shapely version #4

andresfchamorro opened this issue Sep 5, 2023 · 0 comments

Comments

@andresfchamorro
Copy link
Collaborator

Describe the bug
TypeError: 'MultiPolygon' object is not iterable

at line: https://github.com/worldbank/DECAT_Space2Stats/blob/main/src/country_zonal.py#L62

Probably related to an upgrade in shapely: https://stackoverflow.com/questions/76074394/typeerror-multipolygon-object-is-not-iterable

Solution is to change to for cPoly in in_shp.geoms: or request an older version of shapely. What version were you using?

Screenshots
image

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