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;
|
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;
|
|
||||||
|
|
||||||
if ((pcs = PCS::pcs(epsg))) {
|
if ((pcs = PCS::pcs(epsg))) {
|
||||||
_projection = Projection(pcs->gcs(), pcs->method(), pcs->setup(),
|
_projection = Projection(pcs->gcs(), pcs->method(), pcs->setup(),
|
||||||
pcs->units());
|
pcs->units());
|
||||||
return true;
|
return true;
|
||||||
} else if ((gcs = GCS::gcs(epsg))) {
|
} else if ((gcs = GCS::gcs(epsg))) {
|
||||||
_projection = Projection(gcs);
|
_projection = Projection(gcs);
|
||||||
return true;
|
return true;
|
||||||
|
} else
|
||||||
|
return false;
|
||||||
|
} else if (authority == "OGC") {
|
||||||
|
if (code == "CRS84") {
|
||||||
|
_projection = Projection(GCS::gcs(4326));
|
||||||
|
return true;
|
||||||
|
} else
|
||||||
|
return false;
|
||||||
} else
|
} else
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user