mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Added support for OGC:CRS84 CRS to WMTS maps
This commit is contained in:
parent
376587202b
commit
6e95d484cd
@ -34,8 +34,7 @@ bool WMTS::createProjection(const QString &crs)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (authority != "EPSG")
|
||||
return false;
|
||||
if (authority == "EPSG") {
|
||||
epsg = code.toInt(&res);
|
||||
if (!res)
|
||||
return false;
|
||||
@ -49,6 +48,14 @@ bool WMTS::createProjection(const QString &crs)
|
||||
return true;
|
||||
} else
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user