November 19th, 2013
attempt to convert a geotiff to KMZ
# reproject into WGS84 lat/lon gdalwarp -t_srs EPSG:4326 -dstnodata 0 input.tif output.tif # https://developers.google.com/kml/articles/raster#translate gdal_translate -of vrt -expand rgba output.tif output.vrt gdal2tiles.py -p geodetic -k output.vrt |
This mostly works, but the nodata from the original GeoTIFF doesn’t get preserved as a PNG alpha channel in the KMZ tiles. Still need to figure that out.