mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Copy min area parameter from 'Fill holes' algorithm to 'delete holes' algorithm. Also: - make algorithm maintain z/m values - make algorithm work with curved geometries - add unit tests
41 lines
2.0 KiB
XML
41 lines
2.0 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>2</gml:X><gml:Y>-3</gml:Y></gml:coord>
|
|
<gml:coord><gml:X>10</gml:X><gml:Y>6</gml:Y></gml:coord>
|
|
</gml:Box>
|
|
</gml:boundedBy>
|
|
|
|
<gml:featureMember>
|
|
<ogr:removed_holes fid="polys.4">
|
|
<ogr:intval>120</ogr:intval>
|
|
<ogr:floatval>-100291.43213</ogr:floatval>
|
|
</ogr:removed_holes>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:removed_holes fid="polys.5">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>3,2 6,1 6,-3 2,-1 2,2 3,2</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:intval>2</ogr:intval>
|
|
<ogr:floatval>3.33</ogr:floatval>
|
|
<ogr:name>elim</ogr:name>
|
|
</ogr:removed_holes>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:removed_holes fid="polys.3">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>6,1 10,1 10,-3 6,-3 6,1</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:intval>0</ogr:intval>
|
|
<ogr:name>ASDF</ogr:name>
|
|
</ogr:removed_holes>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:removed_holes fid="remove_holes.3">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>2,6 2,3 10,3 10,6 2,6</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
</ogr:removed_holes>
|
|
</gml:featureMember>
|
|
</ogr:FeatureCollection>
|