diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-03-25 11:44:05 +0000 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-03-25 12:05:40 +0000 |
| commit | 78fc3263edb399e32f62f06b68dcaf6191fd515f (patch) | |
| tree | ba3d8b5ee32dcfa46cc3fe7403e11fca0718788e /src/iso19111/io.cpp | |
| parent | 6b99f76ccd422691fd2618535256818a4df719a4 (diff) | |
| download | PROJ-78fc3263edb399e32f62f06b68dcaf6191fd515f.tar.gz PROJ-78fc3263edb399e32f62f06b68dcaf6191fd515f.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.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/iso19111/io.cpp b/src/iso19111/io.cpp index c046f9de..16a8a0e4 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_; } |
