From ab286291c7f21b64d9f689ed7d4fde2ebe42bb95 Mon Sep 17 00:00:00 2001 From: Romain Garrigues <romain.garrigues@c-s.fr> Date: Tue, 5 Feb 2008 15:49:36 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20d'un=20template=20pour=20permettre=20le?= =?UTF-8?q?s=20forward=20map=20projections,=20correction=20sur=20les=20com?= =?UTF-8?q?mentaires=20lat/lon=20des=20points=20pass=C3=A9s=20en=20param?= =?UTF-8?q?=C3=A8tres=20des=20testing/examples/applications=20d'orthorecti?= =?UTF-8?q?fication?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Projections/otbConvertCartoToGeoPoint.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Projections/otbConvertCartoToGeoPoint.cxx b/Projections/otbConvertCartoToGeoPoint.cxx index 2d204d3eac..bb38d802ea 100644 --- a/Projections/otbConvertCartoToGeoPoint.cxx +++ b/Projections/otbConvertCartoToGeoPoint.cxx @@ -20,6 +20,7 @@ #include <iostream> +#include <iomanip> #include "otbCommandLineArgumentParser.h" #include "otbImageFileReader.h" @@ -53,8 +54,8 @@ int generic_main(int argc, char* argv[], TMapProjection* mapProjection, otb::Com geoPoint = mapProjection->TransformPoint(cartoPoint); - std::cout << "Cartographic Point (x , y) : (" << cartoPoint[0] << "," << cartoPoint[1] << ")" << std::endl; - std::cout << "Geographic Point (Lat,Lon) : (" << geoPoint[1] << "," << geoPoint[0] << ")" << std::endl; + std::cout << std::setprecision(10) << "Cartographic Point (x , y) : (" << cartoPoint[0] << "," << cartoPoint[1] << ")" << std::endl; + std::cout << std::setprecision(10) << "Geographic Point (Lat,Lon) : (" << geoPoint[1] << "," << geoPoint[0] << ")" << std::endl; } -- GitLab