Commit a2626eb7 authored by Manuel Grizonnet's avatar Manuel Grizonnet

BUG: EnableParameter method should be used to activate EmptyParameter in...

BUG: EnableParameter method should be used to activate EmptyParameter in Python API in the ref documentation
parent ba0d38f1
......@@ -344,8 +344,8 @@ def GetApplicationExamplePythonSnippet(app,idx,expand = False, inputpath="",outp
#app.SetParameterString(param,value)
output+= "\t" + appname + ".SetParameterString(" + EncloseString(param) + "," + EncloseString(value) + ")" + linesep
if paramtype == otbApplication.ParameterType_Empty:
app.SetParameterString(param,"1")
output+= "\t" + appname + ".SetParameterString("+EncloseString(param)+",\"1\")" + linesep
app.EnableParameter(param)
output+= "\t" + appname + ".EnableParameter("+EncloseString(param)+")" + linesep
if paramtype == otbApplication.ParameterType_Int \
or paramtype == otbApplication.ParameterType_Radius \
or paramtype == otbApplication.ParameterType_RAM:
......
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