|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jts.precision.CommonBitsOp
Provides versions of Geometry spatial functions which use common bit removal to reduce the likelihood of robustness problems.
In the current implementation no rounding is performed on the reshifted result geometry, which means that it is possible that the returned Geometry is invalid. Client classes should check the validity of the returned result themselves.
| Constructor Summary | |
CommonBitsOp()
Creates a new instance of class, which reshifts result Geometrys. |
|
CommonBitsOp(boolean returnToOriginalPrecision)
Creates a new instance of class, specifying whether the result Geometrys should be reshifted. |
|
| Method Summary | |
Geometry |
buffer(Geometry geom0,
double distance)
Computes the buffer a geometry, using enhanced precision. |
Geometry |
difference(Geometry geom0,
Geometry geom1)
Computes the set-theoretic difference of two Geometrys, using enhanced precision. |
Geometry |
intersection(Geometry geom0,
Geometry geom1)
Computes the set-theoretic intersection of two Geometrys, using enhanced precision. |
Geometry |
symDifference(Geometry geom0,
Geometry geom1)
Computes the set-theoretic symmetric difference of two geometries, using enhanced precision. |
Geometry |
union(Geometry geom0,
Geometry geom1)
Computes the set-theoretic union of two Geometrys, using enhanced precision. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CommonBitsOp()
Geometrys.
public CommonBitsOp(boolean returnToOriginalPrecision)
Geometrys should be reshifted.
returnToOriginalPrecision - | Method Detail |
public Geometry intersection(Geometry geom0,
Geometry geom1)
Geometrys, using enhanced precision.
geom0 - the first Geometrygeom1 - the second Geometry
public Geometry union(Geometry geom0,
Geometry geom1)
Geometrys, using enhanced precision.
geom0 - the first Geometrygeom1 - the second Geometry
public Geometry difference(Geometry geom0,
Geometry geom1)
Geometrys, using enhanced precision.
geom0 - the first Geometrygeom1 - the second Geometry, to be subtracted from the first
public Geometry symDifference(Geometry geom0,
Geometry geom1)
geom0 - the first Geometrygeom1 - the second Geometry
public Geometry buffer(Geometry geom0,
double distance)
geom0 - the Geometry to bufferdistance - the buffer distance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||