1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 19:55:53 +01:00

Added support for OGC:CRS84 CRS to WMTS maps

This commit is contained in:
Martin Tůma 2018-02-24 11:20:29 +01:00
parent 376587202b
commit 6e95d484cd

View File

@ -34,8 +34,7 @@ bool WMTS::createProjection(const QString &crs)
return false; return false;
} }
if (authority != "EPSG") if (authority == "EPSG") {
return false;
epsg = code.toInt(&res); epsg = code.toInt(&res);
if (!res) if (!res)
return false; return false;
@ -49,6 +48,14 @@ bool WMTS::createProjection(const QString &crs)
return true; return true;
} else } else
return false; return false;
} else if (authority == "OGC") {
if (code == "CRS84") {
_projection = Projection(GCS::gcs(4326));
return true;
} else
return false;
} else
return false;
} }
void WMTS::tileMatrix(QXmlStreamReader &reader) void WMTS::tileMatrix(QXmlStreamReader &reader)