Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How can I convert MultiPolygon to Multiline?
I want to work with the boundary of multipolygon. In R I can just do :
But I don't know how to do it in Python?
If multip is the collection of polygons representing the MultiPolygon collection.
multiLines = shapely.geometry.MultiLineString([x.exterior for x in multip])
multiLines = shapely.geometry.MultiLineString([x.exterior for x in multip.geometry])
Required, but never shown
15 days ago
14 days ago