Class HoleAssigner
java.lang.Object
org.locationtech.jts.operation.polygonize.HoleAssigner
Assigns hole rings to shell rings
during polygonization.
Uses spatial indexing to improve performance
of shell lookup.
- Author:
- mdavis
-
Constructor Summary
ConstructorsConstructorDescriptionHoleAssigner
(List<org.locationtech.jts.operation.polygonize.EdgeRing> shells) Creates a new hole assigner. -
Method Summary
Modifier and TypeMethodDescriptionvoid
assignHolesToShells
(List<org.locationtech.jts.operation.polygonize.EdgeRing> holeList) Assigns holes to the shells.static void
assignHolesToShells
(List<org.locationtech.jts.operation.polygonize.EdgeRing> holes, List<org.locationtech.jts.operation.polygonize.EdgeRing> shells) Assigns hole rings to shell rings.
-
Constructor Details
-
HoleAssigner
Creates a new hole assigner.- Parameters:
shells
- the shells to be assigned to
-
-
Method Details
-
assignHolesToShells
public static void assignHolesToShells(List<org.locationtech.jts.operation.polygonize.EdgeRing> holes, List<org.locationtech.jts.operation.polygonize.EdgeRing> shells) Assigns hole rings to shell rings.- Parameters:
holes
- list of hole rings to assignshells
- list of shell rings
-
assignHolesToShells
Assigns holes to the shells.- Parameters:
holeList
- list of hole rings to assign
-