Skip to content
Snippets Groups Projects
Commit a2626eb7 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

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
Branches
Tags
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment