1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 14:53:21 +02:00

Accept case insensitive authorities names

This commit is contained in:
Martin Tůma 2020-10-11 21:33:19 +02:00
parent d579ce3482
commit 5a4de1cef0

View File

@ -28,7 +28,7 @@ Projection CRS::projection(const QString &crs)
return Projection(); return Projection();
} }
if (authority == "EPSG") { if (!authority.compare("EPSG", Qt::CaseInsensitive)) {
epsg = code.toInt(&res); epsg = code.toInt(&res);
if (!res) if (!res)
return Projection(); return Projection();
@ -39,7 +39,7 @@ Projection CRS::projection(const QString &crs)
return Projection(gcs); return Projection(gcs);
else else
return Projection(); return Projection();
} else if (authority == "OGC") { } else if (!authority.compare("OGC", Qt::CaseInsensitive)) {
if (code == "CRS84") if (code == "CRS84")
return Projection(GCS::gcs(4326), CoordinateSystem::XY); return Projection(GCS::gcs(4326), CoordinateSystem::XY);
else else