download from Mapbox endpoint pulls .webp files
See original GitHub issueHello, I have been working through your diary example on Tanzania but I want to pull from Mapbox instead as that is closer to what I’ll ultimately be doing. I ran the command:
rs download https://api.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}@2x.webp?access_token=[API_KEY] output_folder_name
But I get back .webp files rather than .png files. I am less experienced with Mapbox/OSM and I’m coming from a deep learning background so I’d prefer to work directly with png (or jpeg) files so I can try some different segmentation models outside of what is available in Robosat (and potentially try to build out some features in the process). Can I change my rs download line in some way to get png/jpeg?
Thanks for building such a great product!
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Static and print maps | Help - Mapbox docs
Static maps are standalone images in PNG format that can be displayed on web and mobile devices without the aid of a mapping...
Read more >Serving map tiles from SQLite with MBTiles and datasette-tiles
Creating MBTiles files with my download-tiles tool. A sticking point when I started playing with MBTiles was finding example files to work with....
Read more >AV Detection: Marked as clean - Hybrid Analysis
This report is generated from a file or URL submitted to this webservice on July 29th 2019 07:04:51 (UTC) and action script Default...
Read more >daniel-j-h's Diary | RoboSat ❤️ Tanzania | OpenStreetMap
I will first walk you through creating a dataset based on drone imagery available on OpenAerialMap and corresponding building masks bootstrapped from ...
Read more >How to Save a Mapbox GL Web Map Extent as an Image
Based on a need in the community of users, we made the list available as a PDF download, in addition to displaying results...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The
.webpURl results in Mapbox sending a webp image file over the wire.The
--extextension flag results in us saving the image file in the specified format.We provide the ext flag so we not tied to tile endpoint formats.
Slippy Map tiles are geo-referenced by means of their tile ids, i.e. z,x,y in /z/x/y.png. Please reads e.g. the OSM wiki docs on that.
Re. the Mapbox API I don’t know if they have changed anything but in the past it was possible to download webp image tiles.
Good luck.
On June 7, 2020 8:22:37 AM UTC, radoslawkrolikowski notifications@github.com wrote: