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

[Utility] Check if given features exist within the bounding box #27

Closed
OmarMuhammedAli opened this issue Jun 24, 2021 · 0 comments · Fixed by #66
Closed

[Utility] Check if given features exist within the bounding box #27

OmarMuhammedAli opened this issue Jun 24, 2021 · 0 comments · Fixed by #66
Assignees
Labels
feature A feature request for the SDK utility

Comments

@OmarMuhammedAli
Copy link
Contributor

Is your feature request related to a problem? Please describe.
We need to make sure that the queried features within a given bbox actually exist and are confined by that bbox. When using mercantile.tiles(), the return will be all the tile that intersect with the input bbox, some features within the intersecting border tiles may not exist within the bbox itself.

Describe the solution you'd like
The implementation will be a pure boolean function that takes in a feature object and a bounding box (east, west, north, south) that returns True if the feature exists within the bbox and False if it is not confined by the bbox.

Describe alternatives you've considered
To be considered

Additional context
Chris's implementation for inspiration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A feature request for the SDK utility
Projects
Development

Successfully merging a pull request may close this issue.

2 participants