mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
16 lines
386 B
Python
16 lines
386 B
Python
##Select by expression=name
|
|
##Tests=group
|
|
##INPUT_LAYER=vector
|
|
##OUTPUT_LAYER=output vector
|
|
|
|
import processing
|
|
|
|
result = processing.run("qgis:selectbyexpression",
|
|
INPUT_LAYER,
|
|
'"id2" = 0 and "id" > 7',
|
|
"1")
|
|
|
|
processing.run("qgis:saveselectedfeatures",
|
|
result["RESULT"],
|
|
OUTPUT_LAYER)
|