aboutsummaryrefslogtreecommitdiff
path: root/src/iso19111/io.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-03-25 12:44:05 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-03-25 13:05:40 +0100
commit46f08f1434f66a4160d7c74923efcfb81505b398 (patch)
tree680c623c5eee0978cf03e2f6475995d1e8cd52d0 /src/iso19111/io.cpp
parentd4fd50f10ecabb9e9642cb4f877262e082677be4 (diff)
downloadPROJ-46f08f1434f66a4160d7c74923efcfb81505b398.tar.gz
PROJ-46f08f1434f66a4160d7c74923efcfb81505b398.zip
WKT2_2018: always export ID in base crs node, even if there is one on upper node
This is a particular logic allowed by paragraph 7.3.3 Identifier of OGC 18-010r6
Diffstat (limited to 'src/iso19111/io.cpp')
-rw-r--r--src/iso19111/io.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/iso19111/io.cpp b/src/iso19111/io.cpp
index 220ee967..78b18719 100644
--- a/src/iso19111/io.cpp
+++ b/src/iso19111/io.cpp
@@ -634,6 +634,18 @@ bool WKTFormatter::primeMeridianInDegree() const {
// ---------------------------------------------------------------------------
+bool WKTFormatter::idOnTopLevelOnly() const {
+ return d->params_.idOnTopLevelOnly_;
+}
+
+// ---------------------------------------------------------------------------
+
+bool WKTFormatter::topLevelHasId() const {
+ return d->stackHasId_.size() >= 2 && d->stackHasId_[1];
+}
+
+// ---------------------------------------------------------------------------
+
WKTFormatter::Version WKTFormatter::version() const {
return d->params_.version_;
}