如何将形状复杂的多边形转换为多边形

时间:2019-03-11 16:53:11

标签: 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

0 个答案:

没有答案