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

refactor: add core.utils.bounds_to_geometry to reuse in factories #1047

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

Conversation

pratapvardhan
Copy link

At 5 places piece of code is used to convert bounds to geometry. This PR adds titiler.core.utils.bounds_to_geometry and updates core, mosaic and xarray factories to use the function instead.

cc @vincentsarago –– totally fine if you decide to close this PR – it may or may not be essential to the immediate focus of the project.

@vincentsarago
Copy link
Member

🙌 this is great.

I'll try to merge this week but I'm pretty hands down and focused on one other project right now

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.

2 participants