-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Add test for multipoly #56
Conversation
So just did some quick playing and think Im progressing towards the solution, basically whereever there was a So for example
The general approach is looking promising, I could use your help though in working out what the best way to make the adjustments (eg sometimes it should be an |
So taking into account the changes in #58 & #60 Im still getting the following error when dealing with mutlipolygons. See the screen grab from below from I've been trying to look into why that might be the case but I'm not to sure yet. I've been trying to work out if it's related to the |
I can take a look at it bit by bit, but can you please reduce the amount of points? I usually do that by removing/simplifying the points on the outside of the problematic area. |
TLDR: My take is supporting overlapping or side-sharing multipolygons while maintaining The In order to support overlapping multipolygons (while maintaing I've been going off a 2009 version of the algorithm, I haven't read the 2013 version but from the abstract it doesn't note anything about supporting overlapping multi polygons. Now if you don't care about maintaining |
Thanks for the detailed write up @mfogel . I'm not 100% convinced that your correct, purely based on the above image where most segments (even where subject multipoly overlaps) appear to be correctly marked... Although you appear to be much smarter than me at the geometry algorithms so perhaps your correct! I'll try and create some very basic test cases so we can investigate more simply. |
So been doing a bit of thinking and checking on this
So I wonder if can we simply state we don't support overlapping multipolys via the regular methods (eg union, intersect). Any treatment of overlapping multipolys requires the user to iteratively call martinez. I think this seems fairly reasonable... |
Further to this the OGC simple feature specification states that
I think this first point is inline with what I'm proposing. And we think we just need a use case or two to check the output against point 2... |
Superseded |
Adding a test fixture for multipolygon features. Lots of weirdness going on with all the operations. Currently the results of operations include points that it shouldn't. Have done much digging yet.
One thing that comes to mind is that the existing multipoly test fixtures don't overlap eachother, eg they are disjoint from one another.
PS Not helped that leaflet is having some troubles working out how to render it properly :(