Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shapely.MultiPolygon does not support overlapping geometry #32

Open
hohlraum opened this issue Mar 11, 2015 · 1 comment
Open

shapely.MultiPolygon does not support overlapping geometry #32

hohlraum opened this issue Mar 11, 2015 · 1 comment

Comments

@hohlraum
Copy link
Owner

This is an issue since MultiPolygon is used to represent Elements as shapely objects.

>>>d1 = shapes.Disk((10,0), 15)
>>>d2 = shapes.Disk((-10,0), 15)
>>>d1.shape.is_valid
True
>>>e = core.Elements([d1,d2])
>>>e.shape.is_valid
False

Further boolean operations on e will fail.

@tom-varga
Copy link
Contributor

Could shapely's cascaded_union operator be used to merge overlapping polygons in a MultiPolygon?
I think a polygon merge capability should be added to the list of boolean operators in any case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants