public class CoverageGapFinder extends Object
The coverage should be valid according to 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 CoverageValidator.setGapWidth(double).
Gaps which separate the coverage into two disjoint regions are not detected.
Gores are not identified as gaps.
| Constructor and Description |
|---|
CoverageGapFinder(Geometry[] coverage)
Creates a new polygonal coverage gap finder.
|
| Modifier and Type | Method and Description |
|---|---|
Geometry |
findGaps(double gapWidth)
Finds gaps in the coverage.
|
static Geometry |
findGaps(Geometry[] coverage,
double gapWidth)
Finds gaps in a polygonal coverage.
|
public CoverageGapFinder(Geometry[] coverage)
coverage - a set of polygons forming a polygonal coveragepublic static Geometry findGaps(Geometry[] coverage, double gapWidth)
coverage - a set of polygons forming a polygonal coveragegapWidth - the maximum width of gap to detectpublic Geometry findGaps(double gapWidth)
gapWidth - the maximum width of gap to detectCopyright © 2024. All rights reserved.