From b6b5af97793094f7718931eab29e410e61cb0784 Mon Sep 17 00:00:00 2001
From: Guillaume Pasero <guillaume.pasero@c-s.fr>
Date: Wed, 4 Jan 2012 15:00:06 +0100
Subject: [PATCH] ENH: updated example values for Projection and Hyperspectral
 applications

---
 Applications/Hyperspectral/otbHyperspectralUnmixing.cxx   | 4 ++--
 Applications/Hyperspectral/otbVertexComponentAnalysis.cxx | 2 +-
 Applications/Projections/otbConvertSensorToGeoPoint.cxx   | 5 +++++
 Applications/Projections/otbImageEnvelope.cxx             | 2 +-
 Applications/Projections/otbOrthoRectification.cxx        | 5 +++--
 Applications/Utils/otbVectorDataTransform.cxx             | 3 ++-
 6 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/Applications/Hyperspectral/otbHyperspectralUnmixing.cxx b/Applications/Hyperspectral/otbHyperspectralUnmixing.cxx
index da7fe46342..622a619c6f 100644
--- a/Applications/Hyperspectral/otbHyperspectralUnmixing.cxx
+++ b/Applications/Hyperspectral/otbHyperspectralUnmixing.cxx
@@ -141,8 +141,8 @@ private:
     SetParameterDescription("ua.mdmdnmf", "Minimum Dispertion Constrained Non Negative Matrix Factorization");
     SetParameterString("ua", "ucls");
     // Doc example parameter settings
-    SetDocExampleParameterValue("in", "hsi_cube.tif");
-    SetDocExampleParameterValue("ie", "endmembers.tif");
+    SetDocExampleParameterValue("in", "cupriteSubHsi.tif");
+    SetDocExampleParameterValue("ie", "cupriteEndmembers.tif");
     SetDocExampleParameterValue("out", "HyperspectralUnmixing.tif double");
     SetDocExampleParameterValue("ua", "ucls");
   }
diff --git a/Applications/Hyperspectral/otbVertexComponentAnalysis.cxx b/Applications/Hyperspectral/otbVertexComponentAnalysis.cxx
index adc42ab75b..572a594748 100644
--- a/Applications/Hyperspectral/otbVertexComponentAnalysis.cxx
+++ b/Applications/Hyperspectral/otbVertexComponentAnalysis.cxx
@@ -85,7 +85,7 @@ private:
     MandatoryOn("outendm");
 
     // Doc example parameter settings
-    SetDocExampleParameterValue("in", "hsi_cube.tif");
+    SetDocExampleParameterValue("in", "cupriteSubHsi.tif");
     SetDocExampleParameterValue("ne", "5");
     SetDocExampleParameterValue("outendm", "VertexComponentAnalysis.tif double");
   }
diff --git a/Applications/Projections/otbConvertSensorToGeoPoint.cxx b/Applications/Projections/otbConvertSensorToGeoPoint.cxx
index e3612a8115..582c8d5539 100644
--- a/Applications/Projections/otbConvertSensorToGeoPoint.cxx
+++ b/Applications/Projections/otbConvertSensorToGeoPoint.cxx
@@ -81,6 +81,11 @@ private:
     
     SetParameterRole("output.town", Role_Output );
     SetParameterRole("output.country", Role_Output );
+    
+    // Doc example parameter settings
+    SetDocExampleParameterValue("in","QB_TOULOUSE_MUL_Extract_500_500.tif");
+    SetDocExampleParameterValue("input.idx","200");
+    SetDocExampleParameterValue("input.idy","200");
   }
 
   void DoUpdateParameters()
diff --git a/Applications/Projections/otbImageEnvelope.cxx b/Applications/Projections/otbImageEnvelope.cxx
index 5ecb5f41c1..1cd8fd81a2 100644
--- a/Applications/Projections/otbImageEnvelope.cxx
+++ b/Applications/Projections/otbImageEnvelope.cxx
@@ -75,7 +75,7 @@ private:
     MandatoryOff("proj");
     
    // Doc example parameter settings
-    SetDocExampleParameterValue("in", "sensor_stereo_left.tif");
+    SetDocExampleParameterValue("in", "QB_TOULOUSE_MUL_Extract_500_500.tif");
     SetDocExampleParameterValue("out", "ImageEnvelope.shp");
   }
 
diff --git a/Applications/Projections/otbOrthoRectification.cxx b/Applications/Projections/otbOrthoRectification.cxx
index 612b6ed5c9..76cffe8aee 100644
--- a/Applications/Projections/otbOrthoRectification.cxx
+++ b/Applications/Projections/otbOrthoRectification.cxx
@@ -193,8 +193,9 @@ private:
     SetParameterDescription("opt.gridspacing", "Resampling is done according to a coordinate mapping grid, whose pixel size is set by this parameter. The closer to the output spacing this parameter is, the more precise will be the ortho-rectified image, but increasing this parameter allows to reduce processing time.");
     MandatoryOff("opt.gridspacing");
 
-    // TODO Doc example parameter settings
-    //SetDocExampleParameterValue("", "");
+    // Doc example parameter settings
+    SetDocExampleParameterValue("io.in", "QB_TOULOUSE_MUL_Extract_500_500.tif");
+    SetDocExampleParameterValue("io.out","QB_Toulouse_ortho.tif");
   }
 
   void DoUpdateParameters()
diff --git a/Applications/Utils/otbVectorDataTransform.cxx b/Applications/Utils/otbVectorDataTransform.cxx
index a1a58b0046..ca14b6c7d8 100644
--- a/Applications/Utils/otbVectorDataTransform.cxx
+++ b/Applications/Utils/otbVectorDataTransform.cxx
@@ -96,7 +96,8 @@ private:
     SetDefaultParameterFloat("transform.scale", 1.);
 
     // Doc example parameter settings
-    SetDocExampleParameterValue("in", "qb_RoadExtract_easyClassification.shp");
+    SetDocExampleParameterValue("vd", "qb_RoadExtract_easyClassification.shp");
+    SetDocExampleParameterValue("in", "qb_RoadExtract.tif");
     SetDocExampleParameterValue("out", "VectorDataTransform.shp");
     SetDocExampleParameterValue("transform.ro", "5");
   }
-- 
GitLab