diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-10-22 18:15:39 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-10-22 18:15:39 +0200 |
| commit | 4fa0c250c125b8b034e0a17d2d03909dafdb6813 (patch) | |
| tree | b56279d22ed84e3cbd7482e61e62d8e811130ee2 | |
| parent | b61a1d0575791173bbcc9c61f8c19acd52e1162f (diff) | |
| download | PROJ-4fa0c250c125b8b034e0a17d2d03909dafdb6813.tar.gz PROJ-4fa0c250c125b8b034e0a17d2d03909dafdb6813.zip | |
WKTParser::createFromWKT(): minor adjustement for DATUM[],PRIMEM[] constructs
The WKT parser on the second part was called with "RIMEM[...]" (leading P skipped),
which has no visible consequence, as we didn't care about the actual value of the
keyword due to how we used it. But this is better fixing that.
Only applies to recent master changes.
| -rw-r--r-- | src/iso19111/io.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iso19111/io.cpp b/src/iso19111/io.cpp index 99fc6046..0f4ffba0 100644 --- a/src/iso19111/io.cpp +++ b/src/iso19111/io.cpp @@ -6500,7 +6500,7 @@ BaseObjectNNPtr WKTParser::createFromWKT(const std::string &wkt) { ci_starts_with(wkt.c_str() + indexEnd, WKTConstants::PRIMEM.c_str())) { primeMeridian = d->buildPrimeMeridian( - WKTNode::createFrom(wkt, indexEnd + 1, 0, indexEnd), + WKTNode::createFrom(wkt, indexEnd, 0, indexEnd), UnitOfMeasure::DEGREE); } } |
