I have a kmz file which I would like to convert to geotiff. Unfortunately, gdal cannot handle kmz files from the rack. Obviously, there seems to be a driver available on: https://www.gdal.org/drv_libkml.html
How do I build this driver and use it?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
Try uncompressing/unzipping the KMZ file to a KML file first. Use any file extraction/unzip software (unzip/7-zip are good tools). Then you can use gdal_rasterize to create the geotiff like the example below:
gdal_rasterize -burn 255 -burn 0 -burn 0 -ot Byte -ts 10000 10000 -a_srs EPSG:4326 -l somelayer somelayer.kml mynewgeotiff.tif