From a6899c98a6455dc022bdd6785af3e528488422b8 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 8 Jan 2019 17:44:49 +0100 Subject: projinfo: use PROJ.4 label for CRS, and PROJ otherwise. Add test case for CRS with towgs84 keyword --- src/apps/projinfo.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/apps/projinfo.cpp b/src/apps/projinfo.cpp index 0540a0f9..446a1e9e 100644 --- a/src/apps/projinfo.cpp +++ b/src/apps/projinfo.cpp @@ -258,11 +258,15 @@ static void outputObject(DatabaseContextPtr dbContext, BaseObjectNNPtr obj, if (alreadyOutputed) { std::cout << std::endl; } + auto crs = nn_dynamic_pointer_cast(obj); if (!outputOpt.quiet) { - std::cout << "PROJ string:" << std::endl; + if( crs ) { + std::cout << "PROJ.4 string:" << std::endl; + } else { + std::cout << "PROJ string:" << std::endl; + } } - auto crs = nn_dynamic_pointer_cast(obj); std::shared_ptr objToExport; if (crs) { objToExport = -- cgit v1.2.3