Open andresfchamorro opened 1 year ago
Describe the bug TypeError: 'MultiPolygon' object is not iterable
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?
for cPoly in in_shp.geoms:
Screenshots
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