mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
This algorithm is basically the equivalent of the ST_Multi(...) command - it forces a feature's geometry to become multipart, regardless of the input geometry type. If input geometries are singlepart, they will output as multipart with just 1 part. If they are already multipart, they will be output unchanged.
49 lines
2.9 KiB
XML
49 lines
2.9 KiB
XML
<?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:promote_multipart_lines fid="lines.0">
|
|
<ogr:geometryProperty><gml:MultiLineString srsName="EPSG:4326"><gml:lineStringMember><gml:LineString><gml:coordinates>6,2 9,2 9,3 11,5</gml:coordinates></gml:LineString></gml:lineStringMember></gml:MultiLineString></ogr:geometryProperty>
|
|
</ogr:promote_multipart_lines>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:promote_multipart_lines fid="lines.1">
|
|
<ogr:geometryProperty><gml:MultiLineString srsName="EPSG:4326"><gml:lineStringMember><gml:LineString><gml:coordinates>-1,-1 1,-1</gml:coordinates></gml:LineString></gml:lineStringMember></gml:MultiLineString></ogr:geometryProperty>
|
|
</ogr:promote_multipart_lines>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:promote_multipart_lines fid="lines.2">
|
|
<ogr:geometryProperty><gml:MultiLineString srsName="EPSG:4326"><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:promote_multipart_lines>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:promote_multipart_lines fid="lines.3">
|
|
<ogr:geometryProperty><gml:MultiLineString srsName="EPSG:4326"><gml:lineStringMember><gml:LineString><gml:coordinates>3,1 5,1</gml:coordinates></gml:LineString></gml:lineStringMember></gml:MultiLineString></ogr:geometryProperty>
|
|
</ogr:promote_multipart_lines>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:promote_multipart_lines fid="lines.4">
|
|
<ogr:geometryProperty><gml:MultiLineString srsName="EPSG:4326"><gml:lineStringMember><gml:LineString><gml:coordinates>7,-3 10,-3</gml:coordinates></gml:LineString></gml:lineStringMember></gml:MultiLineString></ogr:geometryProperty>
|
|
</ogr:promote_multipart_lines>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:promote_multipart_lines fid="lines.5">
|
|
<ogr:geometryProperty><gml:MultiLineString srsName="EPSG:4326"><gml:lineStringMember><gml:LineString><gml:coordinates>6,-3 10,1</gml:coordinates></gml:LineString></gml:lineStringMember></gml:MultiLineString></ogr:geometryProperty>
|
|
</ogr:promote_multipart_lines>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:promote_multipart_lines fid="lines.6">
|
|
</ogr:promote_multipart_lines>
|
|
</gml:featureMember>
|
|
</ogr:FeatureCollection>
|