Package org.locationtech.jts.algorithm
Class BoundaryNodeRule.MonoValentEndPointBoundaryNodeRule
java.lang.Object
org.locationtech.jts.algorithm.BoundaryNodeRule.MonoValentEndPointBoundaryNodeRule
- All Implemented Interfaces:
BoundaryNodeRule
- Enclosing interface:
BoundaryNodeRule
public static class BoundaryNodeRule.MonoValentEndPointBoundaryNodeRule
extends Object
implements BoundaryNodeRule
A
BoundaryNodeRule
which determines that only
endpoints with valency of exactly 1 are on the boundary.
This corresponds to the boundary of a MultiLineString
being all the "unattached" endpoints.- Version:
- 1.7
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.locationtech.jts.algorithm.BoundaryNodeRule
BoundaryNodeRule.EndPointBoundaryNodeRule, BoundaryNodeRule.Mod2BoundaryNodeRule, BoundaryNodeRule.MonoValentEndPointBoundaryNodeRule, BoundaryNodeRule.MultiValentEndPointBoundaryNodeRule
-
Field Summary
Fields inherited from interface org.locationtech.jts.algorithm.BoundaryNodeRule
ENDPOINT_BOUNDARY_RULE, MOD2_BOUNDARY_RULE, MONOVALENT_ENDPOINT_BOUNDARY_RULE, MULTIVALENT_ENDPOINT_BOUNDARY_RULE, OGC_SFS_BOUNDARY_RULE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isInBoundary
(int boundaryCount) Tests whether a point that lies in boundaryCount geometry component boundaries is considered to form part of the boundary of the parent geometry.
-
Constructor Details
-
MonoValentEndPointBoundaryNodeRule
public MonoValentEndPointBoundaryNodeRule()
-
-
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 interfaceBoundaryNodeRule
- 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
-