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,19 +34,26 @@ bool WMTS::createProjection(const QString &crs)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (authority != "EPSG")
|
||||
return false;
|
||||
epsg = code.toInt(&res);
|
||||
if (!res)
|
||||
return false;
|
||||
if (authority == "EPSG") {
|
||||
epsg = code.toInt(&res);
|
||||
if (!res)
|
||||
return false;
|
||||
|
||||
if ((pcs = PCS::pcs(epsg))) {
|
||||
_projection = Projection(pcs->gcs(), pcs->method(), pcs->setup(),
|
||||
pcs->units());
|
||||
return true;
|
||||
} else if ((gcs = GCS::gcs(epsg))) {
|
||||
_projection = Projection(gcs);
|
||||
return true;
|
||||
if ((pcs = PCS::pcs(epsg))) {
|
||||
_projection = Projection(pcs->gcs(), pcs->method(), pcs->setup(),
|
||||
pcs->units());
|
||||
return true;
|
||||
} else if ((gcs = GCS::gcs(epsg))) {
|
||||
_projection = Projection(gcs);
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user