Class HoleRemover


  • public class HoleRemover
    extends java.lang.Object
    Removes holes which match a given predicate.
    Author:
    Martin Davis
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  HoleRemover.Predicate  
    • Constructor Summary

      Constructors 
      Constructor Description
      HoleRemover​(org.locationtech.jts.geom.Geometry geom, HoleRemover.Predicate isRemoved)
      Creates a new hole remover instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.locationtech.jts.geom.Geometry getResult()
      Gets the cleaned geometry.
      • Methods inherited from class java.lang.Object

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

      • HoleRemover

        public HoleRemover​(org.locationtech.jts.geom.Geometry geom,
                           HoleRemover.Predicate isRemoved)
        Creates a new hole remover instance.
        Parameters:
        geom - the geometry to process
    • Method Detail

      • getResult

        public org.locationtech.jts.geom.Geometry getResult()
        Gets the cleaned geometry.
        Returns:
        the geometry with matched holes removed.