gdal2tiles.py Command Examples

Generate TMS or XYZ tiles for a raster dataset. More information: https://gdal.org/programs/gdal2tiles.html.

gdal2tiles.py --zoom 2-5 {{path/to/input.tif}} {{path/to/output_directory}}

gdal2tiles.py --zoom 2-5 --xyz {{path/to/input.tif}} {{path/to/output_directory}}