[gdal-dev] Incorrect result with gdal_translate and KMLSUPEROVERLAY

Joseph Barraud joseph.barraud at gmail.com
Wed Mar 21 00:32:55 PDT 2018


Hi all,

I am trying to create a Google Earth overlay with an RGB image that should
cover (almost) the entire globe. The image has a 1 minute resolution, goes
from 0 to 360 in longitude, but does not cover the poles. Here is the
output from gdalinfo (GDAL version 2.2.3):

Driver: GTiff/GeoTIFF
Files: test.tif
Size is 21600, 9689
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (0.000000000000000,80.738000000000000)
Pixel Size = (0.016666666666667,-0.016666666666667)
Metadata:
  AREA_OR_POINT=Area
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
  TIFFTAG_XRESOLUTION=100
  TIFFTAG_YRESOLUTION=100
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (   0.0000000,  80.7380000) (  0d 0' 0.01"E, 80d44'16.80"N)
Lower Left  (   0.0000000, -80.7453333) (  0d 0' 0.01"E, 80d44'43.20"S)
Upper Right (     360.000,      80.738) (360d 0' 0.00"E, 80d44'16.80"N)
Lower Right (     360.000,     -80.745) (360d 0' 0.00"E, 80d44'43.20"S)
Center      ( 180.0000000,  -0.0036667) (180d 0' 0.00"E,  0d 0'13.20"S)
Band 1 Block=21600x1 Type=Byte, ColorInterp=Red
Band 2 Block=21600x1 Type=Byte, ColorInterp=Green
Band 3 Block=21600x1 Type=Byte, ColorInterp=Blue


I use the following command to create a kmz file:
gdal_translate -of KMLSUPEROVERLAY test.tif test.kmz

The kmz is displayed nicely in Google Earth Pro except that there is a
problem at the 0 deg meridian. There is a small gap in the overlay that is
larger at the equator than near the poles. I tried shifting the image but I
just managed to shift the gap.

Do you have an idea of what I could do differently?

Kind regards,
Joseph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180321/e89cd2a6/attachment.html>


More information about the gdal-dev mailing list