public class Densifier extends Object
Geometry by inserting extra vertices along the line segments contained in the geometry. All segments in the created densified geometry will be no longer than than the given distance tolerance. Densified polygonal geometries are guaranteed to be topologically correct. The coordinates created during densification respect the input geometry's
PrecisionModel.
Note: At some future point this class will offer a variety of densification strategies.
| Constructor and Description |
|---|
Densifier(Geometry
Creates a new densifier instance.
|
| Modifier and Type | Method and Description |
|---|---|
static Geometry |
densify(Geometry
Densifies a geometry using a given distance tolerance, and respecting the input geometry's
PrecisionModel.
|
Geometry |
getResultGeometry()
Gets the densified geometry.
|
void |
setDistanceTolerance(double distanceTolerance)
Sets the distance tolerance for the densification.
|
public Densifier(GeometryinputGeom)
inputGeom -
public static Geometrydensify(Geometry geom, double distanceTolerance)
PrecisionModel.
geom - the geometry to densify
distanceTolerance - the distance tolerance to densify
public void setDistanceTolerance(double distanceTolerance)
distanceTolerance - the densification tolerance to use
public GeometrygetResultGeometry()