|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vividsolutions.jts.densify.Densifier
public class Densifier
Densifies a 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 Summary | |
---|---|
Densifier(Geometry inputGeom)
Creates a new densifier instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Densifier(Geometry inputGeom)
inputGeom
- Method Detail |
---|
public static Geometry densify(Geometry geom, double distanceTolerance)
PrecisionModel
.
geom
- the geometry to densifydistanceTolerance
- the distance tolerance to densify
public void setDistanceTolerance(double distanceTolerance)
distanceTolerance
- the densification tolerance to usepublic Geometry getResultGeometry()
|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |