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

Matching intersection error #32

Open
3 tasks
karimbahgat opened this issue Jan 5, 2022 · 0 comments
Open
3 tasks

Matching intersection error #32

karimbahgat opened this issue Jan 5, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@karimbahgat
Copy link
Collaborator

Some boundary files, seemingly very large ones, abort early during the matching process. Looks like turf.js has trouble calculating the intersection for some shapes:

turf.min.js:88 Uncaught Error: Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.
    at t.value (turf.min.js:88)
    at Object.intersection (turf.min.js:88)
    at Object.sy [as intersect] (turf.min.js:88)
    at similarity (internalSpatialWorker.js:33)
    at self.onmessage (internalSpatialWorker.js:65)

Possible solutions:

  • Look into the intersection error itself if there's some obvious easy fix.
  • Try to get around the error, e.g. add a fallback that simplifies or fixes invalid geometries and then try again.
  • Even with the above, some shapes may be buggy and not able to be fixed. In those cases, skip over them and continue the matching process. Maybe add an error icon for those shapes that couldn't be calculated.
@karimbahgat karimbahgat added the bug Something isn't working label Jan 5, 2022
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

1 participant