diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-10-16 00:21:43 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-10-16 18:49:58 +0200 |
| commit | d981e01e3f4de4f582ac2442c5c1987650e86877 (patch) | |
| tree | 7031832b5f67b0afc27c8b132b79770b1ee54320 /src/apps/projinfo.cpp | |
| parent | 53e716f80f1e08642013714aceb4f7a210ed5306 (diff) | |
| download | PROJ-d981e01e3f4de4f582ac2442c5c1987650e86877.tar.gz PROJ-d981e01e3f4de4f582ac2442c5c1987650e86877.zip | |
projinfo: restrict PROJ multiline output to coordinate operations only
Diffstat (limited to 'src/apps/projinfo.cpp')
| -rw-r--r-- | src/apps/projinfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apps/projinfo.cpp b/src/apps/projinfo.cpp index f36674fd..ee48a69c 100644 --- a/src/apps/projinfo.cpp +++ b/src/apps/projinfo.cpp @@ -352,7 +352,8 @@ static void outputObject( auto formatter = PROJStringFormatter::create( PROJStringFormatter::Convention::PROJ_5, dbContext); - formatter->setMultiLine(!outputOpt.singleLine); + formatter->setMultiLine(!outputOpt.singleLine && + crs == nullptr); std::cout << objToExport->exportToPROJString(formatter.get()) << std::endl; } catch (const std::exception &e) { |
