标签: python polygon shapely
我有匀称的多边形,如何将其转换为多边形列表?
polygons = [Polygon(cham_geom), Polygon(neighbor_geom)] boundary = cascaded_union(polygons) # results in multipolygon sometimes if boundary.geom_type == 'MultiPolygon': # extract polygons out of multipolygon