Class: EnhancedPrecisionOp

jsts.precision.EnhancedPrecisionOp

new EnhancedPrecisionOp()

Provides versions of Geometry spatial functions which use enhanced precision techniques to reduce the likelihood of robustness problems.
Version:
  • 1.7
Source:

Methods

(static) buffer(geom, distance) → {jsts.geom.Geometry}

Computes the buffer of a Geometry, using enhanced precision. This method should no longer be necessary, since the buffer algorithm now is highly robust.
Parameters:
Name Type Description
geom jsts.geom.Geometry the first Geometry
distance number the buffer distance
Source:
Returns:
the Geometry representing the buffer of the input Geometry.
Type
jsts.geom.Geometry

(static) difference(geom0, geom1) → {jsts.geom.Geometry}

Computes the set-theoretic difference of two jsts.geom.Geometrys, using enhanced precision.
Parameters:
Name Type Description
geom0 jsts.geom.Geometry the first Geometry
geom1 jsts.geom.Geometry the second Geometry
Source:
Returns:
the Geometry representing the set-theoretic difference of the input Geometries.
Type
jsts.geom.Geometry

(static) intersection(geom0, geom1) → {jsts.geom.Geometry}

Computes the set-theoretic intersection of two jsts.geom.Geometrys, using enhanced precision.
Parameters:
Name Type Description
geom0 jsts.geom.Geometry the first Geometry
geom1 jsts.geom.Geometry the second Geometry
Source:
Returns:
the Geometry representing the set-theoretic intersection of the input Geometries.
Type
jsts.geom.Geometry

(static) symDifference(geom0, geom1) → {jsts.geom.Geometry}

Computes the set-theoretic symmetric difference of two jsts.geom.Geometrys, using enhanced precision.
Parameters:
Name Type Description
geom0 jsts.geom.Geometry the first Geometry
geom1 jsts.geom.Geometry the second Geometry
Source:
Returns:
the Geometry representing the set-theoretic symmetric difference of the input Geometries.
Type
jsts.geom.Geometry

(static) union(geom0, geom1) → {jsts.geom.Geometry}

Computes the set-theoretic union of two jsts.geom.Geometrys, using enhanced precision.
Parameters:
Name Type Description
geom0 jsts.geom.Geometry the first Geometry
geom1 jsts.geom.Geometry the second Geometry
Source:
Returns:
the Geometry representing the set-theoretic union of the input Geometries.
Type
jsts.geom.Geometry