Repository navigation
Imagery: MapTiler Satellite fallback outside IGN.fr and SwissImage coverage - #165
Merged
Merged
Conversation
…e coverage A tile outside a national orthophoto coverage made the whole download fail: IGN.fr answers 404 (sea, borders), SwissImage 400 "Tile out of bounds". ImageryProvider.FallbackProvider now fetches the same z/x/y from another provider (tiles of another size are resized when the texture is built), and TileRange.FallbackProviderUsed tells the caller to add its attribution. IGN.es keeps no fallback: outside Spain it answers 200 with its own low-resolution filler, which can't be told apart reliably. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why
A tile outside a national orthophoto coverage made the whole imagery download fail, so any area touching the sea or a border failed with IGN.fr or SwissImage:
{"message":"Tile out of bounds …"}beyond its extent (it does serve real cross-border photos near the border; those are kept).What
ImageryProvider.FallbackProvider: on a 404/400 for a tile,DownloadTilesAsyncfetches the same z/x/y from the fallback. MapTiler's 512 px tiles are resized when the texture is built (existingLoadTile/TileDecoderbehaviour).TileRange.FallbackProviderUsedtells callers to add the fallback's attribution; the download logs how many tiles came from it.MapTilerSatellite(needs theMapTilerKeysecret).Tests
ImageryFallbackTests(stub HTTP handler): 404 and 400 fall back, no fallback when every tile is found, no fallback configured still throws, predefined wiring.Companion WebAPI PR adds the attribution.
🤖 Generated with Claude Code