-
Notifications
You must be signed in to change notification settings - Fork 12
Tiling a Raster Image
Karl edited this page Sep 16, 2019
·
2 revisions
Given: A georeferenced raster image encoded with bytes data.tif
- Tile it:
python gdal2tiles.py -r near -z '12-20' -w none data.tif
(creates LODs 12 to 20 with nearest neighbor scaling, since the encoded values we tend to use don't play nicely with interpolation) - Fix the naming of the tiles so they conform to our standard:
python manage.py tms_to_osm_tilenames --pyramidpath data
(gdal2tiles names the y-coordinate by the TMS standard, while we use the OSM naming in our pyramids)