Skip to content

Commit a1f487d

Browse files
committedAug 5, 2017
Add alternate reference layer for points to path algorithm
1 parent c2559d8 commit a1f487d

File tree

3 files changed

+73
-1
lines changed

3 files changed

+73
-1
lines changed
 
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<GMLFeatureClassList>
2+
<GMLFeatureClass>
3+
<Name>points_to_path_grouped</Name>
4+
<ElementPath>points_to_path_grouped</ElementPath>
5+
<!--LINESTRING-->
6+
<GeometryType>2</GeometryType>
7+
<SRSName>EPSG:4326</SRSName>
8+
<DatasetSpecificInfo>
9+
<FeatureCount>3</FeatureCount>
10+
<ExtentXMin>0.00000</ExtentXMin>
11+
<ExtentXMax>8.00000</ExtentXMax>
12+
<ExtentYMin>-5.00000</ExtentYMin>
13+
<ExtentYMax>3.00000</ExtentYMax>
14+
</DatasetSpecificInfo>
15+
<PropertyDefn>
16+
<Name>id2</Name>
17+
<ElementPath>id2</ElementPath>
18+
<Type>Integer</Type>
19+
</PropertyDefn>
20+
<PropertyDefn>
21+
<Name>begin</Name>
22+
<ElementPath>begin</ElementPath>
23+
<Type>Integer</Type>
24+
</PropertyDefn>
25+
<PropertyDefn>
26+
<Name>end</Name>
27+
<ElementPath>end</ElementPath>
28+
<Type>Integer</Type>
29+
</PropertyDefn>
30+
</GMLFeatureClass>
31+
</GMLFeatureClassList>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<ogr:FeatureCollection
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation=""
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>-5</gml:Y></gml:coord>
10+
<gml:coord><gml:X>8</gml:X><gml:Y>3</gml:Y></gml:coord>
11+
</gml:Box>
12+
</gml:boundedBy>
13+
14+
<gml:featureMember>
15+
<ogr:points_to_path_grouped fid="points_to_path_grouped.0">
16+
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>2,2 0,-5 8,-1 7,-1 0,-1</gml:coordinates></gml:LineString></ogr:geometryProperty>
17+
<ogr:id2>0</ogr:id2>
18+
<ogr:begin>3</ogr:begin>
19+
<ogr:end>9</ogr:end>
20+
</ogr:points_to_path_grouped>
21+
</gml:featureMember>
22+
<gml:featureMember>
23+
<ogr:points_to_path_grouped fid="points_to_path_grouped.1">
24+
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>3,3 4,1</gml:coordinates></gml:LineString></ogr:geometryProperty>
25+
<ogr:id2>1</ogr:id2>
26+
<ogr:begin>2</ogr:begin>
27+
<ogr:end>5</ogr:end>
28+
</ogr:points_to_path_grouped>
29+
</gml:featureMember>
30+
<gml:featureMember>
31+
<ogr:points_to_path_grouped fid="points_to_path_grouped.2">
32+
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>1,1 5,2</gml:coordinates></gml:LineString></ogr:geometryProperty>
33+
<ogr:id2>2</ogr:id2>
34+
<ogr:begin>1</ogr:begin>
35+
<ogr:end>4</ogr:end>
36+
</ogr:points_to_path_grouped>
37+
</gml:featureMember>
38+
39+
</ogr:FeatureCollection>

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2260,7 +2260,9 @@ tests:
22602260
GROUP_FIELD: id2
22612261
results:
22622262
OUTPUT:
2263-
name: expected/points_to_path_grouped.gml
2263+
name:
2264+
- expected/points_to_path_grouped.gml
2265+
- expected/points_to_path_grouped2.gml
22642266
type: vector
22652267

22662268
# - algorithm: qgis:joinattributestable

0 commit comments

Comments
 (0)
Please sign in to comment.