From 8ef0e511b9bdc31bd4d26e0cfcb10edc58023cc2 Mon Sep 17 00:00:00 2001
From: Otmane Lahlou <otmane.lahlou@c-s.fr>
Date: Mon, 17 Oct 2011 17:08:33 +0200
Subject: [PATCH] ENH: add a default value to the deformation field spacing
 parameter

---
 Applications/Projections/otbOrthoRectification.cxx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Applications/Projections/otbOrthoRectification.cxx b/Applications/Projections/otbOrthoRectification.cxx
index fc8ccbfa26..572ac62bb7 100644
--- a/Applications/Projections/otbOrthoRectification.cxx
+++ b/Applications/Projections/otbOrthoRectification.cxx
@@ -176,7 +176,9 @@ private:
     MandatoryOff("map.epsg.code");
 
     // Deformation Field Spacing
-    AddParameter(ParameterType_Float, "gridspacing", "Generate a coarser deformation field with the given spacing");
+    AddParameter(ParameterType_Float, "gridspacing", "Deformation Field Spacing");
+    SetParameterInt("gridspacing", 4.);
+    SetParameterDescription("gridspacing", "Generate a coarser deformation field with the given spacing");
     MandatoryOff("gridspacing");
   }
 
-- 
GitLab