diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-04-11 00:04:10 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2021-04-11 00:04:10 +0200 |
| commit | ea51372c7952b66fdf38657ee9afd30afac6ca05 (patch) | |
| tree | d3e6f77abf2139bcd19cd6970d8d156fc82352fa /src | |
| parent | 5f3fda7527bb3f41f1ac842d7dc6d7a6fa2f0529 (diff) | |
| download | PROJ-ea51372c7952b66fdf38657ee9afd30afac6ca05.tar.gz PROJ-ea51372c7952b66fdf38657ee9afd30afac6ca05.zip | |
createFromUserInput(): support URN:OGC:DEF:CRS:OGC:1.3:CRS84
Diffstat (limited to 'src')
| -rw-r--r-- | src/iso19111/io.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/iso19111/io.cpp b/src/iso19111/io.cpp index bd29c310..d4b3dcb0 100644 --- a/src/iso19111/io.cpp +++ b/src/iso19111/io.cpp @@ -6626,9 +6626,9 @@ static BaseObjectNNPtr createFromUserInput(const std::string &text, }; // urn:ogc:def:crs:EPSG::4326 - if (tokens.size() == 7 && tokens[0] == "urn") { + if (tokens.size() == 7 && tolower(tokens[0]) == "urn") { - const auto &type = tokens[3]; + const auto type = tokens[3] == "CRS" ? "crs" : tokens[3]; const auto &authName = tokens[4]; const auto &code = tokens[6]; return createFromURNPart(type, authName, code); |
