Enhancements to tile cutter for parallelism and image format support
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 7 commits behind roblabs:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE.TXT
README.md
gdal2tilesp.py
test.sh

README.md

Credits

Introduction

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 both PNG and JPEG tile outputs. Use the -f flag to choose; PNG is the default format.

Run gdal2tilesp.py --help to check all the command-line parameters of the script.

Notes

  • Generates tilesjson in the file index.html, which then is consumed by KlokanTech tileview.
    • tileview further 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 tms parameter is set to false
  • Generates metatdata.json which is interpreted by mb-util for use with mbtiles.
var lyr = L.tileLayer('./{z}/{x}/{y}.png', {tms: false, opacity: 1.0, attribution: ""});

Caveats

  • The epsg::900913 projection code is not supported, use epsg:3857 to generate a tile set in web mercator projection.