4

I'm looking for approach to merge polygons which produce holes that covers between polygons. I already tried to use cascading union in Shapely, but it gives polygon that cover holes.

Reference question : polygon union without holes

expected output

expected output

Enea Dume
  • 3,014
  • 3
  • 21
  • 36

1 Answers1

-2

I just solved this, you can extract list(concatenated_polygon.interiors) and pass it to MultiPolygon Geojson object where first geometry is Polygon Outerline and the rest are holes LinearRing

  • 4
    Can you provide some more info on how you solved this as I'm currently facing the exact same problem? Maybe a code snippet? – Jethro Nov 27 '18 at 12:30