Class HoleAssigner


  • public class HoleAssigner
    extends Object
    Assigns hole rings to shell rings during polygonization. Uses spatial indexing to improve performance of shell lookup.
    Author:
    mdavis
    • Constructor Detail

      • HoleAssigner

        public HoleAssigner​(List<org.locationtech.jts.operation.polygonize.EdgeRing> shells)
        Creates a new hole assigner.
        Parameters:
        shells - the shells to be assigned to
    • Method Detail

      • assignHolesToShells

        public static void assignHolesToShells​(List holes,
                                               List shells)
        Assigns hole rings to shell rings.
        Parameters:
        holes - list of hole rings to assign
        shells - list of shell rings
      • assignHolesToShells

        public void assignHolesToShells​(List<org.locationtech.jts.operation.polygonize.EdgeRing> holeList)
        Assigns holes to the shells.
        Parameters:
        holeList - list of hole rings to assign