Skip to content

Commit aa96e78

Browse files
committedJun 21, 2017
Native extract by expression and attribute algs
1 parent 3116771 commit aa96e78

File tree

3 files changed

+442
-83
lines changed

3 files changed

+442
-83
lines changed
 

‎python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml

Lines changed: 83 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@ tests:
12581258
# name: expected/remove_null_polys.gml
12591259
# type: vector
12601260
#
1261-
- algorithm: qgis:extractbyexpression
1261+
- algorithm: native:extractbyexpression
12621262
name: Extract by Expression
12631263
params:
12641264
EXPRESSION: left( "Name",1)='A'
@@ -1484,88 +1484,88 @@ tests:
14841484
# geometry:
14851485
# precision: 7
14861486
#
1487-
# - algorithm: qgis:extractbyattribute
1488-
# name: Extract by attribute (is null)
1489-
# params:
1490-
# FIELD: intval
1491-
# INPUT:
1492-
# name: polys.gml
1493-
# type: vector
1494-
# OPERATOR: '8'
1495-
# results:
1496-
# OUTPUT:
1497-
# name: expected/extract_by_attribute_null.gml
1498-
# type: vector
1499-
#
1500-
# - algorithm: qgis:extractbyattribute
1501-
# name: Extract by attribute (is not null)
1502-
# params:
1503-
# FIELD: intval
1504-
# INPUT:
1505-
# name: polys.gml
1506-
# type: vector
1507-
# OPERATOR: '9'
1508-
# results:
1509-
# OUTPUT:
1510-
# name: expected/extract_by_attribute_not_null.gml
1511-
# type: vector
1512-
#
1513-
# - algorithm: qgis:extractbyattribute
1514-
# name: Extract by attribute (starts with)
1515-
# params:
1516-
# FIELD: name
1517-
# INPUT:
1518-
# name: polys.gml
1519-
# type: vector
1520-
# OPERATOR: '6'
1521-
# VALUE: A
1522-
# results:
1523-
# OUTPUT:
1524-
# name: expected/extract_by_attribute_startswith.gml
1525-
# type: vector
1526-
#
1527-
# - algorithm: qgis:extractbyattribute
1528-
# name: Extract by attribute (contains)
1529-
# params:
1530-
# FIELD: name
1531-
# INPUT:
1532-
# name: polys.gml
1533-
# type: vector
1534-
# OPERATOR: '7'
1535-
# VALUE: aaa
1536-
# results:
1537-
# OUTPUT:
1538-
# name: expected/extract_by_attribute_contains.gml
1539-
# type: vector
1540-
#
1541-
# - algorithm: qgis:extractbyattribute
1542-
# name: Extract by attribute (does not contain)
1543-
# params:
1544-
# FIELD: name
1545-
# INPUT:
1546-
# name: polys.gml
1547-
# type: vector
1548-
# OPERATOR: '10'
1549-
# VALUE: a
1550-
# results:
1551-
# OUTPUT:
1552-
# name: expected/extract_by_attribute_does_not_contain.gml
1553-
# type: vector
1554-
#
1555-
# - algorithm: qgis:extractbyattribute
1556-
# name: Extract by attribute (greater)
1557-
# params:
1558-
# FIELD: floatval
1559-
# INPUT:
1560-
# name: polys.gml
1561-
# type: vector
1562-
# OPERATOR: '2'
1563-
# VALUE: '1'
1564-
# results:
1565-
# OUTPUT:
1566-
# name: expected/extract_by_attribute_greater.gml
1567-
# type: vector
1568-
#
1487+
- algorithm: native:extractbyattribute
1488+
name: Extract by attribute (is null)
1489+
params:
1490+
FIELD: intval
1491+
INPUT:
1492+
name: polys.gml
1493+
type: vector
1494+
OPERATOR: '8'
1495+
results:
1496+
OUTPUT:
1497+
name: expected/extract_by_attribute_null.gml
1498+
type: vector
1499+
1500+
- algorithm: native:extractbyattribute
1501+
name: Extract by attribute (is not null)
1502+
params:
1503+
FIELD: intval
1504+
INPUT:
1505+
name: polys.gml
1506+
type: vector
1507+
OPERATOR: '9'
1508+
results:
1509+
OUTPUT:
1510+
name: expected/extract_by_attribute_not_null.gml
1511+
type: vector
1512+
1513+
- algorithm: native:extractbyattribute
1514+
name: Extract by attribute (starts with)
1515+
params:
1516+
FIELD: name
1517+
INPUT:
1518+
name: polys.gml
1519+
type: vector
1520+
OPERATOR: '6'
1521+
VALUE: A
1522+
results:
1523+
OUTPUT:
1524+
name: expected/extract_by_attribute_startswith.gml
1525+
type: vector
1526+
1527+
- algorithm: native:extractbyattribute
1528+
name: Extract by attribute (contains)
1529+
params:
1530+
FIELD: name
1531+
INPUT:
1532+
name: polys.gml
1533+
type: vector
1534+
OPERATOR: '7'
1535+
VALUE: aaa
1536+
results:
1537+
OUTPUT:
1538+
name: expected/extract_by_attribute_contains.gml
1539+
type: vector
1540+
1541+
- algorithm: native:extractbyattribute
1542+
name: Extract by attribute (does not contain)
1543+
params:
1544+
FIELD: name
1545+
INPUT:
1546+
name: polys.gml
1547+
type: vector
1548+
OPERATOR: '10'
1549+
VALUE: a
1550+
results:
1551+
OUTPUT:
1552+
name: expected/extract_by_attribute_does_not_contain.gml
1553+
type: vector
1554+
1555+
- algorithm: native:extractbyattribute
1556+
name: Extract by attribute (greater)
1557+
params:
1558+
FIELD: floatval
1559+
INPUT:
1560+
name: polys.gml
1561+
type: vector
1562+
OPERATOR: '2'
1563+
VALUE: '1'
1564+
results:
1565+
OUTPUT:
1566+
name: expected/extract_by_attribute_greater.gml
1567+
type: vector
1568+
15691569
# - algorithm: qgis:createattributeindex
15701570
# name: Create Attribute Index (only tests for python errors, does not check result)
15711571
# params:

0 commit comments

Comments
 (0)