16 lines
386 B
Python
Raw Normal View History

##Select by expression=name
##Tests=group
##INPUT_LAYER=vector
##OUTPUT_LAYER=output vector
import processing
result = processing.run("qgis:selectbyexpression",
2017-03-27 13:45:54 -05:00
INPUT_LAYER,
'"id2" = 0 and "id" > 7',
"1")
processing.run("qgis:saveselectedfeatures",
2017-03-27 13:45:54 -05:00
result["RESULT"],
OUTPUT_LAYER)