From 4d972f5d93857437c1b1b4912cc803df27f45a26 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sun, 25 Aug 2019 20:02:33 +0200 Subject: Import WebMercator from PROJ string: make sure the WGS84 datum is set --- src/iso19111/io.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/iso19111/io.cpp b/src/iso19111/io.cpp index ddef9796..f4d93ef4 100644 --- a/src/iso19111/io.cpp +++ b/src/iso19111/io.cpp @@ -8350,6 +8350,10 @@ CRSNNPtr PROJStringParser::Private::buildProjectedCRS( break; } } + if (getNumericValue(getParamValue(step, "a")) == 6378137) { + return createPseudoMercator(PropertyMap().set( + IdentifiedObject::NAME_KEY, "WGS 84 / Pseudo-Mercator")); + } } else if (hasParamValue(step, "lat_ts")) { mapping = getMapping(EPSG_CODE_METHOD_MERCATOR_VARIANT_B); } else { -- cgit v1.2.3