Using GDAL to create MBtiles from WMTS/WMS and rasters
Open
Nobody has claimed this yet.
write new
- Dominant language
- Vue
- Stars
- 15
- Forks
- 22
- Avg merge
- 5d 11h
- Merged PRs (30d)
- 9
Description
It is more convenient to use GDAL for automating creation of MBtiles from WMTS/WMS.
- Download the WM(T)S.xml
- use GDAL to extract the layer you want:
gdal_translate "WMTS:wmts.xml,layer=Road_27700" wmts2.xml -of WMTS - Convert to MBTile:
gdal_translate -of MBTILES wmts2.xml os-offline.mbtiles -projwin <ulx> <uly> <lrx> <lry> -projwin_srs EPSG:27700 - Add overviews:
gdaladdo os-offline.mbtiles 2 4 8 16 32 64 128 256 512 1024
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No target documentation file or test is identified. Start by reviewing the GDAL command sequence for WMTS/WMS and raster-to-MBTiles conversion, then determine where this workflow belongs in the documentation. Done means the supported workflow, required inputs, and example commands are documented clearly.
Written by the indexing model from the issue text.
Assessment
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100