Skip to content

Commit

Permalink
* Add new GRASS 7.2 algorithms.
Browse files Browse the repository at this point in the history
* Fix ParameterRange GUI.
* Fix Multiple values Enum support.
  • Loading branch information
Médéric RIBREUX committed Nov 4, 2017
1 parent 6c81895 commit aa17df1
Show file tree
Hide file tree
Showing 21 changed files with 536 additions and 221 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/algs/grass7/Grass7Algorithm.py
Expand Up @@ -399,10 +399,10 @@ def processInputs(self, parameters, context):
layerName = '{}_{}'.format(paramName, idx)
# Add a raster layer
if layer.type() == QgsMapLayer.RasterLayer:
self.exportRasterLayer(layerName, layer)
self.loadRasterLayer(layerName, layer)
# Add a vector layer
elif layer.type() == QgsMapLayer.VectorLayer:
self.exportVectorLayer(layerName, layer)
self.loadVectorLayer(layerName, layer)

self.postInputs()

Expand Down Expand Up @@ -531,7 +531,7 @@ def processCommand(self, parameters, context, delOutputs=False):
self.parameterAsFileOutput(
parameters, outName, context))
# For folders destination
if isinstance(out, QgsProcessingParameterFolderDestination):
elif isinstance(out, QgsProcessingParameterFolderDestination):
# We need to add a unique temporary basename
uniqueBasename = outName + self.uniqueSuffix
command += ' {}={}'.format(outName, uniqueBasename)
Expand Down

0 comments on commit aa17df1

Please sign in to comment.