mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-31 09:05:14 +01:00
Handle the WGS84 ellipsoid only definitions like the GRS80 ellipsoid only definitions
This commit is contained in:
parent
309fdb675c
commit
bf5ae22f0d
@ -296,14 +296,15 @@ const GCS *GeoTIFF::gcs(QMap<quint16, Value> &kv)
|
||||
_errorString = QString("%1: unknown GCS")
|
||||
.arg(kv.value(GeographicTypeGeoKey).SHORT);
|
||||
} else if (IS_SET(kv, GeogGeodeticDatumGeoKey)
|
||||
|| kv.value(GeogEllipsoidGeoKey).SHORT == 7019) {
|
||||
|| kv.value(GeogEllipsoidGeoKey).SHORT == 7019
|
||||
|| kv.value(GeogEllipsoidGeoKey).SHORT == 7030) {
|
||||
int pm = IS_SET(kv, GeogPrimeMeridianGeoKey)
|
||||
? kv.value(GeogPrimeMeridianGeoKey).SHORT : 8901;
|
||||
int au = IS_SET(kv, GeogAngularUnitsGeoKey)
|
||||
? kv.value(GeogAngularUnitsGeoKey).SHORT : 9102;
|
||||
|
||||
/* If only the ellipsoid is defined and it is GRS80, handle such
|
||||
definition as a WGS84 geodetic datum. */
|
||||
// If only the ellipsoid is defined and it is GRS80 or WGS84, handle
|
||||
// such definition as a WGS84 geodetic datum.
|
||||
int gd = IS_SET(kv, GeogGeodeticDatumGeoKey)
|
||||
? kv.value(GeogGeodeticDatumGeoKey).SHORT : 6326;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user