[processing] add test for OGR buffer with dissolve

This commit is contained in:
Alexander Bruy 2016-11-01 11:35:59 +02:00
parent 31a6189a9c
commit 23de13c03f
3 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,32 @@
<GMLFeatureClassList>
<GMLFeatureClass>
<Name>buffer_polys_dissolve</Name>
<ElementPath>buffer_polys_dissolve</ElementPath>
<!--MULTIPOLYGON-->
<GeometryType>6</GeometryType>
<SRSName>EPSG:4326</SRSName>
<DatasetSpecificInfo>
<FeatureCount>1</FeatureCount>
<ExtentXMin>-1.50000</ExtentXMin>
<ExtentXMax>10.50000</ExtentXMax>
<ExtentYMin>-3.50000</ExtentYMin>
<ExtentYMax>6.50000</ExtentYMax>
</DatasetSpecificInfo>
<PropertyDefn>
<Name>name</Name>
<ElementPath>name</ElementPath>
<Type>String</Type>
<Width>4</Width>
</PropertyDefn>
<PropertyDefn>
<Name>intval</Name>
<ElementPath>intval</ElementPath>
<Type>Integer</Type>
</PropertyDefn>
<PropertyDefn>
<Name>floatval</Name>
<ElementPath>floatval</ElementPath>
<Type>Real</Type>
</PropertyDefn>
</GMLFeatureClass>
</GMLFeatureClassList>

File diff suppressed because one or more lines are too long

View File

@ -86,6 +86,7 @@ tests:
OUTPUT_LAYER:
name: expected/gdal/buffer_lines.gml
type: vector
- algorithm: gdalogr:buffervectors
name: OGR basic polygon buffer
params:
@ -100,3 +101,18 @@ tests:
OUTPUT_LAYER:
name: expected/gdal/buffer_polys.gml
type: vector
- algorithm: gdalogr:buffervectors
name: OGR polygon buffer with dissolve
params:
DISSOLVEALL: true
DISTANCE: '0.5'
GEOMETRY: geometry
INPUT_LAYER:
name: polys.gml
type: vector
MULTI: false
results:
OUTPUT_LAYER:
name: expected/gdal/buffer_polys_dissolve.gml
type: vector