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

Fix issue where Graph could not be created with empty extent #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aalexsmithh
Copy link

This small change fixes an issue where a Graph could not be created with an empty extent. The bug has been mentioned here (#92) and here (#90), and I was experiencing it myself when using the match command.

It looks like a check was added for an empty extent at some point with this commit: fix error handling for empty tiles but the null check need to be moved to a point before any turf packages were invoked. It is possible that turf had null checks in their methods at some point in the past but has removed them, causing the issue described.

I tested this with the tests included and with my own data, and the Graph should now be able to be created with an empty extent.

@aalexsmithh aalexsmithh changed the title add null check on polygon in getTileIdsForPolygon Fix issue where Graph could not be created with empty extent Jun 20, 2021
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

Successfully merging this pull request may close these issues.

None yet

1 participant