From c9cedebeb0d835f76c2ec7ef23355825f425761c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 13 May 2018 01:16:10 +0200 Subject: [PATCH] Use the propper mercator projection EPSG code number --- src/map/geotiff.cpp | 2 +- src/map/projection.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map/geotiff.cpp b/src/map/geotiff.cpp index f33de18f..cd00d952 100644 --- a/src/map/geotiff.cpp +++ b/src/map/geotiff.cpp @@ -331,7 +331,7 @@ Projection::Method GeoTIFF::method(QMap &kv) case CT_ObliqueMercator: return Projection::Method(9815); case CT_Mercator: - return Projection::Method(9804); + return Projection::Method(9805); case CT_LambertConfConic_2SP: return Projection::Method(9802); case CT_LambertConfConic_1SP: diff --git a/src/map/projection.cpp b/src/map/projection.cpp index a40487d4..06292ee9 100644 --- a/src/map/projection.cpp +++ b/src/map/projection.cpp @@ -17,7 +17,7 @@ Projection::Method::Method(int id) case 1024: case 9801: case 9802: - case 9804: + case 9805: case 9807: case 9815: case 9820: @@ -51,7 +51,7 @@ Projection::Projection(const PCS *pcs) : _gcs(pcs->gcs()), _units(pcs->units()), setup.longitudeOrigin(), setup.falseEasting(), setup.falseNorthing()); break; - case 9804: + case 9805: _ct = new Mercator(ellipsoid, setup.latitudeOrigin(), setup.longitudeOrigin(), setup.falseEasting(), setup.falseNorthing());