Skip to content

Fix overdeclared imagery max zooms#2974

Open
KTibow wants to merge 9 commits into
osmlab:gh-pagesfrom
KTibow:fix-usgs-imagery-max-zoom
Open

Fix overdeclared imagery max zooms#2974
KTibow wants to merge 9 commits into
osmlab:gh-pagesfrom
KTibow:fix-usgs-imagery-max-zoom

Conversation

@KTibow

@KTibow KTibow commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • lowers max_zoom for imagery sources whose currently declared maximum zoom returns no usable imagery
  • keeps this as source metadata changes only; no upstream brute-force probing code is added
  • includes the original USGS Imagery fix and related strict-validation geometry correction
  • incorporates a follow-up audit fix for sources where broader sampling found valid higher-zoom tiles

What Changed

Representative image spot-check table; for each row, the first column was selected from a sampled in-coverage tile that decoded as non-flat imagery, while the new max + 1 and old max tile URLs failed during probing.

Image spot-check table for max_zoom changes
New max New max + 1 Old max
osmim-imagicode-S2B_R005_S7X_20200303T061749
antarctica/osmim-imagicode-S2B_R005_S7X_20200303T061749.geojson
z12
z13
z13
osmim-imagicode-S2B_R049_SXX_20220316T080929
antarctica/osmim-imagicode-S2B_R049_SXX_20220316T080929.geojson
z12
z13
z13
osmim-imagicode-S2B_R057_S7X_20190210T213409
antarctica/osmim-imagicode-S2B_R057_S7X_20190210T213409.geojson
z12
z13
z13
osmim-imagicode-S2B_R061_S7X_20200226T041719
antarctica/osmim-imagicode-S2B_R061_S7X_20200226T041719.geojson
z12
z13
z13
osmim-imagicode-S2B_R063_SXX_20220317T073919
antarctica/osmim-imagicode-S2B_R063_SXX_20220317T073919.geojson
z12
z13
z13
osmim-imagicode-S2B_R069_S83_20230111T174429
antarctica/osmim-imagicode-S2B_R069_S83_20230111T174429.geojson
z11
z12
z12
osmim-imagicode-S2B_R071_S72_20200216T210519
antarctica/osmim-imagicode-S2B_R071_S72_20200216T210519.geojson
z12
z13
z13
osmim-imagicode-S2B_R075_S7X_20190113T034629
antarctica/osmim-imagicode-S2B_R075_S7X_20190113T034629.geojson
z12
z13
z13
osmim-imagicode-S2B_R091_S7X_20210324T063829
antarctica/osmim-imagicode-S2B_R091_S7X_20210324T063829.geojson
z12
z13
z13
osmim-imagicode-S2B_R098_S83_20230113T182459
antarctica/osmim-imagicode-S2B_R098_S83_20230113T182459.geojson
z11
z12
z12
osmim-imagicode-S2B_R121_SXX_20220209T085949
antarctica/osmim-imagicode-S2B_R121_SXX_20220209T085949.geojson
z12
z13
z13
osmim-imagicode-S2B_R127_S83_20230115T190459
antarctica/osmim-imagicode-S2B_R127_S83_20230115T190459.geojson
z11
z12
z12
osmim-imagicode-S2B_R143_S7X_20200302T215359
antarctica/osmim-imagicode-S2B_R143_S7X_20200302T215359.geojson
z12
z13
z13
basemap.at-orthofoto
europe/at/BasemapOrthofoto.geojson
z19
z20
z20
Geoportal2-PL-aerial_image_WMTS
europe/pl/Geoportal2Orthophotomap(aerialimage)_WMTS.geojson
z19
z20
z23
Toronto-Imagery-Most-Current-Year
north-america/ca/on/CityofTorontoImageryLatest.geojson
z21
z22
z24
USGS-Imagery
north-america/us/USGSImagery.geojson
z16
z17
z20
Burbank_CA_2021
north-america/us/ca/Burbank_CA_2021.geojson
z20
z21
z23
Calaveras_CA_2022
north-america/us/ca/Calaveras_CA_2022.geojson
z20
z21
z23
Calaveras_CA_2024
north-america/us/ca/Calaveras_CA_2024.geojson
z20
z21
z23
Sacramento_CA_2022
north-america/us/ca/Sacramento_CA_2022.geojson
z21
z22
z23
Solano_CA_2022
north-america/us/ca/Solano_CA_2022.geojson
z21
z22
z23
Alachua_Ortho_2020
north-america/us/fl/Alachua_Ortho_2020.geojson
z20
z21
z22
Alachua_Ortho_2023
north-america/us/fl/Alachua_Ortho_2023.geojson
z20
z21
z22
Baker_Ortho_2020
north-america/us/fl/Baker_Ortho_2020.geojson
z19
z20
z22
Escambia_Ortho_2019
north-america/us/fl/Escambia_Ortho_2019.geojson
z19
z20
z20
Escambia_Ortho_2022
north-america/us/fl/Escambia_Ortho_2022.geojson
z19
z20
z20
Santa_Rosa_Ortho_2022
north-america/us/fl/Santa_Rosa_Ortho_2022.geojson
z21
z22
z22
Seminole_Ortho_2023
north-america/us/fl/Seminole_Ortho_2023.geojson
z20
z21
z23
Scioto_OH_2023
north-america/us/oh/Scioto_OH_2023.geojson
z21
z22
z23
Fairfax_VA_2025
north-america/us/va/Fairfax_VA_2025.geojson
z20
z21
z23
VBMPImagery_Most_Recent
north-america/us/va/VBMPImagery_Most_Recent.geojson
z19
z20
z20
NSW_LPI_Imagery
oceania/au/nsw/NSW-WebServices-Imagery.geojson
z20
z21
z21

Disclosure

Generated by GPT-5.5 and Kimi K2.6 with human oversight

@KTibow KTibow changed the title Fix USGS Imagery max zoom Fix overdeclared imagery max zooms Jun 10, 2026
KTibow added 2 commits June 9, 2026 19:11
The availability audit found working z13 imagery, so this layer should not be lowered to z12.

Working z13 tile:

https://imagico.de/map/osmim_tiles.php?layer=S2B_R005_S69_20180222T061749&z=13&x=4943&y=1931
@KTibow KTibow marked this pull request as draft June 14, 2026 01:05
@KTibow KTibow marked this pull request as ready for review June 15, 2026 17:06
@KTibow KTibow marked this pull request as draft June 15, 2026 20:39
KTibow added 4 commits June 19, 2026 17:09
…y-max-zoom

Resolved conflict in Geoportal2Orthophotomap(aerialimage)_WMTS.geojson:
- Kept upstream's updated terms-of-use-text URL
- Kept PR's max_zoom: 19 (fixing overdeclared max zoom)
@KTibow KTibow marked this pull request as ready for review June 20, 2026 15:42
@KTibow

KTibow commented Jun 20, 2026

Copy link
Copy Markdown
Contributor Author

Ready for review! These are some of the safest changes I could make. Some images don't load in the comparison table for some reason but you should be able to view them if you click them.

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.

1 participant