File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
python/plugins/processing/algs/qgis Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,11 @@ def defineCharacteristics(self):
66
66
self .tr ('Operator' ), self .OPERATORS ))
67
67
self .addParameter (ParameterString (self .VALUE , self .tr ('Value' )))
68
68
69
- self .addOutput (OutputVector (self .OUTPUT , self .tr ('Output' )))
69
+ self .addOutput (OutputVector (self .OUTPUT , self .tr ('Output' ), True ))
70
70
71
71
def processAlgorithm (self , progress ):
72
- layer = dataobjects .getObjectFromUri (self .getParameterValue (self .INPUT ))
72
+ fileName = self .getParameterValue (self .INPUT )
73
+ layer = dataobjects .getObjectFromUri (fileName )
73
74
fieldName = self .getParameterValue (self .FIELD )
74
75
operator = self .OPERATORS [self .getParameterValue (self .OPERATOR )]
75
76
value = self .getParameterValue (self .VALUE )
@@ -119,4 +120,4 @@ def processAlgorithm(self, progress):
119
120
progress .setPercentage (int (count * total ))
120
121
121
122
layer .setSelectedFeatures (selected )
122
- self .setOutputValue (self .OUTPUT , self . getParameterValue ( self . INPUT ) )
123
+ self .setOutputValue (self .OUTPUT , fileName )
You can’t perform that action at this time.
0 commit comments