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. It is more likely to happen if a SnapRounding overlay is used.
NOTE: Test has shown that using this heuristic impairs performance. It has been removed from use.
Constructor and Description 

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

OverlapUnion(Geometry g0,
Geometry g1,
UnionStrategy unionFun)
Deprecated.

Modifier and Type  Method and Description 

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

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

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