Class SmallHoleRemover


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

      All Methods Static Methods Concrete Methods 
      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 java.lang.Object

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

      • SmallHoleRemover

        public SmallHoleRemover()
    • Method Detail

      • 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