com.vividsolutions.jts.densify
public class Densifier extends java.lang.Object
PrecisionModel.
Note: At some future point this class will offer a variety of densification strategies.
| Constructor and Description |
|---|
Densifier(Geometry inputGeom)
Creates a new densifier instance.
|
| Modifier and Type | Method and Description |
|---|---|
static Geometry |
densify(Geometry geom,
double distanceTolerance)
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(Geometry inputGeom)
inputGeom - public static Geometry densify(Geometry geom, double distanceTolerance)
PrecisionModel.geom - the geometry to densifydistanceTolerance - the distance tolerance to densifypublic void setDistanceTolerance(double distanceTolerance)
distanceTolerance - the densification tolerance to usepublic Geometry getResultGeometry()