mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Accept case insensitive authorities names
This commit is contained in:
parent
d579ce3482
commit
5a4de1cef0
@ -28,7 +28,7 @@ Projection CRS::projection(const QString &crs)
|
||||
return Projection();
|
||||
}
|
||||
|
||||
if (authority == "EPSG") {
|
||||
if (!authority.compare("EPSG", Qt::CaseInsensitive)) {
|
||||
epsg = code.toInt(&res);
|
||||
if (!res)
|
||||
return Projection();
|
||||
@ -39,7 +39,7 @@ Projection CRS::projection(const QString &crs)
|
||||
return Projection(gcs);
|
||||
else
|
||||
return Projection();
|
||||
} else if (authority == "OGC") {
|
||||
} else if (!authority.compare("OGC", Qt::CaseInsensitive)) {
|
||||
if (code == "CRS84")
|
||||
return Projection(GCS::gcs(4326), CoordinateSystem::XY);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user