mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Add alternate reference layer for points to path algorithm
This commit is contained in:
parent
c2559d8273
commit
a1f487d679
31
python/plugins/processing/tests/testdata/expected/points_to_path_grouped2.gfs
vendored
Normal file
31
python/plugins/processing/tests/testdata/expected/points_to_path_grouped2.gfs
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
<GMLFeatureClassList>
|
||||
<GMLFeatureClass>
|
||||
<Name>points_to_path_grouped</Name>
|
||||
<ElementPath>points_to_path_grouped</ElementPath>
|
||||
<!--LINESTRING-->
|
||||
<GeometryType>2</GeometryType>
|
||||
<SRSName>EPSG:4326</SRSName>
|
||||
<DatasetSpecificInfo>
|
||||
<FeatureCount>3</FeatureCount>
|
||||
<ExtentXMin>0.00000</ExtentXMin>
|
||||
<ExtentXMax>8.00000</ExtentXMax>
|
||||
<ExtentYMin>-5.00000</ExtentYMin>
|
||||
<ExtentYMax>3.00000</ExtentYMax>
|
||||
</DatasetSpecificInfo>
|
||||
<PropertyDefn>
|
||||
<Name>id2</Name>
|
||||
<ElementPath>id2</ElementPath>
|
||||
<Type>Integer</Type>
|
||||
</PropertyDefn>
|
||||
<PropertyDefn>
|
||||
<Name>begin</Name>
|
||||
<ElementPath>begin</ElementPath>
|
||||
<Type>Integer</Type>
|
||||
</PropertyDefn>
|
||||
<PropertyDefn>
|
||||
<Name>end</Name>
|
||||
<ElementPath>end</ElementPath>
|
||||
<Type>Integer</Type>
|
||||
</PropertyDefn>
|
||||
</GMLFeatureClass>
|
||||
</GMLFeatureClassList>
|
39
python/plugins/processing/tests/testdata/expected/points_to_path_grouped2.gml
vendored
Normal file
39
python/plugins/processing/tests/testdata/expected/points_to_path_grouped2.gml
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ogr:FeatureCollection
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation=""
|
||||
xmlns:ogr="http://ogr.maptools.org/"
|
||||
xmlns:gml="http://www.opengis.net/gml">
|
||||
<gml:boundedBy>
|
||||
<gml:Box>
|
||||
<gml:coord><gml:X>0</gml:X><gml:Y>-5</gml:Y></gml:coord>
|
||||
<gml:coord><gml:X>8</gml:X><gml:Y>3</gml:Y></gml:coord>
|
||||
</gml:Box>
|
||||
</gml:boundedBy>
|
||||
|
||||
<gml:featureMember>
|
||||
<ogr:points_to_path_grouped fid="points_to_path_grouped.0">
|
||||
<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>
|
||||
<ogr:id2>0</ogr:id2>
|
||||
<ogr:begin>3</ogr:begin>
|
||||
<ogr:end>9</ogr:end>
|
||||
</ogr:points_to_path_grouped>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:points_to_path_grouped fid="points_to_path_grouped.1">
|
||||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>3,3 4,1</gml:coordinates></gml:LineString></ogr:geometryProperty>
|
||||
<ogr:id2>1</ogr:id2>
|
||||
<ogr:begin>2</ogr:begin>
|
||||
<ogr:end>5</ogr:end>
|
||||
</ogr:points_to_path_grouped>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:points_to_path_grouped fid="points_to_path_grouped.2">
|
||||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>1,1 5,2</gml:coordinates></gml:LineString></ogr:geometryProperty>
|
||||
<ogr:id2>2</ogr:id2>
|
||||
<ogr:begin>1</ogr:begin>
|
||||
<ogr:end>4</ogr:end>
|
||||
</ogr:points_to_path_grouped>
|
||||
</gml:featureMember>
|
||||
|
||||
</ogr:FeatureCollection>
|
@ -2260,7 +2260,9 @@ tests:
|
||||
GROUP_FIELD: id2
|
||||
results:
|
||||
OUTPUT:
|
||||
name: expected/points_to_path_grouped.gml
|
||||
name:
|
||||
- expected/points_to_path_grouped.gml
|
||||
- expected/points_to_path_grouped2.gml
|
||||
type: vector
|
||||
|
||||
# - algorithm: qgis:joinattributestable
|
||||
|
Loading…
x
Reference in New Issue
Block a user