You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed @timtreis it works if I replace Polygon(ext, [interior]) by MultiPolygon([Polygon(ext, [interior])])
But I guess the case of a single Polygon with a hole should also work, right? When I have a single polygon with a hole, I prefer not to wrap it into a multi-polygon of 1 polygon!
Hm, I guess so far we've been assuming that Polygons don't have holes. Checking the Shapely doc it seems to explicitly allow that. Yeah, we might have to change our logic there.
Activity
quentinblampey commentedon Jun 5, 2025
Hi @timtreis,
With the latest
spatialdata-plotversion, I still have issues displaying holes. Is it expected?While the polygon should look like this:
timtreis commentedon Jun 5, 2025
No, and our testing should've caught that. I'll investigate. Thanks for reporting!
timtreis commentedon Jun 6, 2025
Wait, you're initialising this as a Shapely.Polygon. Try again with Shapely.MultiPolygon
quentinblampey commentedon Jun 6, 2025
Indeed @timtreis it works if I replace
Polygon(ext, [interior])byMultiPolygon([Polygon(ext, [interior])])But I guess the case of a single
Polygonwith a hole should also work, right? When I have a single polygon with a hole, I prefer not to wrap it into a multi-polygon of 1 polygon!timtreis commentedon Jun 6, 2025
Hm, I guess so far we've been assuming that Polygons don't have holes. Checking the Shapely doc it seems to explicitly allow that. Yeah, we might have to change our logic there.
cc @Sonja-Stockhaus