Skip to content
Permalink
Browse files

[processing] add test for points along lines

  • Loading branch information
alexbruy committed Nov 12, 2016
1 parent d08c02d commit 397df659089e8d4f5d0c1f70700c7beacc47d6cc
@@ -0,0 +1,16 @@
<GMLFeatureClassList>
<GMLFeatureClass>
<Name>points_along_lines</Name>
<ElementPath>points_along_lines</ElementPath>
<!--POINT-->
<GeometryType>1</GeometryType>
<SRSName>EPSG:4326</SRSName>
<DatasetSpecificInfo>
<FeatureCount>7</FeatureCount>
<ExtentXMin>-0.50000</ExtentXMin>
<ExtentXMax>7.75000</ExtentXMax>
<ExtentYMin>-3.00000</ExtentYMin>
<ExtentYMax>2.00000</ExtentYMax>
</DatasetSpecificInfo>
</GMLFeatureClass>
</GMLFeatureClassList>
@@ -0,0 +1,48 @@
<?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.5</gml:X><gml:Y>-3</gml:Y></gml:coord>
<gml:coord><gml:X>7.75</gml:X><gml:Y>2</gml:Y></gml:coord>
</gml:Box>
</gml:boundedBy>

<gml:featureMember>
<ogr:points_along_lines fid="lines.0">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>7.70710678118655,2.0</gml:coordinates></gml:Point></ogr:geometryProperty>
</ogr:points_along_lines>
</gml:featureMember>
<gml:featureMember>
<ogr:points_along_lines fid="lines.1">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>-0.5,-1.0</gml:coordinates></gml:Point></ogr:geometryProperty>
</ogr:points_along_lines>
</gml:featureMember>
<gml:featureMember>
<ogr:points_along_lines fid="lines.2">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>2,1</gml:coordinates></gml:Point></ogr:geometryProperty>
</ogr:points_along_lines>
</gml:featureMember>
<gml:featureMember>
<ogr:points_along_lines fid="lines.3">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>3.5,1.0</gml:coordinates></gml:Point></ogr:geometryProperty>
</ogr:points_along_lines>
</gml:featureMember>
<gml:featureMember>
<ogr:points_along_lines fid="lines.4">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>7.75,-3.0</gml:coordinates></gml:Point></ogr:geometryProperty>
</ogr:points_along_lines>
</gml:featureMember>
<gml:featureMember>
<ogr:points_along_lines fid="lines.5">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>7,-2</gml:coordinates></gml:Point></ogr:geometryProperty>
</ogr:points_along_lines>
</gml:featureMember>
<gml:featureMember>
<ogr:points_along_lines fid="lines.6">
</ogr:points_along_lines>
</gml:featureMember>
</ogr:FeatureCollection>
@@ -116,3 +116,15 @@ tests:
OUTPUT_LAYER:
name: expected/gdal/buffer_polys_dissolve.gml
type: vector
- algorithm: gdalogr:createpointsalonglines
name: OGR points along lines
params:
DISTANCE: 0.25
GEOMETRY: geometry
INPUT_LAYER:
name: lines.gml
type: vector
results:
OUTPUT_LAYER:
name: expected/gdal/points_along_lines.gml
type: vector

0 comments on commit 397df65

Please sign in to comment.
You can’t perform that action at this time.