Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing/otb]Add specific rule to load ComputeOGRLayersFeaturesSta…
…tistics
  • Loading branch information
amondot authored and volaya committed Nov 4, 2015
1 parent c548f8d commit 5e9647d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions python/plugins/processing/algs/otb/OTBSpecific_XMLLoading.py
Expand Up @@ -329,6 +329,23 @@ def adaptComputePolylineFeatureFromImage(commands_list):
return commands_list2


def adaptComputeOGRLayersFeaturesStatistics(commands_list):
"""
Remove parameter and user value instead of giving None.
Check geoid file, srtm folder and given elevation and manage arguments.
"""
commands_list2 = commands_list
adaptGeoidSrtm(commands_list2)
for item in commands_list:
if "None" in item:
index = commands_list2.index(item)
argumentToRemove = commands_list2[index - 1]
commands_list2.remove(item)
commands_list2.remove(argumentToRemove)
# commands_list2.append(item)
return commands_list2


def ckeckGeoidSrtmSettings():
folder = ProcessingConfig.getSetting(OTBUtils.OTB_SRTM_FOLDER)
if folder is None:
Expand Down

0 comments on commit 5e9647d

Please sign in to comment.