BoundaryNodeRulepublic static class BoundaryNodeRule.Mod2BoundaryNodeRule extends java.lang.Object implements BoundaryNodeRule
BoundaryNodeRule specifies that points are in the
boundary of a lineal geometry iff
the point lies on the boundary of an odd number
of components.
Under this rule LinearRings and closed
LineStrings have an empty boundary.
This is the rule specified by the OGC SFS, and is the default rule used in JTS.
BoundaryNodeRule.EndPointBoundaryNodeRule, BoundaryNodeRule.Mod2BoundaryNodeRule, BoundaryNodeRule.MonoValentEndPointBoundaryNodeRule, BoundaryNodeRule.MultiValentEndPointBoundaryNodeRuleENDPOINT_BOUNDARY_RULE, MOD2_BOUNDARY_RULE, MONOVALENT_ENDPOINT_BOUNDARY_RULE, MULTIVALENT_ENDPOINT_BOUNDARY_RULE, OGC_SFS_BOUNDARY_RULE| Constructor | Description |
|---|---|
Mod2BoundaryNodeRule() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
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.
|
public boolean isInBoundary(int boundaryCount)
BoundaryNodeRuleisInBoundary in interface BoundaryNodeRuleboundaryCount - the number of component boundaries that this point occurs inCopyright © 2018. All rights reserved.