I have a multipolygon shape composed of several polygons. I want to convert the multipolygon to a single polygonshape. Is this possible? I tried looping through the polygons and adding the vertices of the outer rings to a single polygon, but the way the vertices connected did not match up with how they connected in the multipolygon. I have other tools that rely on the shape being a PolygonShape because they can’t handle multipolygon shapes unfortunately.
Converting MultipolygonShape to single Polygon
Hi Dan,
You should have your custom logic to handle that, because the map don’t know how to combine the polygons to a single polygon.
For example:
The map don’t know which vertexes in different polygons can be connected, so the rule should be made by your function.
Regards,
Ethan