Class Densifier
java.lang.Object
com.vividsolutions.jump.algorithm.Densifier
Inser vertices every x units along linear components of a Geometry.
- Author:
- Michaë Michaud TODO maybe replaced by JTS Densifier, but at the moment JTS 1.18.1 does not take care of z value
-
Constructor Summary
ConstructorsConstructorDescriptionDensifier(org.locationtech.jts.geom.Geometry geom, double maxLength) A Densifier to insert vertices every maxLength units along geom. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.locationtech.jts.geom.Geometrydensify(org.locationtech.jts.geom.Geometry geom, double maxLength) Static method to densify a geometry by inserting vertices every maxLength distance along linear components.
-
Constructor Details
-
Densifier
public Densifier(org.locationtech.jts.geom.Geometry geom, double maxLength) A Densifier to insert vertices every maxLength units along geom.- Parameters:
geom- the geometry to densifymaxLength- the maximum length between two vertices
-
-
Method Details
-
densify
public static org.locationtech.jts.geom.Geometry densify(org.locationtech.jts.geom.Geometry geom, double maxLength) Static method to densify a geometry by inserting vertices every maxLength distance along linear components.- Parameters:
geom- the geometry to densifymaxLength- the maximum length between two vertices- Returns:
- a new, densified Geometry
-