projects:coverage:howto

This is an old revision of the document!


coverage

  • -gcp x(longitude “pixel”) y(latitude “line”) easting(longitude degree decimal) northing(latitude degree decimal)

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
</bash>
 
<code bash>
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
  • projects/coverage/howto.1482410557.txt.gz
  • Last modified: 2016/12/22 13:42
  • by scipio