I'm using the free version of Google Earth, so in order to create superoverlays of my large TIF images I have to use additional software. Google suggests GDAL.

Using the instructions Google provides I generate my superoverlay in two steps. Here's an example:

Step 1:

gdal_translate -of VRT -a_srs EPSG:3632 -gcp 0 0 1130000 770000 -gcp 10000 0 1135000 770000 -gcp 10000 10000 1135000 765000 MyImage.tif MyImage.vrt

Step 2:

gdal2tiles.py -p geodetic -k MyImage.vrt

Those commands don't specify PNG format, but apparently that's the default because that's what I get. GDAL documentation has image quality options for some of its output formats (e.g., PNG, JPG) but I'm not sure how to apply them here because my gdal_translate command output format is VRT.

I understand that in generating superoverlays, there is resampling of the original image, and some quality loss might be expected. But this is too much. The original is so much better!

Is there some simple way to specify quality of the PNG images? Or do I need to switch to JPG or other format? If so, how?

  • It may be worth asking on the gdal mailing list. They're usually very helpful. Feb 27, 2015 at 17:37
  • I'm not sure this will help, but gdal_translate allows you to convert from a GeoTiff straight to a KMZ file using the SUPEROVERLAY output format. For example: gdal_translate -of KMLSUPEROVERLAY -expand RGB input.tiff output.kmz -co FORMAT=PNG. You can also try different resampling algorithm s with the -r option.
    – cokrzys
    Mar 7, 2015 at 0:55


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.