mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Added support for files referenced using geodetic datum+projection combination
This commit is contained in:
parent
b7dd11fa1f
commit
699de8b133
@ -321,6 +321,15 @@ bool GeoTIFF::projectedModel(QMap<quint16, Value> &kv)
|
|||||||
_errorString = QString("%1+%2: unknown GCS+projection combination")
|
_errorString = QString("%1+%2: unknown GCS+projection combination")
|
||||||
.arg(kv.value(GeographicTypeGeoKey).SHORT)
|
.arg(kv.value(GeographicTypeGeoKey).SHORT)
|
||||||
.arg(kv.value(ProjectionGeoKey).SHORT);
|
.arg(kv.value(ProjectionGeoKey).SHORT);
|
||||||
|
} else if (IS_SET(kv, GeogGeodeticDatumGeoKey)
|
||||||
|
&& IS_SET(kv, ProjectionGeoKey)) {
|
||||||
|
pcs = PCS(kv.value(GeogGeodeticDatumGeoKey).SHORT - 2000,
|
||||||
|
kv.value(ProjectionGeoKey).SHORT);
|
||||||
|
if (pcs.isNull())
|
||||||
|
_errorString =
|
||||||
|
QString("%1+%2: unknown geodetic datum+projection combination")
|
||||||
|
.arg(kv.value(GeogGeodeticDatumGeoKey).SHORT)
|
||||||
|
.arg(kv.value(ProjectionGeoKey).SHORT);
|
||||||
} else {
|
} else {
|
||||||
Datum d = datum(kv);
|
Datum d = datum(kv);
|
||||||
if (d.isNull())
|
if (d.isNull())
|
||||||
|
Loading…
Reference in New Issue
Block a user