Class LittleThumblingDensifier
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.algo.line.LittleThumblingDensifier
-
public class LittleThumblingDensifier extends Object
Densify a geometry using the "Little Thumbling" strategy: Add a vertex for each step along the line.- Author:
- julien Gaffuri
-
-
Constructor Summary
Constructors Constructor Description LittleThumblingDensifier(org.locationtech.jts.geom.Geometry inputGeom)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.locationtech.jts.geom.Geometry
densify(org.locationtech.jts.geom.Geometry geom, double stepLength)
Densify a geometry: Walk along the line step by step and record the positions at each step.org.locationtech.jts.geom.Geometry
getResultGeometry()
Gets the densified geometry.void
setStepLength(double stepLength)
-
-
-
Method Detail
-
densify
public static org.locationtech.jts.geom.Geometry densify(org.locationtech.jts.geom.Geometry geom, double stepLength)
Densify a geometry: Walk along the line step by step and record the positions at each step. Return the line composed of the recorded positions. It could be named "Little Thumbling" densification. The vertices of the input geometry are not kept, which can result in an output line with shorter length. The result is different from org.locationtech.jts.densify.Densifier- Parameters:
geom
-stepLength
- the step length- Returns:
- the densified geometry
-
setStepLength
public void setStepLength(double stepLength)
-
getResultGeometry
public org.locationtech.jts.geom.Geometry getResultGeometry()
Gets the densified geometry.- Returns:
- the densified geometry
-
-