diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-12-05 13:32:16 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-12-05 13:32:16 +0100 |
| commit | 97bbfe32aacc361a5c34bcb2c5045c977d21de4b (patch) | |
| tree | f3975439b9f8ca57d477fb4393b7460feabcaeff /src | |
| parent | f3a9e54c09829cec51062ebb754545c79370ddfe (diff) | |
| download | PROJ-97bbfe32aacc361a5c34bcb2c5045c977d21de4b.tar.gz PROJ-97bbfe32aacc361a5c34bcb2c5045c977d21de4b.zip | |
import from PROJ string CRS: better deal with strings that look like Google Mercator projection, but with subtlely different parameters (fixes https://github.com/OSGeo/gdal/issues/2087)
Diffstat (limited to 'src')
| -rw-r--r-- | src/iso19111/io.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/iso19111/io.cpp b/src/iso19111/io.cpp index 0d98e2de..2aec5fac 100644 --- a/src/iso19111/io.cpp +++ b/src/iso19111/io.cpp @@ -8582,7 +8582,11 @@ CRSNNPtr PROJStringParser::Private::buildProjectedCRS( break; } } - if (getNumericValue(getParamValue(step, "a")) == 6378137) { + if (getNumericValue(getParamValue(step, "a")) == 6378137 && + getAngularValue(getParamValue(step, "lon_0")) == 0.0 && + getAngularValue(getParamValue(step, "lat_0")) == 0.0 && + getAngularValue(getParamValue(step, "x_0")) == 0.0 && + getAngularValue(getParamValue(step, "y_0")) == 0.0) { bWebMercator = true; } } else if (hasParamValue(step, "lat_ts")) { |
