From 099eec0f1283e2c3a62275edb1c86b5029e3287d Mon Sep 17 00:00:00 2001 From: Rashad Kanavath <rashad.kanavath@c-s.fr> Date: Tue, 3 Apr 2018 16:15:03 +0200 Subject: [PATCH] ENH: avoid newlines at end of app description --- Modules/Applications/AppMathParserX/app/otbBandMathX.cxx | 4 +--- .../AppProjection/app/otbOrthoRectification.cxx | 7 ++----- .../AppProjection/app/otbVectorDataReprojection.cxx | 8 ++------ .../AppSARCalibration/app/otbSARCalibration.cxx | 2 +- .../Applications/AppSARCalibration/app/otbSARDeburst.cxx | 2 +- 5 files changed, 7 insertions(+), 16 deletions(-) diff --git a/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx b/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx index f07a4c1af9..54be6d8f63 100644 --- a/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx +++ b/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx @@ -59,9 +59,7 @@ private: { SetName( "BandMathX" ); - SetDescription( - "This application performs mathematical operations on several multiband images.\n" - ); + SetDescription("This application performs mathematical operations on several multiband images."); SetDocName( "Band Math X" ); diff --git a/Modules/Applications/AppProjection/app/otbOrthoRectification.cxx b/Modules/Applications/AppProjection/app/otbOrthoRectification.cxx index 7fd5b47b89..0a08916483 100644 --- a/Modules/Applications/AppProjection/app/otbOrthoRectification.cxx +++ b/Modules/Applications/AppProjection/app/otbOrthoRectification.cxx @@ -90,12 +90,9 @@ private: void DoInit() override { SetName("OrthoRectification"); - std::ostringstream oss; - oss << "This application allows ortho-rectifying optical and radar images from supported sensors." << std::endl; - SetDescription(oss.str()); - // Documentation + SetDescription("This application allows ortho-rectifying optical and radar images from supported sensors."); SetDocName("Ortho-rectification"); - oss.str(""); + std::ostringstream oss; oss<<"This application uses inverse sensor modelling combined with a choice of interpolation functions to resample a sensor geometry image into a ground geometry regular grid. "; oss<<"The ground geometry regular grid is defined with respect to a map projection (see map parameter). The application offers several modes to estimate the output grid parameters (origin and ground sampling distance), including automatic estimation of image size, ground sampling distance, or both, from image metadata, user-defined ROI corners, or another ortho-image."; oss<<"A digital Elevation Model along with a geoid file can be specified to account for terrain deformations."; diff --git a/Modules/Applications/AppProjection/app/otbVectorDataReprojection.cxx b/Modules/Applications/AppProjection/app/otbVectorDataReprojection.cxx index 9d82850935..8babbfa314 100644 --- a/Modules/Applications/AppProjection/app/otbVectorDataReprojection.cxx +++ b/Modules/Applications/AppProjection/app/otbVectorDataReprojection.cxx @@ -63,13 +63,9 @@ private: void DoInit() override { SetName("VectorDataReprojection"); - std::ostringstream oss; - oss << "Reproject a vector data using support image projection reference" - ", or a user specified map projection" << std::endl; - SetDescription(oss.str()); - // Documentation + SetDescription("Reproject a vector data using support image projection reference, or a user specified map projection"); SetDocName("Vector Data reprojection"); - oss.str(""); + std::ostringstream oss; oss <<" This application allows reprojecting a vector data using support image projection reference" ", or a user given map projection." << std::endl; oss <<" If given, image keywordlist can be added to reprojected vectordata."; diff --git a/Modules/Applications/AppSARCalibration/app/otbSARCalibration.cxx b/Modules/Applications/AppSARCalibration/app/otbSARCalibration.cxx index 4eeef97447..14698cce48 100644 --- a/Modules/Applications/AppSARCalibration/app/otbSARCalibration.cxx +++ b/Modules/Applications/AppSARCalibration/app/otbSARCalibration.cxx @@ -48,7 +48,7 @@ private: void DoInit() override { SetName("SARCalibration"); - SetDescription("Perform radiometric calibration of SAR images. Following sensors are supported: TerraSAR-X, Sentinel1 and Radarsat-2.Both Single Look Complex(SLC) and detected products are supported as input.\n"); + SetDescription("Perform radiometric calibration of SAR images. Following sensors are supported: TerraSAR-X, Sentinel1 and Radarsat-2.Both Single Look Complex(SLC) and detected products are supported as input."); // Documentation SetDocName("SAR Radiometric calibration"); diff --git a/Modules/Applications/AppSARCalibration/app/otbSARDeburst.cxx b/Modules/Applications/AppSARCalibration/app/otbSARDeburst.cxx index e86f601529..0858e7e714 100644 --- a/Modules/Applications/AppSARCalibration/app/otbSARDeburst.cxx +++ b/Modules/Applications/AppSARCalibration/app/otbSARDeburst.cxx @@ -47,7 +47,7 @@ private: void DoInit() override { SetName("SARDeburst"); - SetDescription("This application performs deburst of Sentinel1 IW SLC images by removing redundant lines.\n"); + SetDescription("This application performs deburst of Sentinel1 IW SLC images by removing redundant lines."); // Documentation SetDocName("SAR Deburst"); -- GitLab