Skip to content

Commit c548f8d

Browse files
amondotvolaya
authored andcommittedNov 4, 2015
[processing/otb]convert ListView in StringList for other applications than Radiometric Indices
1 parent 04907d1 commit c548f8d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎python/plugins/processing/algs/otb/maintenance/OTBHelper.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ def get_param_descriptor(appkey, app_instance, our_descriptor, root):
278278
if parameters[app_instance.GetParameterType(our_descriptor)] == "ParameterType_OutputImage" :
279279
attrs = {'source_parameter_type' : 'ParameterType_OutputFilename'}
280280

281+
if parameters[app_instance.GetParameterType(our_descriptor)] == "ParameterType_ListView" :
282+
if not appkey == "RadiometricIndices" :
283+
attrs = {'source_parameter_type' : 'ParameterType_StringList'}
284+
281285
param_type = ET.SubElement(param, 'parameter_type', attrib=attrs)
282286

283287
param_type.text = inverted_parameters[parameters[app_instance.GetParameterType(our_descriptor)]]
@@ -290,6 +294,9 @@ def get_param_descriptor(appkey, app_instance, our_descriptor, root):
290294
if appkey == "SplitImage" :
291295
if parameters[app_instance.GetParameterType(our_descriptor)] == "ParameterType_OutputImage" :
292296
param_type.text = "OutputFile"
297+
if parameters[app_instance.GetParameterType(our_descriptor)] == "ParameterType_ListView" :
298+
if not appkey == "RadiometricIndices" :
299+
param_type.text = "ParameterString"
293300

294301
# {the_params = get_constructor_parameters_from_filename(file_parameter, mapped_parameter)
295302
if len(the_params) == 0:

0 commit comments

Comments
 (0)