Add support and tests for legacy mosaic tile routes #234
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 themosaic/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