Package org.locationtech.jts.precision
Class EnhancedPrecisionOp
java.lang.Object
org.locationtech.jts.precision.EnhancedPrecisionOp
Provides versions of Geometry spatial functions which use
enhanced precision techniques to reduce the likelihood of robustness problems.
- Version:
- 1.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Geometry
Computes the buffer of aGeometry
, using enhanced precision.static Geometry
difference
(Geometry geom0, Geometry geom1) Computes the set-theoretic difference of twoGeometry
s, using enhanced precision.static Geometry
intersection
(Geometry geom0, Geometry geom1) Computes the set-theoretic intersection of twoGeometry
s, using enhanced precision.static Geometry
symDifference
(Geometry geom0, Geometry geom1) Computes the set-theoretic symmetric difference of twoGeometry
s, using enhanced precision.static Geometry
Computes the set-theoretic union of twoGeometry
s, using enhanced precision.
-
Constructor Details
-
EnhancedPrecisionOp
public EnhancedPrecisionOp()
-
-
Method Details
-
intersection
Computes the set-theoretic intersection of twoGeometry
s, using enhanced precision.- Parameters:
geom0
- the first Geometrygeom1
- the second Geometry- Returns:
- the Geometry representing the set-theoretic intersection of the input Geometries.
-
union
Computes the set-theoretic union of twoGeometry
s, using enhanced precision.- Parameters:
geom0
- the first Geometrygeom1
- the second Geometry- Returns:
- the Geometry representing the set-theoretic union of the input Geometries.
-
difference
Computes the set-theoretic difference of twoGeometry
s, using enhanced precision.- Parameters:
geom0
- the first Geometrygeom1
- the second Geometry- Returns:
- the Geometry representing the set-theoretic difference of the input Geometries.
-
symDifference
Computes the set-theoretic symmetric difference of twoGeometry
s, 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
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.
-