Class 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 Detail

      • LittleThumblingDensifier

        public LittleThumblingDensifier​(org.locationtech.jts.geom.Geometry inputGeom)
    • 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