snippetbashTip
gdal2tiles.py — Generate TMS or XYZ tiles for a raster dataset. More information: <https://gdal.org/en/stable/progra
Viewed 0 times
commandtmscligdal2tiles.pyxyztilesforgenerate
Problem
How to use the
gdal2tiles.py command: Generate TMS or XYZ tiles for a raster dataset. More information: <https://gdal.org/en/stable/programs/gdal2tiles.html>.Solution
gdal2tiles.py — Generate TMS or XYZ tiles for a raster dataset. More information: <https://gdal.org/en/stable/programs/gdal2tiles.html>.Generate TMS tiles for the zoom levels 2 to 5 of a raster dataset:
gdal2tiles.py --zoom 2-5 {{path/to/input.tif}} {{path/to/output_directory}}Generate XYZ tiles for the zoom levels 2 to 5 of a raster dataset:
gdal2tiles.py --zoom 2-5 --xyz {{path/to/input.tif}} {{path/to/output_directory}}Code Snippets
Generate TMS tiles for the zoom levels 2 to 5 of a raster dataset
gdal2tiles.py --zoom 2-5 {{path/to/input.tif}} {{path/to/output_directory}}Generate XYZ tiles for the zoom levels 2 to 5 of a raster dataset
gdal2tiles.py --zoom 2-5 --xyz {{path/to/input.tif}} {{path/to/output_directory}}Context
tldr-pages: common/gdal2tiles.py
Revisions (0)
No revisions yet.