diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-11-28 20:02:15 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-11-28 20:02:15 +0100 |
| commit | c6dda7637c0c49ece9216395caffa2bbd6184a92 (patch) | |
| tree | 307d1cfc8a61f38ad2c7ed3196aa065842bacb84 /src/iso19111 | |
| parent | e44a2acd9bc6006b66674609d39872b6291efee7 (diff) | |
| download | PROJ-c6dda7637c0c49ece9216395caffa2bbd6184a92.tar.gz PROJ-c6dda7637c0c49ece9216395caffa2bbd6184a92.zip | |
WKT1 import: better deal with apps.epsg.org output w.r.t datum ensemble names
Diffstat (limited to 'src/iso19111')
| -rw-r--r-- | src/iso19111/io.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/iso19111/io.cpp b/src/iso19111/io.cpp index 52d46d27..125105ec 100644 --- a/src/iso19111/io.cpp +++ b/src/iso19111/io.cpp @@ -2163,9 +2163,15 @@ GeodeticReferenceFrameNNPtr WKTParser::Private::buildGeodeticReferenceFrame( return false; }; - if (name == "WGS_1984") { + // Remap GDAL WGS_1984 to EPSG v9 "World Geodetic System 1984" official + // name. + // Also remap EPSG v10 datum ensemble names to non-ensemble EPSG v9 + if (name == "WGS_1984" || name == "World Geodetic System 1984 ensemble") { properties.set(IdentifiedObject::NAME_KEY, GeodeticReferenceFrame::EPSG_6326->nameStr()); + } else if (name == "European Terrestrial Reference System 1989 ensemble") { + properties.set(IdentifiedObject::NAME_KEY, + "European Terrestrial Reference System 1989"); } else if (starts_with(name, "D_")) { esriStyle_ = true; const char *tableNameForAlias = nullptr; |
