diff --git a/src/main/java/ch/geowerkstatt/ilivalidator/extensions/functions/UnionIoxPlugin.java b/src/main/java/ch/geowerkstatt/ilivalidator/extensions/functions/UnionIoxPlugin.java index da055aa..e3f955e 100644 --- a/src/main/java/ch/geowerkstatt/ilivalidator/extensions/functions/UnionIoxPlugin.java +++ b/src/main/java/ch/geowerkstatt/ilivalidator/extensions/functions/UnionIoxPlugin.java @@ -65,6 +65,9 @@ private IomObject union(UnionSurfaceKey key) { .toArray(MultiPolygon[]::new); Geometry geometryCollection = new GeometryFactory().createGeometryCollection(polygons); + + // Calculating unionGeometry with Geometry.union() in JTS 1.14.0 may cause unexpected Exception + // See: https://github.com/GeoWerkstatt/geow-interlis-functions/issues/49 Geometry unionGeometry = geometryCollection.buffer(0); try {