tf198 / gdal2custommap

Create Garmin CustomMap compatible KMZ from a geo-referenced image
10 stars 3 forks source link

Multiple geotiff files #1

Open mrmattwilkins opened 7 years ago

mrmattwilkins commented 7 years ago

Hi, Can this work with a virtual mosaic? Got a bunch of tifs and want to make a kmz. Currently I do gdalbuildvrt mosaic.vrt *.tif gdal_translate -of KMLSUPEROVERLAY mosaic.vrt out.kmz but the resulting kmz isn't optimized for garmins. Thanks Matt

tf198 commented 7 years ago

Hi Matt

Haven't used the VRT driver myself but the scripts just use the gdal.Open() call which should be able to handle any drivers that you have installed, so in theory the following should work...

python gdal2kml.py mosaic.vrt my_map.kml
python kml2kmz.py my_map.kml

Let me know how you get on...