Commit 26ebcd61 authored by Julien Cabieces's avatar Julien Cabieces

fix Python binding

parent 5d6795ef
......@@ -96,7 +96,9 @@ namespace Wrapper
ParameterType_Group,
ParameterType_ListView,
ParameterType_RAM,
ParameterType_Bool
ParameterType_Bool,
ParameterType_Field,
ParameterType_Band
} ParameterType;
typedef enum
......@@ -638,7 +640,7 @@ class ApplicationProxy(object):
ParameterType_Choice : 'ParameterType_Choice',
ParameterType_Group : 'ParameterType_Group',
ParameterType_Bool : 'ParameterType_Bool',
ParameterType_Field : 'ParameterType_Field'
ParameterType_Field : 'ParameterType_Field',
ParameterType_Band : 'ParameterType_Band'
}.get(parameter_type, 'ParameterType_UNKNOWN')
......@@ -663,7 +665,7 @@ class ApplicationProxy(object):
return self.SetParameterString(paramKey, value)
elif paramType in [ParameterType_InputImageList, ParameterType_InputVectorDataList,
ParameterType_InputFilenameList, ParameterType_StringList,
ParameterType_ListView]:
ParameterType_ListView, ParameterType_Field, ParameterType_Band]:
return self.SetParameterStringList(paramKey, value)
elif paramType in [ParameterType_Int, ParameterType_Radius]:
return self.SetParameterInt(paramKey, value)
......@@ -699,7 +701,7 @@ class ApplicationProxy(object):
return self.GetParameterString(paramKey)
elif paramType in [ParameterType_InputImageList, ParameterType_InputVectorDataList,
ParameterType_InputFilenameList, ParameterType_StringList,
ParameterType_ListView]:
ParameterType_ListView, ParameterType_Field, ParameterType_Band]:
return self.GetParameterStringList(paramKey)
elif paramType in [ParameterType_Int, ParameterType_Radius, ParameterType_RAM]:
return self.GetParameterInt(paramKey)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment