From 5eb6a67befc5bc27c832fcccc4d86a41b295ce27 Mon Sep 17 00:00:00 2001
From: Jonathan Guinet <jonathan.guinet@c-s.fr>
Date: Wed, 22 Feb 2012 11:57:21 +0100
Subject: [PATCH] ENH: wrong parameter type for sample.vfn in
 trainSVMCLassifier.

---
 Applications/Classification/otbTrainSVMImagesClassifier.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Applications/Classification/otbTrainSVMImagesClassifier.cxx b/Applications/Classification/otbTrainSVMImagesClassifier.cxx
index b8d46d45cf..c47fafa550 100644
--- a/Applications/Classification/otbTrainSVMImagesClassifier.cxx
+++ b/Applications/Classification/otbTrainSVMImagesClassifier.cxx
@@ -179,7 +179,7 @@ private:
                             "Ratio between training and validation samples (0.0 = all training, 1.0 = all validation) default = 0.5.");
     SetParameterFloat("sample.vtr", 0.5);
     
-    AddParameter(ParameterType_InputFilename, "sample.vfn", "Name of the discrimination field");
+    AddParameter(ParameterType_String, "sample.vfn", "Name of the discrimination field");
     SetParameterDescription("sample.vfn", "Name of the field used to discriminate class in the vector data files.");
     SetParameterString("sample.vfn", "Class");
 
-- 
GitLab