public class OverlapUnion extends Object
This situation is likely to occur during cascaded polygon union, since the partitioning of polygons is done heuristically and thus may group disjoint polygons which can lie far apart. It may also occur in real world data which contains many disjoint polygons (e.g. polygons representing parcels on different street blocks).
This situation has not been observed in JTS using floating precision, but it could happen due to snapping. It has been observed in other APIs (e.g. GEOS) due to more aggressive snapping. And it will be more likely to happen if a snaprounding overlay is used.
Constructor and Description 

OverlapUnion(Geometry g0,
Geometry g1)
Creates a new instance for unioning the given geometries.

Modifier and Type  Method and Description 

Geometry 
union()
Unions the input geometries,
using the more performant overlap union algorithm if possible.

static Geometry 
union(Geometry g0,
Geometry g1)
Union a pair of geometries,
using the more performant overlap union algorithm if possible.

public static Geometry union(Geometry g0, Geometry g1)
g0
 a geometry to uniong1
 a geometry to unionpublic Geometry union()
Copyright © 2020. All rights reserved.