Skip to content

Commit 4faf1f7

Browse files
committed
Javadoc
1 parent fe3ed5a commit 4faf1f7

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

modules/core/src/main/java/org/locationtech/jts/coverage/CoverageCleaner.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,34 +32,33 @@
3232
import org.locationtech.jts.noding.SegmentStringUtil;
3333
import org.locationtech.jts.noding.snap.SnappingNoder;
3434
import org.locationtech.jts.operation.polygonize.Polygonizer;
35-
import org.locationtech.jts.operation.relateng.RelateNG;
36-
import org.locationtech.jts.operation.relateng.RelatePredicate;
3735
import org.locationtech.jts.util.IntArrayList;
38-
import org.locationtech.jts.util.Stopwatch;
3936

4037
/**
41-
* Cleans the linework of a set of polygonal geometries to form a valid polygonal coverage.
38+
* Cleans the linework of a set of valid polygonal geometries to form a valid polygonal coverage.
4239
* The input is an array of valid {@link Polygon} or {@link MultiPolygon} geometries
4340
* which may contain topological errors such as overlaps and gaps.
4441
* Empty or non-polygonal inputs are removed.
4542
* Linework is snapped together to eliminate small discrepancies.
46-
* Overlaps are merged with an adjacent polygon, according to a given merge strategy.
43+
* Overlaps are merged with a parent polygon, according to a given merge strategy.
4744
* Gaps narrower than a given width are filled and merged with an adjacent polygon.
4845
* The output is an array of polygonal geometries forming a valid polygonal coverage.
4946
*
5047
* <h3>Snapping</h3>
5148
*
5249
* Snapping to nearby vertices and line segment snapping is used to improve noding robustness
5350
* and eliminate small errors in an efficient way,
54-
* By default this uses a very small snapping distance based on the extent of the input data.
51+
* By default this uses a small snapping distance based on the extent of the input data.
5552
* The snapping distance may be specified explicitly.
5653
* This can reduce the number of overlaps and gaps that need to be merged,
57-
* and reduce the risk of spikes formed by merging gaps.
54+
* and reduce the risk of spikes formed by merged gaps.
5855
* However, a large snapping distance may introduce undesirable data alteration.
56+
* Snapping is disabled if a zero snapping distance is specified.
57+
* (Note that disabling snapping may prevent collinear linework from being noded correctly.)
5958
*
6059
* <h3>Overlap Merging</h3>
6160
*
62-
* Overlaps are merged with an adjacent polygon chosen according to a specified merge strategy.
61+
* Overlaps are merged into a parent polygon chosen according to a specified merge strategy.
6362
* The supported strategies are:
6463
* <ul>
6564
* <li><b>Longest Border</b>: (default) merge with the polygon with longest shared border
@@ -69,7 +68,7 @@
6968
* <li><b>Minimum Index</b>: merge with the polygon with the lowest index in the input array
7069
* ({@link #MERGE_MIN_INDEX}.)
7170
* This allows sorting the input according to some criteria to provide a priority
72-
* for merging gaps.
71+
* for merging overlaps.
7372
* </ul>
7473
*
7574
* <h3>Gap Merging</h3>

0 commit comments

Comments
 (0)