System Grab Bag

View all TLDR pages from common (or from all pages)

gdal2tiles.py

Generate TMS or XYZ tiles for a raster dataset. More information: https://gdal.org/programs/gdal2tiles.html.
  • Generate TMS tiles for the zoom levels 2-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-5 of a raster dataset:
    gdal2tiles.py --zoom={{2-5}} --xyz {{path/to/input.tif}} {{path/to/output_directory}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.