Class RemoveSmallSegments

java.lang.Object
com.vividsolutions.jump.geom.AbstractGeometryProcessor
com.vividsolutions.jump.workbench.ui.plugin.analysis.RemoveSmallSegments

public class RemoveSmallSegments extends AbstractGeometryProcessor
Simplifier removing segments based on their size, and taking care to remove the point with angles close to 0%PI
  • Constructor Details

    • RemoveSmallSegments

      public RemoveSmallSegments(double tolerance)
  • Method Details

    • process

      public org.locationtech.jts.geom.Geometry process(org.locationtech.jts.geom.Geometry geometry)
      Description copied from class: AbstractGeometryProcessor
      Main method taking an input geometry and returning a new Geometry which may have different properties.
      Overrides:
      process in class AbstractGeometryProcessor
      Parameters:
      geometry - the Geometry to process
      Returns:
      a new Geometry
    • process

      public void process(org.locationtech.jts.geom.LineString line, List<org.locationtech.jts.geom.Geometry> list)
      Description copied from class: AbstractGeometryProcessor
      Method to process LineStrings. Override this method to transform linear elements).
      Overrides:
      process in class AbstractGeometryProcessor
      Parameters:
      line - input LineString
      list - the list accumulating all processed simple component.
    • process

      public org.locationtech.jts.geom.LinearRing process(org.locationtech.jts.geom.LinearRing ring)
      Description copied from class: AbstractGeometryProcessor
      Method to process LinearRings.
      Overrides:
      process in class AbstractGeometryProcessor
      Parameters:
      ring - input LinearRing
      Returns:
      a new processed LinearRing