1
0
mirror of https://github.com/qgis/QGIS.git synced 2025-03-18 00:02:24 -04:00

17 lines
392 B
Python
Raw Normal View History

##Select by attribute=name
##Tests=group
##INPUT_LAYER=vector
##OUTPUT_LAYER=output vector
import processing
result = processing.run("qgis:selectbyattribute",
INPUT_LAYER,
"id2",
0,
"2")
processing.run("qgis:saveselectedfeatures",
result["OUTPUT"],
OUTPUT_LAYER)