Class SmallHoleRemover

java.lang.Object
org.locationtech.jtslab.clean.SmallHoleRemover

public class SmallHoleRemover extends Object
Removes holes which are smaller than a given area.
Author:
Martin Davis
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.locationtech.jts.geom.Geometry
    clean(org.locationtech.jts.geom.Geometry geom, double areaTolerance)
    Removes small holes from the polygons in a geometry.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SmallHoleRemover

      public SmallHoleRemover()
  • Method Details

    • clean

      public static org.locationtech.jts.geom.Geometry clean(org.locationtech.jts.geom.Geometry geom, double areaTolerance)
      Removes small holes from the polygons in a geometry.
      Parameters:
      geom - the geometry to clean
      Returns:
      the geometry with invalid holes removed