Class BoundaryNodeRule.MultiValentEndPointBoundaryNodeRule

java.lang.Object
org.locationtech.jts.algorithm.BoundaryNodeRule.MultiValentEndPointBoundaryNodeRule
All Implemented Interfaces:
BoundaryNodeRule
Enclosing interface:
BoundaryNodeRule

public static class BoundaryNodeRule.MultiValentEndPointBoundaryNodeRule extends Object implements BoundaryNodeRule
A BoundaryNodeRule which determines that only endpoints with valency greater than 1 are on the boundary. This corresponds to the boundary of a MultiLineString being all the "attached" endpoints, but not the "unattached" ones.
Version:
1.7
  • Constructor Details

    • MultiValentEndPointBoundaryNodeRule

      public MultiValentEndPointBoundaryNodeRule()
  • Method Details

    • isInBoundary

      public boolean isInBoundary(int boundaryCount)
      Description copied from interface: BoundaryNodeRule
      Tests whether a point that lies in boundaryCount geometry component boundaries is considered to form part of the boundary of the parent geometry.
      Specified by:
      isInBoundary in interface BoundaryNodeRule
      Parameters:
      boundaryCount - the number of component boundaries that this point occurs in
      Returns:
      true if points in this number of boundaries lie in the parent boundary