worldbank / DECAT_Space2Stats

https://worldbank.github.io/DECAT_Space2Stats/
Other
1 stars 1 forks source link

shapely version #4

Open andresfchamorro opened 1 year ago

andresfchamorro commented 1 year ago

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