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

Add support and tests for legacy mosaic tile routes #234

Merged
merged 2 commits into from
Jul 18, 2024

Conversation

mmcfarland
Copy link
Member

@mmcfarland mmcfarland commented Jul 18, 2024

The tile route prefixes were reordered in recent versions of titiler.pgstac. Both versions of the routes are supported in PC and tests have been added to confirm.

Additionally, we are stripping the new {tileMatrixSetId} template path from the mosaic/register tilejson URLs that are returned, as this is new behavior intended to align with new OGC Feature specs. This keeps the result as a valid URL that can be used without modification by clients.

Here are the two main formats, both link to the same tile and both should succeed:

legacy

https://planetarycomputer-staging.microsoft.com/api/data/v1/mosaic/7cb4f0c421e47f279c4b2bab066f5f42/tiles/WebMercatorQuad/14/4422/6652@1x?collection=naip&assets=image&asset_bidx=image|1,2,3

current

https://planetarycomputer-staging.microsoft.com/api/data/v1/mosaic/tiles/7cb4f0c421e47f279c4b2bab066f5f42/WebMercatorQuad/14/4422/6652@1x?collection=naip&assets=image&asset_bidx=image|1,2,3

The tile route prefixes were reordered in recent versions of
titiler.pgstac. Both versions of the routes are supported in PC and
tests have been added to confirm.
@mmcfarland mmcfarland merged commit d2b46c9 into main Jul 18, 2024
5 checks passed
@mmcfarland mmcfarland deleted the user/mjm/support-legacy-tile-paths branch July 18, 2024 16:40
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