Skip to content

Commit 8adc871

Browse files
committedFeb 4, 2016
[processing] Add expected test datasets
1 parent ff04fd3 commit 8adc871

21 files changed

+400
-167
lines changed
 
Lines changed: 36 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,109 +1,65 @@
11
# See ../README.md for a description of the file format
22

33
tests:
4-
- name: centroid # Human readable identifier
4+
- name: Centroid # Human readable identifier
55
algorithm: qgis:polygoncentroids # Algorithm name
66
params: # A list of parameters (only 1 here)
77
- type: vector # Param is a vector layer
8-
location: qgs # file is in the qgis tests/testdata directory
9-
name: polys.shp # file name
8+
name: polys.geojson # file name
109
results: # A map of results (only one here)
1110
OUTPUT_LAYER:
1211
type: vector # Expected result is a vector layer
13-
location: proc # The expected control layer is located in the processing testdata directory
14-
name: expected/polys_centroid.geojson # The relative filepath from the processing testdata directory
12+
name: expected/polys_centroid.gml # The relative filepath from the processing testdata directory
13+
compare:
14+
geometry:
15+
precision: 7
1516

16-
- name: deleteholes
17+
- name: Delete Holes
1718
algorithm: qgis:deleteholes
1819
params:
19-
- type: vector
20-
location: qgs
21-
name: polys.shp
20+
- name: polys.geojson
21+
type: vector
2222
results:
2323
OUTPUT:
24+
name: expected/polys_deleteholes.gml
2425
type: vector
25-
location: proc
26-
name: expected/polys_deleteholes.geojson
2726

28-
- name: densify
29-
algorithm: qgis:densifygeometries
27+
# These datasets should produce a geometry collection and not a polygon only
28+
# dataset. If the algorithm is fixed, a new test should be introduced to
29+
# check this behavior.
30+
# This test should stay in place because for shapefiles there should always
31+
# be a polygon result created since it does not support geometry collections.
32+
- name: Intersection (Collection Fallback)
33+
algorithm: qgis:intersection
3034
params:
31-
- type: vector
32-
location: qgs
33-
name: polys.shp
34-
- 2 # Interval
35-
results:
36-
OUTPUT:
35+
INPUT:
36+
name: multipolys.geojson
37+
type: vector
38+
INPUT2:
39+
name: polys.geojson
3740
type: vector
38-
location: proc
39-
name: expected/polys_densify.geojson
40-
41-
- name: polygonstolines
42-
algorithm: qgis:polygonstolines
43-
params:
44-
- type: vector
45-
location: qgs
46-
name: polys.shp
4741
results:
4842
OUTPUT:
43+
name: expected/intersection_collection_fallback.shp
4944
type: vector
50-
location: proc
51-
name: expected/polys_to_lines.geojson
5245

53-
- name: reverselinedirection
54-
algorithm: qgis:reverselinedirection
46+
- name: Densify geometries
47+
algorithm: qgis:densifygeometries
5548
params:
56-
- type: vector
57-
location: qgs
58-
name: lines.shp
49+
- name: expected/polys_densify.gml
50+
type: vector
51+
- 4
5952
results:
60-
OUTPUT_LAYER:
53+
OUTPUT:
54+
name: expected/polys_densify.gml
6155
type: vector
62-
location: proc
63-
name: expected/lines_reverse.geojson
64-
65-
# MK: 7.1.2016, Reenable once epsilon has been implemented
66-
# - name: reproject
67-
# algorithm: qgis:reprojectlayer
68-
# params:
69-
# - type: vector
70-
# location: qgs
71-
# name: france_parts.shp
72-
# - 'EPSG:2192' # Quoted to make sure the colon isn't mistaken for a key/value pair
73-
# results:
74-
# OUTPUT:
75-
# type: vector
76-
# location: proc
77-
# name: expected/reprojected_france_parts.geojson
78-
# epsilon: 0.000001
7956

