Class Densifier

java.lang.Object
com.vividsolutions.jump.algorithm.Densifier

public class Densifier extends Object
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

    Constructors
    Constructor
    Description
    Densifier(org.locationtech.jts.geom.Geometry geom, double maxLength)
    A Densifier to insert vertices every maxLength units along geom.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 densify
      maxLength - 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 densify
      maxLength - the maximum length between two vertices
      Returns:
      a new, densified Geometry