[gdal-dev] gdal_translate converted kml doesn't cover the whole earth

Pan, Jianfu (GSFC-423.0)[COLUMBUS TECHNOLOGIES AND SERVICES INC] jianfu.pan at nasa.gov
Thu Jul 23 05:30:10 PDT 2015

Sorry for the double post.  Mail failed to send in the first try, now both come out :-).  -Jianfu

From: gdal-dev-bounces at lists.osgeo.org [gdal-dev-bounces at lists.osgeo.org] on behalf of J Pan [jianfu.pan at nasa.gov]
Sent: Thursday, July 23, 2015 7:03 AM
To: gdal-dev at lists.osgeo.org
Subject: [gdal-dev] gdal_translate converted kml doesn't cover the whole        earth


I have a geotiff file with lat/lon ranges set to 85S to 85N and -180W to
180E.  I was able to read out the lat/lon boundaries in the tif file and
they are 83.632S to 83.632N and 179.813W to 179.813E. The lat/lon values
seem to be the centers of grid boxes.  I used the gdal_translate to
convert to kml then display it in GoogleEarth.  My problem is there is a
gap towards the end of the data near the dateline.  In other words, the
map starts at 180W and stops at about 179.01E, not 180E.  Anyone had the
same situation?

Here is the output from my listgeo on the original tif file:
    Version: 1
    Key_Revision: 1.0
       ModelTiepointTag (2,3):
          0                 0                 0
          -17367530.4451649 7314540.64739566  0
       ModelPixelScaleTag (1,3):
          36032.2208405911  36032.2199379096  0
       GTModelTypeGeoKey (Short,1): ModelTypeProjected
       GTRasterTypeGeoKey (Short,1): RasterPixelIsArea
       GTCitationGeoKey (Ascii,31): "Cylindrical Equal Area (WGS84)"
       GeographicTypeGeoKey (Short,1): GCS_WGS_84
       GeogGeodeticDatumGeoKey (Short,1): DatumE_WGS84
       GeogLinearUnitsGeoKey (Short,1): Linear_Meter
       GeogAngularUnitsGeoKey (Short,1): Angular_Degree
       GeogEllipsoidGeoKey (Short,1): Ellipse_WGS_84
       GeogSemiMajorAxisGeoKey (Double,1): 6378137
       GeogSemiMinorAxisGeoKey (Double,1): 6356752.31424
       ProjectedCSTypeGeoKey (Short,1): User-Defined
       ProjectionGeoKey (Short,1): User-Defined
       ProjCoordTransGeoKey (Short,1): CT_CylindricalEqualArea
       ProjLinearUnitsGeoKey (Short,1): Linear_Meter
       ProjLinearUnitSizeGeoKey (Double,1): 1
       ProjStdParallel1GeoKey (Double,1): 30

Projection Method: CT_CylindricalEqualArea
    ProjStdParallel1GeoKey: 30.000000 ( 30d 0' 0.00"N)
    ProjNatOriginLongGeoKey: 0.000000 (  0d 0' 0.00"E)
    ProjFalseEastingGeoKey: 0.000000 m
    ProjFalseNorthingGeoKey: 0.000000 m
GCS: 4326/WGS 84
Datum: 6030/(unknown)
Ellipsoid: 7030/WGS 84 (6378137.00,6356752.31)
Prime Meridian: 8901/Greenwich (0.000000/  0d 0' 0.00"E)
Projection Linear Units: 9001/metre (1.000000m)

Corner Coordinates:
Upper Left    (-17367530.445, 7314540.647)  (179d60' 0.00"E, 85d 2'40.38"N)
Lower Left    (-17367530.445,-7314540.647)  (179d60' 0.00"E, 85d 2'40.38"S)
Upper Right   (17367530.445, 7314540.647)  (179d60' 0.00"W, 85d 2'40.38"N)
Lower Right   (17367530.445,-7314540.647)  (179d60' 0.00"W, 85d 2'40.38"S)
Center        (       0.000,       0.000)  (  0d 0' 0.00"E,  0d 0' 0.00"N)

Thank you.
gdal-dev mailing list
gdal-dev at lists.osgeo.org

More information about the gdal-dev mailing list