|
QGIS API Documentation 4.3.0-Master (58212645307)
|
Encapsulates parameters for a coverage cleaning operation. More...
#include <qgsgeometry.h>
Public Member Functions | |
| double | maximumGapWidth () const |
| Returns the maximum gap width. | |
| Qgis::CoverageCleanOverlapMergeStrategy | overlapMergeStrategy () const |
| Returns the overlap merge strategy to use during cleaning. | |
| void | setMaximumGapWidth (double width) |
| Sets the maximum gap width. | |
| void | setOverlapMergeStrategy (Qgis::CoverageCleanOverlapMergeStrategy strategy) |
| Sets the overlap merge strategy to use during cleaning. | |
| void | setSnappingDistance (double distance) |
| Sets the snapping distance. | |
| double | snappingDistance () const |
| Returns the snapping distance. | |
Encapsulates parameters for a coverage cleaning operation.
Definition at line 164 of file qgsgeometry.h.
|
inline |
Returns the maximum gap width.
Gaps which are smaller than this distance are merged with an adjacent polygon.
Polygon width is determined as twice the radius of the maximum inscribed circle of the gap polygon.
Gaps are merged with the adjacent polygon depending on overlapMergeStrategy().
Empty holes in input polygons are treated as gaps, and may be filled in.
Gaps which are not fully enclosed ("inlets") are not removed.
The width of a gap is twice the radius of the Maximum Inscribed Circle in the gap polygon,
A width of zero prevents gaps from being merged.
Definition at line 216 of file qgsgeometry.h.
|
inline |
Returns the overlap merge strategy to use during cleaning.
Definition at line 230 of file qgsgeometry.h.
|
inline |
|
inline |
Sets the overlap merge strategy to use during cleaning.
Definition at line 237 of file qgsgeometry.h.
|
inline |
Sets the snapping distance.
Definition at line 194 of file qgsgeometry.h.
|
inline |
Returns the snapping distance.
Snapping to nearby vertices and line segment snapping is used to improve noding robustness and eliminate small errors in an efficient way.
By default the snapping distance is -1, which means that the clean operation uses a very small snapping distance based on the extent of the input data.
The snapping distance may be specified explicitly.
This can reduce the number of overlaps and gaps that need to be merged, and reduce the risk of spikes formed by merging gaps. However, a large snapping distance may introduce undesirable data alteration.
A distance of zero prevents snapping from being used.
Definition at line 187 of file qgsgeometry.h.