diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-08-25 20:02:33 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-08-25 20:02:33 +0200 |
| commit | 4d972f5d93857437c1b1b4912cc803df27f45a26 (patch) | |
| tree | 80797d56949b8d1ad4e808c2af7a61f956ed0fa4 /src | |
| parent | 3119518b76dad0ff4a72e5410c955585e3b5b803 (diff) | |
| download | PROJ-4d972f5d93857437c1b1b4912cc803df27f45a26.tar.gz PROJ-4d972f5d93857437c1b1b4912cc803df27f45a26.zip | |
Import WebMercator from PROJ string: make sure the WGS84 datum is set
Diffstat (limited to 'src')
| -rw-r--r-- | src/iso19111/io.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |
