Skip to content

Commit 0e5ac9a

Browse files
committed
Javadoc
1 parent f664e0f commit 0e5ac9a

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,20 @@
1414
import org.locationtech.jts.geom.Geometry;
1515
import org.locationtech.jts.geom.GeometryCollection;
1616
import org.locationtech.jts.geom.GeometryFactory;
17+
import org.locationtech.jts.geom.TopologyException;
1718

1819
/**
19-
* Unions a polygonal coverage in an efficient way.
20+
* Unions a valid polygonal coverage in an efficient way.
2021
* <p>
21-
* Valid polygonal coverage topology allows merging polygons in a very efficient way.
22+
* No checking is done to determine whether the input is a valid coverage.
23+
* If the input is not a valid coverage
24+
* then in <i>some</i> cases this will be detected during processing
25+
* and a {@link org.locationtech.jts.geom.TopologyException} is thrown.
26+
* Otherwise, the computation will produce output, but it will be invalid.
2227
*
2328
* @author Martin Davis
29+
*
30+
* @see CoverageValidator
2431
*
2532
*/
2633
public class CoverageUnion {
@@ -29,6 +36,8 @@ public class CoverageUnion {
2936
*
3037
* @param coverage the polygons in the coverage
3138
* @return the union of the coverage polygons
39+
*
40+
* @throws TopologyException in some cases if the coverage is invalid
3241
*/
3342
public static Geometry union(Geometry[] coverage) {
3443
// union of an empty coverage is null, since no factory is available

0 commit comments

Comments
 (0)