Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[processing] add test for OGR offset lines
- Loading branch information
Showing
3 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
python/plugins/processing/tests/testdata/expected/gdal/offset_lines.gfs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<GMLFeatureClassList> | ||
<GMLFeatureClass> | ||
<Name>offset_lines</Name> | ||
<ElementPath>offset_lines</ElementPath> | ||
<!--LINESTRING--> | ||
<GeometryType>2</GeometryType> | ||
<SRSName>EPSG:4326</SRSName> | ||
<DatasetSpecificInfo> | ||
<FeatureCount>7</FeatureCount> | ||
<ExtentXMin>-1.00000</ExtentXMin> | ||
<ExtentXMax>11.35355</ExtentXMax> | ||
<ExtentYMin>-3.50000</ExtentYMin> | ||
<ExtentYMax>4.64645</ExtentYMax> | ||
</DatasetSpecificInfo> | ||
</GMLFeatureClass> | ||
</GMLFeatureClassList> |
48 changes: 48 additions & 0 deletions
48
python/plugins/processing/tests/testdata/expected/gdal/offset_lines.gml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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>-1</gml:X><gml:Y>-3.5</gml:Y></gml:coord> | ||
<gml:coord><gml:X>11.35355339059327</gml:X><gml:Y>4.646446609406726</gml:Y></gml:coord> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
|
||
<gml:featureMember> | ||
<ogr:offset_lines fid="lines.0"> | ||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>11.3535533905933,4.64644660940673 9.5,2.79289321881345 9.5,2.0 9.4975923633361,1.95099142983522 9.49039264020162,1.90245483899194 9.4784701678661,1.85485766137277 9.46193976625564,1.80865828381746 9.44096063217418,1.764301631587 9.41573480615127,1.7222148834902 9.38650522668137,1.68280335791818 9.35355339059327,1.64644660940673 9.31719664208182,1.61349477331863 9.2777851165098,1.58426519384873 9.235698368413,1.55903936782582 9.19134171618255,1.53806023374436 9.14514233862723,1.5215298321339 9.09754516100806,1.50960735979838 9.04900857016478,1.5024076366639 9.0,1.5 6.0,1.5</gml:coordinates></gml:LineString></ogr:geometryProperty> | ||
</ogr:offset_lines> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:offset_lines fid="lines.1"> | ||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>1.0,-1.5 -1.0,-1.5</gml:coordinates></gml:LineString></ogr:geometryProperty> | ||
</ogr:offset_lines> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:offset_lines fid="lines.2"> | ||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>3.5,3.0 3.5,2.0 3.4975923633361,1.95099142983522 3.49039264020162,1.90245483899194 3.4784701678661,1.85485766137277 3.46193976625564,1.80865828381746 3.44096063217418,1.764301631587 3.41573480615127,1.7222148834902 3.38650522668137,1.68280335791818 3.35355339059327,1.64644660940673 3.31719664208182,1.61349477331863 3.2777851165098,1.58426519384873 3.235698368413,1.55903936782582 3.19134171618254,1.53806023374436 3.14514233862723,1.5215298321339 3.09754516100806,1.50960735979838 3.04900857016478,1.5024076366639 3.0,1.5 2.5,1.5 2.5,0.0</gml:coordinates></gml:LineString></ogr:geometryProperty> | ||
</ogr:offset_lines> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:offset_lines fid="lines.3"> | ||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>5.0,0.5 3.0,0.5</gml:coordinates></gml:LineString></ogr:geometryProperty> | ||
</ogr:offset_lines> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:offset_lines fid="lines.4"> | ||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>10.0,-3.5 7.0,-3.5</gml:coordinates></gml:LineString></ogr:geometryProperty> | ||
</ogr:offset_lines> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:offset_lines fid="lines.5"> | ||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>10.3535533905933,0.646446609406726 6.35355339059327,-3.35355339059327</gml:coordinates></gml:LineString></ogr:geometryProperty> | ||
</ogr:offset_lines> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:offset_lines fid="lines.6"> | ||
</ogr:offset_lines> | ||
</gml:featureMember> | ||
</ogr:FeatureCollection> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters