File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
modules/core/src/main/java/org/locationtech/jts/coverage Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1414import org .locationtech .jts .geom .Geometry ;
1515import org .locationtech .jts .geom .GeometryCollection ;
1616import 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 */
2633public 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
You can’t perform that action at this time.
0 commit comments