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

Regression between v7 & v8 #54

Closed
rowanwins opened this issue Dec 18, 2018 · 3 comments
Closed

Regression between v7 & v8 #54

rowanwins opened this issue Dec 18, 2018 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rowanwins
Copy link
Contributor

Hi @mfogel

When updating this module in turf in line with #50 I've now got some tests which fail which previously passed.

I'm basically just trying to union a massive feature collection (here it is).

Nothing fancy, just

const args = fc.features.map(f => f.geometry.coordinates)
pc.union(...args))

Hunting back through the repo history I can see it worked with v7, however it breaks in v8 throwing a splaytree error. And in v9.2 it spins infinitely...

Will see if I can narrow down the test case at all

Cheers

@rowanwins
Copy link
Contributor Author

Okie dokie well I've managed to narrow down the test case to 5 polygons
https://gist.github.com/rowanwins/7da6ec92059833bc71d6b3899a308e7d

Hopefully slightly more manageable to debug :)

@mfogel mfogel added the bug Something isn't working label Dec 18, 2018
@mfogel mfogel self-assigned this Dec 18, 2018
@mfogel mfogel closed this as completed in 7241212 Dec 19, 2018
@mfogel
Copy link
Owner

mfogel commented Dec 19, 2018

Hi @rowanwins thanks for the bug report & simplifying down the polygons. I was able to simplify the situation some more to this test case, and then from there figure out the fix.

Let me know if the fix does or does not work for you.

I suspect this change probably fixed some of the other open bugs as well - I need to do a pass through those open tickets and run them against master.

@rowanwins
Copy link
Contributor Author

That's done the job thanks @mfogel!

@mfogel mfogel added this to the v0.10 milestone Jan 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants