Skip to content
Permalink
Browse files

Fix v.external default configuration and handling

  • Loading branch information
Médéric RIBREUX
Médéric RIBREUX committed Jan 7, 2018
1 parent 5a3a0da commit 0f1cb2508550a24ef7237d82355628d6739830da
@@ -430,7 +430,7 @@ def processInputs(self, parameters, context):
paramName, parameters, context)
else:
self.loadVectorLayerFromParameter(
paramName, parameters, context)
paramName, parameters, context, None)
# For multiple inputs, process each layer
elif isinstance(param, QgsProcessingParameterMultipleLayers):
layers = self.parameterAsLayerList(parameters, paramName, context)
@@ -441,7 +441,7 @@ def processInputs(self, parameters, context):
self.loadRasterLayer(layerName, layer)
# Add a vector layer
elif layer.type() == QgsMapLayer.VectorLayer:
self.loadVectorLayer(layerName, layer)
self.loadVectorLayer(layerName, layer, None)

self.postInputs()

@@ -70,11 +70,13 @@ def load(self):
self.tr('Location of GRASS docs'),
Grass7Utils.grassHelpPath()))
# Add a setting for using v.external instead of v.in.ogr
# But set it to False by default because some algorithms
# can't be used with external data (need a solid v.in.ogr).
ProcessingConfig.addSetting(Setting(
self.name(),
Grass7Utils.GRASS_USE_VEXTERNAL,
self.tr('For vector layers, use v.external (faster) instead of v.in.ogr'),
True))
False))
ProcessingConfig.readSettings()
self.refreshAlgorithms()
return True

0 comments on commit 0f1cb25

Please sign in to comment.
You can’t perform that action at this time.