- Jorge Arévalo wrote this enhancement.
This enhancement to the gdal2tiles.py script includes the following additional features:
- Parallel processing, to use all available machine cores when generating tiles. This speeds up tile creation considerably.
- Support for both the TMS and XYZ tile cache formats. Use the -o flag to choose; XYZ is the default format.
- Support for PNG, JPEG and WEBP tile outputs. Use the -f flag to choose; PNG is the default format.
- Support for Tile Size. Use the -q flag to choose; 256 is the default, supported sizes are 256/512/1024.
Run gdal2tilesp.py --help to check all the command-line parameters of the script.
- Generates tilesjson in the file index.html, which then is consumed by KlokanTech
tileview.tileviewfurther generates Leaflet, OpenLayers 2 & 3, Google Maps, WebGL, OL3-Cesium, Mapbox JS, and ArcGIS for JavaScript.
- Generates Leaflet layer for use with the XYZ default format. Where the
tmsparameter is set tofalse - Generates metatdata.json which is interpreted by
mb-utilfor use with mbtiles.
var lyr = L.tileLayer('./{z}/{x}/{y}.png', {tms: false, opacity: 1.0, attribution: ""});
- The
epsg::900913projection code is not supported, useepsg:3857to generate a tile set in web mercator projection.