From 5f3bdb87f8c65931d76f21ae9589ee46743fd502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 8 May 2017 20:17:14 +0200 Subject: [PATCH] Added support for British, Irish and Swedish grid projections --- src/offlinemap.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/offlinemap.cpp b/src/offlinemap.cpp index cdc86565..244ad230 100644 --- a/src/offlinemap.cpp +++ b/src/offlinemap.cpp @@ -248,6 +248,15 @@ bool OfflineMap::createProjection(const QString &datum, } else if (projection == "(NZTM2) New Zealand TM 2000") _projection = new TransverseMercator(d.ellipsoid(), 0, 173.0, 0.9996, 1600000, 10000000); + else if (projection == "(BNG) British National Grid") + _projection = new TransverseMercator(d.ellipsoid(), 49, -2, 0.999601, + 400000, -100000); + else if (projection == "(IG) Irish Grid") + _projection = new TransverseMercator(d.ellipsoid(), 53.5, -8, 1.000035, + 200000, 250000); + else if (projection == "(SG) Swedish Grid") + _projection = new TransverseMercator(d.ellipsoid(), 0, 15.808278, 1, + 1500000, 0); else { _errorString = QString("%1: Unknown map projection").arg(projection); return false;