Class CoverageGapFinder
Finds gaps in a polygonal coverage. Gaps are holes in the coverage which are narrower than a given width.
The coverage should be valid according to {@link CoverageValidator}. If this is not the case, some gaps may not be reported, or the invocation may fail. This is a more accurate way of identifying gaps than using {@link CoverageValidator#setGapWidth(double)}. Gaps which separate the coverage into two disjoint regions are not detected. Gores are not identified as gaps.>Inherited Members
Namespace: NetTopologySuite.Coverage
Assembly: NetTopologySuite.dll
Syntax
public class CoverageGapFinder
Constructors
| Edit this page View SourceCoverageGapFinder(Geometry[])
Creates a new polygonal coverage gap finder
Declaration
public CoverageGapFinder(Geometry[] coverage)
Parameters
Type | Name | Description |
---|---|---|
Geometry[] | coverage | A set of polygons forming a polygonal coverage |
Methods
| Edit this page View SourceFindGaps(Geometry[], double)
Finds gaps in a polygonal coverage. Returns lines indicating the locations of the gaps.
Declaration
public static Geometry FindGaps(Geometry[] coverage, double gapWidth)
Parameters
Type | Name | Description |
---|---|---|
Geometry[] | coverage | A set of polygons forming a polygonal coverage |
double | gapWidth | The maximum width of gap to detect |
Returns
Type | Description |
---|---|
Geometry | A geometry indicating the locations of gaps (which is empty if no gaps were found), or null if the coverage was empty |
FindGaps(double)
Finds gaps in the coverage. Returns lines indicating the locations of the gaps.
Declaration
public Geometry FindGaps(double gapWidth)
Parameters
Type | Name | Description |
---|---|---|
double | gapWidth | The maximum width of gap to detect |
Returns
Type | Description |
---|---|
Geometry | A geometry indicating the locations of gaps (which is empty if no gaps were found), or |