80-
- name: frequencyanalysis
81-
algorithm: qgis:frequencyanalysis
57+
- name: Polygons to Lines
58+
algorithm: qgis:polygonstolines
8259
params:
83-
- type: vector
84-
location: qgs
85-
name: polys.shp
86-
- Name # Field to calculate frequency on
60+
- name: multipolys.geojson
61+
type: vector
8762
results:
88-
Frequency:
63+
OUTPUT:
64+
name: expected/polys_to_lines.gml
8965
type: vector
90-
location: proc
91-
name: expected/frequency.csv
92-
93-
# MK: 7.1.2016, Check why this fails on travis (string vs. integer field type)
94-
# - name: sumlinelengths
95-
# algorithm: qgis:sumlinelengths
96-
# params:
97-
# - type: vector
98-
# location: qgs
99-
# name: lines.shp
100-
# - type: vector
101-
# location: qgs
102-
# name: rectangles.shp
103-
# - length
104-
# - count
105-
# results:
106-
# OUTPUT:
107-
# type: vector
108-
# location: proc
109-
# name: expected/sumlinelengths.geojson
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]

‎python/plugins/processing/tests/testdata/expected/lines_reverse.geojson

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<ogr:FeatureCollection
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://ogr.maptools.org/ polys_centroid.xsd"
5+
xmlns:ogr="http://ogr.maptools.org/"
6+
xmlns:gml="http://www.opengis.net/gml">
7+
<gml:boundedBy>
8+
<gml:Box>
9+
<gml:coord><gml:X>0.6538461538461539</gml:X><gml:Y>-1</gml:Y></gml:coord>
10+
<gml:coord><gml:X>8</gml:X><gml:Y>5.5</gml:Y></gml:coord>
11+
</gml:Box>
12+
</gml:boundedBy>
13+
14+
<gml:featureMember>
15+
<ogr:polys_centroid fid="polys_centroid.0">
16+
<ogr:geometryProperty><gml:Point><gml:coordinates>0.653846153846154,1.11538461538462</gml:coordinates></gml:Point></ogr:geometryProperty>
17+
<ogr:name>aaaaa</ogr:name>
18+
<ogr:intval>33</ogr:intval>
19+
<ogr:floatval>44.123456</ogr:floatval>
20+
</ogr:polys_centroid>
21+
</gml:featureMember>
22+
<gml:featureMember>
23+
<ogr:polys_centroid fid="polys_centroid.1">
24+
<ogr:geometryProperty><gml:Point><gml:coordinates>5.0,4.33333333333333</gml:coordinates></gml:Point></ogr:geometryProperty>
25+
<ogr:name>Aaaaa</ogr:name>
26+
<ogr:intval>-33</ogr:intval>
27+
<ogr:floatval>0</ogr:floatval>
28+
</ogr:polys_centroid>
29+
</gml:featureMember>
30+
<gml:featureMember>
31+
<ogr:polys_centroid fid="polys_centroid.2">
32+
<ogr:geometryProperty><gml:Point><gml:coordinates>2.5,5.5</gml:coordinates></gml:Point></ogr:geometryProperty>
33+
<ogr:name>bbaaa</ogr:name>
34+
<ogr:floatval>0.123</ogr:floatval>
35+
</ogr:polys_centroid>
36+
</gml:featureMember>
37+
<gml:featureMember>
38+
<ogr:polys_centroid fid="polys_centroid.3">
39+
<ogr:geometryProperty><gml:Point><gml:coordinates>8,-1</gml:coordinates></gml:Point></ogr:geometryProperty>
40+
<ogr:name>ASDF</ogr:name>
41+
<ogr:intval>0</ogr:intval>
42+
</ogr:polys_centroid>
43+
</gml:featureMember>
44+
<gml:featureMember>
45+
<ogr:polys_centroid fid="polys_centroid.4">
46+
<ogr:intval>120</ogr:intval>
47+
<ogr:floatval>-100291.43213</ogr:floatval>
48+
</ogr:polys_centroid>
49+
</gml:featureMember>
50+
</ogr:FeatureCollection>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xs:schema targetNamespace="http://ogr.maptools.org/" xmlns:ogr="http://ogr.maptools.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified" version="1.0">
3+
<xs:import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/>
4+
<xs:element name="FeatureCollection" type="ogr:FeatureCollectionType" substitutionGroup="gml:_FeatureCollection"/>
5+
<xs:complexType name="FeatureCollectionType">
6+
<xs:complexContent>
7+
<xs:extension base="gml:AbstractFeatureCollectionType">
8+
<xs:attribute name="lockId" type="xs:string" use="optional"/>
9+
<xs:attribute name="scope" type="xs:string" use="optional"/>
10+
</xs:extension>
11+
</xs:complexContent>
12+
</xs:complexType>
13+
<xs:element name="polys_centroid" type="ogr:polys_centroid_Type" substitutionGroup="gml:_Feature"/>
14+
<xs:complexType name="polys_centroid_Type">
15+
<xs:complexContent>
16+
<xs:extension base="gml:AbstractFeatureType">
17+
<xs:sequence>
18+
<xs:element name="geometryProperty" type="gml:PointPropertyType" nillable="true" minOccurs="0" maxOccurs="1"/>
19+
<xs:element name="name" nillable="true" minOccurs="0" maxOccurs="1">
20+
<xs:simpleType>
21+
<xs:restriction base="xs:string">
22+
<xs:maxLength value="255"/>
23+
</xs:restriction>
24+
</xs:simpleType>
25+
</xs:element>
26+
<xs:element name="intval" nillable="true" minOccurs="0" maxOccurs="1">
27+
<xs:simpleType>
28+
<xs:restriction base="xs:string">
29+
<xs:maxLength value="255"/>
30+
</xs:restriction>
31+
</xs:simpleType>
32+
</xs:element>
33+
<xs:element name="floatval" nillable="true" minOccurs="0" maxOccurs="1">
34+
<xs:simpleType>
35+
<xs:restriction base="xs:decimal">
36+
</xs:restriction>
37+
</xs:simpleType>
38+
</xs:element>
39+
</xs:sequence>
40+
</xs:extension>
41+
</xs:complexContent>
42+
</xs:complexType>
43+
</xs:schema>

