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

Basemapper sometimes has mixed jpg and png images #268

Open
spwoodcock opened this issue Jul 5, 2024 · 5 comments
Open

Basemapper sometimes has mixed jpg and png images #268

spwoodcock opened this issue Jul 5, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@spwoodcock
Copy link
Member

Describe the bug

Issue from #266

Tile data comparison

  • osm-fieldwork generates the tile table with mixed png / jpg data.
  • There are also some rows with missing data.

image

  • QGIS generates consistent image format, depending on what is specified.
  • There are no rows with missing data.

image

Image comparison

  • The quality of the embedded images is the same between QGIS and osm-fieldwork.
  • The correct data is inserted in the right place:

image

Possible solutions

  • Add image conversion jpg --> png and vice versa.
  • Do not append rows with empty data.
@spwoodcock spwoodcock added the bug Something isn't working label Jul 5, 2024
@rsavoye
Copy link
Collaborator

rsavoye commented Jul 7, 2024

Basemapper shouldn't be a mix of pngs and jpgs when using the same upstream source. The suffix is defined in the imagery.yaml file, and shouldn't ever change when downloading tiles. Empty rows are from networking issues with the imagery server. I often have to run basemapper 2-3 times to get everything, but it should be easy to add support to try a tile again if there are networking issuses, which would eliminate the empty tiles.

@spwoodcock
Copy link
Member Author

I should have clarified to say this is for a TMS source

@spwoodcock
Copy link
Member Author

Perhaps we should add a provider "oam" that is specifically configured to work well with OAM.

TMS can be quite varied, with metadata available and xy ordering.

OAM for example uses the swapped --xy format

@rsavoye
Copy link
Collaborator

rsavoye commented Jul 7, 2024

There is an oam in imagery.yaml. I only used it for the Turkey earthquake, but didn't see any issues with mixing png and jpgs. The swapped xy is what forced me to add that setting in the config file.

@spwoodcock
Copy link
Member Author

I can confirm this is only for custom TMS from OpenAerialMap.

Perhaps it's a big with OAM providing mixed image types?

Need to confirm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants