Package org.meteoinfo.jts.precision
Class EnhancedPrecisionOp
- java.lang.Object
-
- org.meteoinfo.jts.precision.EnhancedPrecisionOp
-
public class EnhancedPrecisionOp extends java.lang.ObjectProvides versions of Geometry spatial functions which use enhanced precision techniques to reduce the likelihood of robustness problems.
-
-
Constructor Summary
Constructors Constructor Description EnhancedPrecisionOp()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Geometrybuffer(Geometry geom, double distance)Computes the buffer of aGeometry, using enhanced precision.static Geometrydifference(Geometry geom0, Geometry geom1)Computes the set-theoretic difference of twoGeometrys, using enhanced precision.static Geometryintersection(Geometry geom0, Geometry geom1)Computes the set-theoretic intersection of twoGeometrys, using enhanced precision.static GeometrysymDifference(Geometry geom0, Geometry geom1)Computes the set-theoretic symmetric difference of twoGeometrys, using enhanced precision.static Geometryunion(Geometry geom0, Geometry geom1)Computes the set-theoretic union of twoGeometrys, using enhanced precision.
-
-
-
Method Detail
-
intersection
public static Geometry intersection(Geometry geom0, Geometry geom1)
Computes the set-theoretic intersection of twoGeometrys, using enhanced precision.- Parameters:
geom0- the first Geometrygeom1- the second Geometry- Returns:
- the Geometry representing the set-theoretic intersection of the input Geometries.
-
union
public static Geometry union(Geometry geom0, Geometry geom1)
Computes the set-theoretic union of twoGeometrys, using enhanced precision.- Parameters:
geom0- the first Geometrygeom1- the second Geometry- Returns:
- the Geometry representing the set-theoretic union of the input Geometries.
-
difference
public static Geometry difference(Geometry geom0, Geometry geom1)
Computes the set-theoretic difference of twoGeometrys, using enhanced precision.- Parameters:
geom0- the first Geometrygeom1- the second Geometry- Returns:
- the Geometry representing the set-theoretic difference of the input Geometries.
-
symDifference
public static Geometry symDifference(Geometry geom0, Geometry geom1)
Computes the set-theoretic symmetric difference of twoGeometrys, using enhanced precision.- Parameters:
geom0- the first Geometrygeom1- the second Geometry- Returns:
- the Geometry representing the set-theoretic symmetric difference of the input Geometries.
-
buffer
public static Geometry buffer(Geometry geom, double distance)
Computes the buffer of aGeometry, using enhanced precision. This method should no longer be necessary, since the buffer algorithm now is highly robust.- Parameters:
geom- the first Geometrydistance- the buffer distance- Returns:
- the Geometry representing the buffer of the input Geometry.
-
-