‎python/plugins/processing/tests/testdata/expected/polys_deleteholes.geojson

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<ogr:FeatureCollection
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://ogr.maptools.org/ polys_deleteholes.xsd"
5+
xmlns:ogr="http://ogr.maptools.org/"
6+
xmlns:gml="http://www.opengis.net/gml">
7+
<gml:boundedBy>
8+
<gml:Box>
9+
<gml:coord><gml:X>-1</gml:X><gml:Y>-3</gml:Y></gml:coord>
10+
<gml:coord><gml:X>10</gml:X><gml:Y>6</gml:Y></gml:coord>
11+
</gml:Box>
12+
</gml:boundedBy>
13+
14+
<gml:featureMember>
15+
<ogr:polys_deleteholes fid="polys_deleteholes.0">
16+
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1,-1 2,-1 2,2 3,2 3,3 -1,3 -1,-1</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
17+
<ogr:name>aaaaa</ogr:name>
18+
<ogr:intval>33</ogr:intval>
19+
<ogr:floatval>44.123456</ogr:floatval>
20+
</ogr:polys_deleteholes>
21+
</gml:featureMember>
22+
<gml:featureMember>
23+
<ogr:polys_deleteholes fid="polys_deleteholes.1">
24+
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5,5 4,4 6,4 5,5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
25+
<ogr:name>Aaaaa</ogr:name>
26+
<ogr:intval>-33</ogr:intval>
27+
<ogr:floatval>0</ogr:floatval>
28+
</ogr:polys_deleteholes>
29+
</gml:featureMember>
30+
<gml:featureMember>
31+
<ogr:polys_deleteholes fid="polys_deleteholes.2">
32+
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>2,5 2,6 3,6 3,5 2,5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
33+
<ogr:name>bbaaa</ogr:name>
34+
<ogr:floatval>0.123</ogr:floatval>
35+
</ogr:polys_deleteholes>
36+
</gml:featureMember>
37+
<gml:featureMember>
38+
<ogr:polys_deleteholes fid="polys_deleteholes.3">
39+
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>6,1 10,1 10,-3 6,-3 6,1</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
40+
<ogr:name>ASDF</ogr:name>
41+
<ogr:intval>0</ogr:intval>
42+
</ogr:polys_deleteholes>
43+
</gml:featureMember>
44+
<gml:featureMember>
45+
<ogr:polys_deleteholes fid="polys_deleteholes.4">
46+
<ogr:intval>120</ogr:intval>
47+
<ogr:floatval>-100291.43213</ogr:floatval>
48+
</ogr:polys_deleteholes>
49+
</gml:featureMember>
50+
</ogr:FeatureCollection>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xs:schema targetNamespace="http://ogr.maptools.org/" xmlns:ogr="http://ogr.maptools.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified" version="1.0">
3+
<xs:import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/>
4+
<xs:element name="FeatureCollection" type="ogr:FeatureCollectionType" substitutionGroup="gml:_FeatureCollection"/>
5+
<xs:complexType name="FeatureCollectionType">
6+
<xs:complexContent>
7+
<xs:extension base="gml:AbstractFeatureCollectionType">
8+
<xs:attribute name="lockId" type="xs:string" use="optional"/>
9+
<xs:attribute name="scope" type="xs:string" use="optional"/>
10+
</xs:extension>
11+
</xs:complexContent>
12+
</xs:complexType>
13+
<xs:element name="polys_deleteholes" type="ogr:polys_deleteholes_Type" substitutionGroup="gml:_Feature"/>
14+
<xs:complexType name="polys_deleteholes_Type">
15+
<xs:complexContent>
16+
<xs:extension base="gml:AbstractFeatureType">
17+
<xs:sequence>
18+
<xs:element name="geometryProperty" type="gml:PolygonPropertyType" nillable="true" minOccurs="0" maxOccurs="1"/>
19+
<xs:element name="name" nillable="true" minOccurs="0" maxOccurs="1">
20+
<xs:simpleType>
21+
<xs:restriction base="xs:string">
22+
<xs:maxLength value="255"/>
23+
</xs:restriction>
24+
</xs:simpleType>
25+
</xs:element>
26+
<xs:element name="intval" nillable="true" minOccurs="0" maxOccurs="1">
27+
<xs:simpleType>
28+
<xs:restriction base="xs:string">
29+
<xs:maxLength value="255"/>
30+
</xs:restriction>
31+
</xs:simpleType>
32+
</xs:element>
33+
<xs:element name="floatval" nillable="true" minOccurs="0" maxOccurs="1">
34+
<xs:simpleType>
35+
<xs:restriction base="xs:decimal">
36+
</xs:restriction>
37+
</xs:simpleType>
38+
</xs:element>
39+
</xs:sequence>
40+
</xs:extension>
41+
</xs:complexContent>
42+
</xs:complexType>
43+
</xs:schema>

