Package org.locationtech.jtslab.clean
Class HoleRemover
- java.lang.Object
-
- org.locationtech.jtslab.clean.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(Geometry geom, HoleRemover.Predicate isRemoved)
Creates a new hole remover instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Geometry
getResult()
Gets the cleaned geometry.
-
-
-
Constructor Detail
-
HoleRemover
public HoleRemover(Geometry geom, HoleRemover.Predicate isRemoved)
Creates a new hole remover instance.- Parameters:
geom
- the geometry to process
-
-
Method Detail
-
getResult
public Geometry getResult()
Gets the cleaned geometry.- Returns:
- the geometry with matched holes removed.
-
-