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

expose rbush tree, allowing extra flexibility if needed #2

Closed
wants to merge 1 commit into from

Conversation

tcql
Copy link
Contributor

@tcql tcql commented Nov 18, 2015

When using which-polygon to determine what country a tile belongs to, I found some edge cases where I need access to the rbush tree to handle cases where a single point test is insufficient. Rather than build a second copy of the rbush tree, it seems easier and more logical to just expose the tree used internally in which-polygon.

@mourner
Copy link
Member

mourner commented Nov 18, 2015

Instead of this, I'm thinking of implementing an efficient "bbox intersects polygon" algorithm, which would be faster than doing lineclip.

@tcql tcql closed this Nov 23, 2015
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

2 participants