From 4fa0c250c125b8b034e0a17d2d03909dafdb6813 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 22 Oct 2020 18:15:39 +0200 Subject: 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. --- src/iso19111/io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } } -- cgit v1.2.3