From 9a43a4d9be896fd1d5f648a10933389347d2b53f Mon Sep 17 00:00:00 2001
From: Otmane Lahlou <otmane.lahlou@c-s.fr>
Date: Fri, 28 Oct 2011 09:07:36 +0200
Subject: [PATCH] ENH: add parameter RAM to Orthorectification application

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

diff --git a/Applications/Projections/otbOrthoRectification.cxx b/Applications/Projections/otbOrthoRectification.cxx
index 3f0d346e9c..d5f3e7fd84 100644
--- a/Applications/Projections/otbOrthoRectification.cxx
+++ b/Applications/Projections/otbOrthoRectification.cxx
@@ -28,6 +28,8 @@
 
 #include "otbMacro.h"
 
+#include "otbWrapperRAMParameter.h"
+
 namespace otb
 {
 
@@ -107,6 +109,11 @@ private:
     AddParameter(ParameterType_OutputImage, "out", "Output Image");
     SetParameterDescription("out","Projected image");
 
+    // RAM available
+    AddParameter(ParameterType_RAM, "ram", "Available RAM");
+    SetDefaultParameterInt("ram", 256);
+    MandatoryOff("ram");
+    
     // Add the output paramters in a group
     AddParameter(ParameterType_Group, "outputs", "Output Parameters");
 
@@ -156,7 +163,7 @@ private:
     std::ostringstream oss;
     oss << "Activate RPC sensor model estimation"<<std::endl;
     oss << "Parameter is the number of control points per axis";
-    //SetParameterDescription("rpc", oss.str().c_str());
+    SetParameterDescription("rpc", oss.str().c_str());
     MandatoryOff("rpc");
 
     // Interpolators
-- 
GitLab