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

Tile images sometimes are corrupted #141

Closed
VicXue opened this issue Jul 12, 2019 · 4 comments
Closed

Tile images sometimes are corrupted #141

VicXue opened this issue Jul 12, 2019 · 4 comments

Comments

@VicXue
Copy link

VicXue commented Jul 12, 2019

I'm not sure what happened when I downloaded tile images. Some of the downloaded images are corrupted. I used this config.json setup:

{ "country": "new_zealand", "bounding_box": [175.1848,-37.8868,175.4386,-37.6892], "zoom": 17, "classes": [ {"name": "Populated Area", "filter": ["has", "building"] } ], "imagery": "http://a.tiles.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.jpg?access_token=pk.eyJ1IjoidmljeHVlIiwiYSI6ImNqeHRxbTk2dzB4N2ozbW50NTB5MzU5bDUifQ.HElp34ctd7HUI9i2vBoLMw", "background_ratio": 1, "ml_type": "segmentation" }

In total, there are 1032 images downloaded and 345 of these images are corrupted. Two of the corrupted images can be visualized, as shown in below. The rest of the corrupted images cannot be opened.
129325-80375-17
129326-80377-17

It seems it does not matter what classes I'm trying to retrieve, the downloaded tile images always contain corrupted images in this area. I used to use a smaller bounding box and it worked fine. Can you please give it a try and tell me what your result is? I'm not sure if there is something wrong on my end.

Thank you.

@VicXue VicXue mentioned this issue Jul 15, 2019
@drewbo
Copy link
Contributor

drewbo commented Jul 16, 2019

@VicXue in certain areas at higher resolution, the mapbox.satellite tileset doesn't have any data or returns lower quality imagery (black and white or lower resolution). We should definitely add better "handling" for this case but there isn't a way to prevent it outright (other than using another imagery endpoint)

@VicXue
Copy link
Author

VicXue commented Jul 16, 2019

@drewbo Is there a way for users to choose their own imagery endpoint? Or will such functionality be in later releases?

@drewbo
Copy link
Contributor

drewbo commented Jul 16, 2019

@VicXue yes, you can replace the imagery property in your config.json file with any valid XYZ tile endpoint or WMS endpoint (example for the latter shown here)

@VicXue
Copy link
Author

VicXue commented Jul 16, 2019

@drewbo Great, thank you for your support.

@VicXue VicXue closed this as completed Jul 16, 2019
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

No branches or pull requests

2 participants