I'm really desapointed, because I did everything to avoid Multipolygon in my script but last treatment blocks because of Multipolygon :
File "/.../Zonage/Zonage_standalone.py", line 254, in zonage
zonage = gpd.overlay(clip, parc, how='intersection') # Intersection parcellaire et zonage
AttributeError: 'MultiPolygon' object has no attribute 'exterior'
You can find my script and datas here if you want to help me.
explode
method on GeoSeries/GeoDataFrame that can do that as well. You will need to be clearer with what you mean with "ghost" multipolygons.for i, row in parc.iterrows(): typeparc = parc.geom_type[i] print(typeparc) if typeparc != 'Polygon': print('parc',typeparc)