‎python/plugins/processing/tests/testdata/expected/polys_densify.geojson

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<ogr:FeatureCollection
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://ogr.maptools.org/ polys_densify.xsd"
5+
xmlns:ogr="http://ogr.maptools.org/"
6+
xmlns:gml="http://www.opengis.net/gml">
7+
<gml:boundedBy>
8+
<gml:Box>
9+
<gml:coord><gml:X>-1</gml:X><gml:Y>-3</gml:Y></gml:coord>
10+
<gml:coord><gml:X>10</gml:X><gml:Y>6</gml:Y></gml:coord>
11+
</gml:Box>
12+
</gml:boundedBy>
13+
14+
<gml:featureMember>
15+
<ogr:polys_densify fid="polys_densify.0">
16+
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1,-1 -0.4,-1.0 0.2,-1.0 0.8,-1.0 1.4,-1.0 2,-1 2,-1 2,-1 2,-1 2,-1 2,-1 2.0,-0.4 2.0,0.2 2.0,0.8 2.0,1.4 2,2 2,2 2,2 2,2 2,2 2,2 2.2,2.0 2.4,2.0 2.6,2.0 2.8,2.0 3,2 3,2 3,2 3,2 3,2 3,2 3.0,2.2 3.0,2.4 3.0,2.6 3.0,2.8 3,3 3,3 3,3 3,3 3,3 3,3 2.2,3.0 1.4,3.0 0.6,3.0 -0.2,3.0 -1,3 -1,3 -1,3 -1,3 -1,3 -1,3 -1.0,2.2 -1.0,1.4 -1.0,0.6 -1.0,-0.2 -1,-1 -1,-1 -1,-1 -1,-1 -1,-1 -1,-1</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
17+
<ogr:name>aaaaa</ogr:name>
18+
<ogr:intval>33</ogr:intval>
19+
<ogr:floatval>44.123456</ogr:floatval>
20+
</ogr:polys_densify>
21+
</gml:featureMember>
22+
<gml:featureMember>
23+
<ogr:polys_densify fid="polys_densify.1">
24+
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5,5 4.8,4.8 4.6,4.6 4.4,4.4 4.2,4.2 4,4 4,4 4,4 4,4 4,4 4,4 4.4,4.0 4.8,4.0 5.2,4.0 5.6,4.0 6,4 6,4 6,4 6,4 6,4 6,4 5.8,4.2 5.6,4.4 5.4,4.6 5.2,4.8 5,5 5,5 5,5 5,5 5,5 5,5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
25+
<ogr:name>Aaaaa</ogr:name>
26+
<ogr:intval>-33</ogr:intval>
27+
<ogr:floatval>0</ogr:floatval>
28+
</ogr:polys_densify>
29+
</gml:featureMember>
30+
<gml:featureMember>
31+
<ogr:polys_densify fid="polys_densify.2">
32+
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>2,5 2.0,5.2 2.0,5.4 2.0,5.6 2.0,5.8 2,6 2,6 2,6 2,6 2,6 2,6 2.2,6.0 2.4,6.0 2.6,6.0 2.8,6.0 3,6 3,6 3,6 3,6 3,6 3,6 3.0,5.8 3.0,5.6 3.0,5.4 3.0,5.2 3,5 3,5 3,5 3,5 3,5 3,5 2.8,5.0 2.6,5.0 2.4,5.0 2.2,5.0 2,5 2,5 2,5 2,5 2,5 2,5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
33+
<ogr:name>bbaaa</ogr:name>
34+
<ogr:floatval>0.123</ogr:floatval>
35+
</ogr:polys_densify>
36+
</gml:featureMember>
37+
<gml:featureMember>
38+
<ogr:polys_densify fid="polys_densify.3">
39+
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>6,1 6.8,1.0 7.6,1.0 8.4,1.0 9.2,1.0 10,1 10,1 10,1 10,1 10,1 10,1 10.0,0.2 10.0,-0.6 10.0,-1.4 10.0,-2.2 10,-3 10,-3 10,-3 10,-3 10,-3 10,-3 9.2,-3.0 8.4,-3.0 7.6,-3.0 6.8,-3.0 6,-3 6,-3 6,-3 6,-3 6,-3 6,-3 6.0,-2.2 6.0,-1.4 6.0,-0.6 6.0,0.2 6,1 6,1 6,1 6,1 6,1 6,1</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs><gml:innerBoundaryIs><gml:LinearRing><gml:coordinates>7,0 7.4,0.0 7.8,0.0 8.2,0.0 8.6,0.0 9,0 9,0 9,0 9,0 9,0 9,0 9.0,-0.4 9.0,-0.8 9.0,-1.2 9.0,-1.6 9,-2 9,-2 9,-2 9,-2 9,-2 9,-2 8.6,-2.0 8.2,-2.0 7.8,-2.0 7.4,-2.0 7,-2 7,-2 7,-2 7,-2 7,-2 7,-2 7.0,-1.6 7.0,-1.2 7.0,-0.8 7.0,-0.4 7,0 7,0 7,0 7,0 7,0 7,0</gml:coordinates></gml:LinearRing></gml:innerBoundaryIs></gml:Polygon></ogr:geometryProperty>
40+
<ogr:name>ASDF</ogr:name>
41+
<ogr:intval>0</ogr:intval>
42+
</ogr:polys_densify>
43+
</gml:featureMember>
44+
<gml:featureMember>
45+
<ogr:polys_densify fid="polys_densify.4">
46+
<ogr:intval>120</ogr:intval>
47+
<ogr:floatval>-100291.43213</ogr:floatval>
48+
</ogr:polys_densify>
49+
</gml:featureMember>
50+
</ogr:FeatureCollection>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xs:schema targetNamespace="http://ogr.maptools.org/" xmlns:ogr="http://ogr.maptools.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified" version="1.0">
3+
<xs:import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/>
4+
<xs:element name="FeatureCollection" type="ogr:FeatureCollectionType" substitutionGroup="gml:_FeatureCollection"/>
5+
<xs:complexType name="FeatureCollectionType">
6+
<xs:complexContent>
7+
<xs:extension base="gml:AbstractFeatureCollectionType">
8+
<xs:attribute name="lockId" type="xs:string" use="optional"/>
9+
<xs:attribute name="scope" type="xs:string" use="optional"/>
10+
</xs:extension>
11+
</xs:complexContent>
12+
</xs:complexType>
13+
<xs:element name="polys_densify" type="ogr:polys_densify_Type" substitutionGroup="gml:_Feature"/>
14+
<xs:complexType name="polys_densify_Type">
15+
<xs:complexContent>
16+
<xs:extension base="gml:AbstractFeatureType">
17+
<xs:sequence>
18+
<xs:element name="geometryProperty" type="gml:PolygonPropertyType" nillable="true" minOccurs="0" maxOccurs="1"/>
19+
<xs:element name="name" nillable="true" minOccurs="0" maxOccurs="1">
20+
<xs:simpleType>
21+
<xs:restriction base="xs:string">
22+
<xs:maxLength value="255"/>
23+
</xs:restriction>
24+
</xs:simpleType>
25+
</xs:element>
26+
<xs:element name="intval" nillable="true" minOccurs="0" maxOccurs="1">
27+
<xs:simpleType>
28+
<xs:restriction base="xs:string">
29+
<xs:maxLength value="255"/>
30+
</xs:restriction>
31+
</xs:simpleType>
32+
</xs:element>
33+
<xs:element name="floatval" nillable="true" minOccurs="0" maxOccurs="1">
34+
<xs:simpleType>
35+
<xs:restriction base="xs:decimal">
36+
</xs:restriction>
37+
</xs:simpleType>
38+
</xs:element>
39+
</xs:sequence>
40+
</xs:extension>
41+
</xs:complexContent>
42+
</xs:complexType>
43+
</xs:schema>

