Skip to content
Permalink
Browse files
Add test for quoted delimiter
  • Loading branch information
suricactus authored and nyalldawson committed Nov 7, 2021
1 parent 45bb813 commit 5972ff42b16edd0a9d1305cd4b61c5bd4b87a626
@@ -0,0 +1,22 @@
s<GMLFeatureClassList>
<GMLFeatureClass>
<Name>aggregate_quoted_delim</Name>
<ElementPath>aggregate_quoted_delim</ElementPath>
<!--MULTILINESTRING-->
<GeometryType>5</GeometryType>
<SRSName>EPSG:4326</SRSName>
<DatasetSpecificInfo>
<FeatureCount>1</FeatureCount>
<ExtentXMin>-1.00000</ExtentXMin>
<ExtentXMax>11.00000</ExtentXMax>
<ExtentYMin>-3.00000</ExtentYMin>
<ExtentYMax>5.00000</ExtentYMax>
</DatasetSpecificInfo>
<PropertyDefn>
<Name>fids</Name>
<ElementPath>fids</ElementPath>
<Type>String</Type>
<Width>55</Width>
</PropertyDefn>
</GMLFeatureClass>
</GMLFeatureClassList>
@@ -0,0 +1,19 @@
<?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</gml:Y></gml:coord>
<gml:coord><gml:X>11</gml:X><gml:Y>5</gml:Y></gml:coord>
</gml:Box>
</gml:boundedBy>
<gml:featureMember>
<ogr:aggregate_quoted_delim fid="aggregate_quoted_delim.0">
<ogr:geometryProperty><gml:MultiLineString srsName="EPSG:4326"><gml:lineStringMember><gml:LineString><gml:coordinates>-1,-1 1,-1</gml:coordinates></gml:LineString></gml:lineStringMember><gml:lineStringMember><gml:LineString><gml:coordinates>7,-3 10,-3</gml:coordinates></gml:LineString></gml:lineStringMember><gml:lineStringMember><gml:LineString><gml:coordinates>6,2 9,2 9,3 11,5</gml:coordinates></gml:LineString></gml:lineStringMember><gml:lineStringMember><gml:LineString><gml:coordinates>6,-3 10,1</gml:coordinates></gml:LineString></gml:lineStringMember><gml:lineStringMember><gml:LineString><gml:coordinates>3,1 5,1</gml:coordinates></gml:LineString></gml:lineStringMember><gml:lineStringMember><gml:LineString><gml:coordinates>2,0 2,2 3,2 3,3</gml:coordinates></gml:LineString></gml:lineStringMember></gml:MultiLineString></ogr:geometryProperty>
<ogr:fids>lines.0"','"lines.1"','"lines.2"','"lines.3"','"lines.4"','"lines.5"','"lines.6</ogr:fids>
</ogr:aggregate_quoted_delim>
</gml:featureMember>
</ogr:FeatureCollection>
@@ -240,6 +240,31 @@ tests:
geometry:
ignore_part_order: True

- name: Aggregate with a quoted delimiter
algorithm: qgis:aggregate
params:
INPUT:
name: lines.gml
type: vector
GROUP_BY: 'NULL'
AGGREGATES:
[{
input: 'fid',
aggregate: 'concatenate',
delimiter: '"'',''"',
name: 'fids',
type: 10,
length: 255,
precision: 0
}]
results:
OUTPUT:
name: expected/aggregate_quoted_delim.gml
type: vector
compare:
geometry:
ignore_part_order: True

- name: Delete Holes
algorithm: native:deleteholes
params:

0 comments on commit 5972ff4

Please sign in to comment.