This is an old revision of the document!
coverage
from kml to TMS tiles
sudo apt install -y gdal-bin
we have two files:
- copertura.bmp
- copertura.kml
convert bmp to transparent png
to-png blue copertura.kml
from KML
N=46.27951 S=46.24351 E=11.82932 W=11.77726
from gdalinfo
gdalinfo copertura.png X=1400 Y=1400
# -gcp x(longitude "pixel") y(latitude "line") easting(longitude degree decimal) northing(latitude degree decimal) gdal_translate -of vrt -expand rgba -a_srs EPSG:4326 -gcp 0 0 $W $N -gcp $X $Y $E $S -gcp 0 $Y $W $S copertura.png /tmp/copertura.vrt gdal2tiles.py -w openlayers -z 13-17 --title "san martino" /tmp/copertura.vrt /tmp/sanmartino