‎python/plugins/processing/tests/testdata/expected/polys_to_lines.geojson

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<ogr:FeatureCollection
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://ogr.maptools.org/ polys_to_lines.xsd"
5+
xmlns:ogr="http://ogr.maptools.org/"
6+
xmlns:gml="http://www.opengis.net/gml">
7+
<gml:boundedBy>
8+
<gml:Box>
9+
<gml:coord><gml:X>0</gml:X><gml:Y>-1</gml:Y></gml:coord>
10+
<gml:coord><gml:X>9</gml:X><gml:Y>6</gml:Y></gml:coord>
11+
</gml:Box>
12+
</gml:boundedBy>
13+
14+
<gml:featureMember>
15+
<ogr:polys_to_lines fid="polys_to_lines.0">
16+
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>2,1 2,2 3,2 3,3 4,3 4,1 2,1</gml:coordinates></gml:LineString></ogr:geometryProperty>
17+
<ogr:Bname>Test</ogr:Bname>
18+
<ogr:Bintval>1</ogr:Bintval>
19+
<ogr:Bfloatval>0.123</ogr:Bfloatval>
20+
</ogr:polys_to_lines>
21+
</gml:featureMember>
22+
<gml:featureMember>
23+
<ogr:polys_to_lines fid="polys_to_lines.1">
24+
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>7,-1 8,-1 8,3 7,3 7,-1</gml:coordinates></gml:LineString></ogr:geometryProperty>
25+
</ogr:polys_to_lines>
26+
</gml:featureMember>
27+
<gml:featureMember>
28+
<ogr:polys_to_lines fid="polys_to_lines.2">
29+
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>7,6 7,5 7,4 8,4 9,5 9,6 7,6</gml:coordinates></gml:LineString></ogr:geometryProperty>
30+
</ogr:polys_to_lines>
31+
</gml:featureMember>
32+
<gml:featureMember>
33+
<ogr:polys_to_lines fid="polys_to_lines.3">
34+
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>0,0 0,1 1,1 1,0 0,0</gml:coordinates></gml:LineString></ogr:geometryProperty>
35+
<ogr:Bname>Test</ogr:Bname>
36+
<ogr:Bintval>2</ogr:Bintval>
37+
<ogr:Bfloatval>-0.123</ogr:Bfloatval>
38+
</ogr:polys_to_lines>
39+
</gml:featureMember>
40+
</ogr:FeatureCollection>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xs:schema targetNamespace="http://ogr.maptools.org/" xmlns:ogr="http://ogr.maptools.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified" version="1.0">
3+
<xs:import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/>
4+
<xs:element name="FeatureCollection" type="ogr:FeatureCollectionType" substitutionGroup="gml:_FeatureCollection"/>
5+
<xs:complexType name="FeatureCollectionType">
6+
<xs:complexContent>
7+
<xs:extension base="gml:AbstractFeatureCollectionType">
8+
<xs:attribute name="lockId" type="xs:string" use="optional"/>
9+
<xs:attribute name="scope" type="xs:string" use="optional"/>
10+
</xs:extension>
11+
</xs:complexContent>
12+
</xs:complexType>
13+
<xs:element name="polys_to_lines" type="ogr:polys_to_lines_Type" substitutionGroup="gml:_Feature"/>
14+
<xs:complexType name="polys_to_lines_Type">
15+
<xs:complexContent>
16+
<xs:extension base="gml:AbstractFeatureType">
17+
<xs:sequence>
18+
<xs:element name="geometryProperty" type="gml:LineStringPropertyType" nillable="true" minOccurs="0" maxOccurs="1"/>
19+
<xs:element name="Bname" nillable="true" minOccurs="0" maxOccurs="1">
20+
<xs:simpleType>
21+
<xs:restriction base="xs:string">
22+
<xs:maxLength value="255"/>
23+
</xs:restriction>
24+
</xs:simpleType>
25+
</xs:element>
26+
<xs:element name="Bintval" nillable="true" minOccurs="0" maxOccurs="1">
27+
<xs:simpleType>
28+
<xs:restriction base="xs:string">
29+
<xs:maxLength value="255"/>
30+
</xs:restriction>
31+
</xs:simpleType>
32+
</xs:element>
33+
<xs:element name="Bfloatval" nillable="true" minOccurs="0" maxOccurs="1">
34+
<xs:simpleType>
35+
<xs:restriction base="xs:decimal">
36+
</xs:restriction>
37+
</xs:simpleType>
38+
</xs:element>
39+
</xs:sequence>
40+
</xs:extension>
41+
</xs:complexContent>
42+
</xs:complexType>
43+
</xs:schema>

‎python/plugins/processing/tests/testdata/expected/reprojected_france_parts.geojson

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎python/plugins/processing/tests/testdata/expected/sumlinelengths.geojson

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.