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

use rio-tiler native function #167

Closed
vincentsarago opened this issue Feb 11, 2021 · 0 comments · Fixed by #168
Closed

use rio-tiler native function #167

vincentsarago opened this issue Feb 11, 2021 · 0 comments · Fixed by #168

Comments

@vincentsarago
Copy link
Member

tasks = create_tasks(_reader, mosaic_assets, threads, lon, lat, **kwargs)
return [
{"asset": asset, "values": pt}
for pt, asset in filter_tasks(
tasks, allowed_exceptions=(PointOutsideBounds,)
)
]

https://github.com/cogeotiff/rio-tiler/blob/master/rio_tiler/tasks.py#L72-L85

breaking change
will return a dict in form of {"{asset}": ["value"], .... } instead of [{"asset": asset, "values": pt}

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 a pull request may close this issue.

1 participant