mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +01:00
Check if the conversion is valid/exists when loading the PCS entry
This commit is contained in:
parent
48396e254b
commit
bd8d2267c7
@ -63,6 +63,11 @@ bool PCS::loadList(const QString &path)
|
||||
qWarning("%s:%d: Unknown GCS code", qPrintable(path), csv.line());
|
||||
continue;
|
||||
}
|
||||
if (Conversion::conversion(proj).isNull()) {
|
||||
qWarning("%s:%d: Unknown projection code", qPrintable(path),
|
||||
csv.line());
|
||||
continue;
|
||||
}
|
||||
|
||||
_pcss.insert(id, Entry(name, gcs, proj));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user