Package org.meteoinfo.jts.algorithm
Class BoundaryNodeRule.Mod2BoundaryNodeRule
- java.lang.Object
-
- org.meteoinfo.jts.algorithm.BoundaryNodeRule.Mod2BoundaryNodeRule
-
- All Implemented Interfaces:
BoundaryNodeRule
- Enclosing interface:
- BoundaryNodeRule
public static class BoundaryNodeRule.Mod2BoundaryNodeRule extends java.lang.Object implements BoundaryNodeRule
ABoundaryNodeRulespecifies 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 ruleLinearRings and closedLineStrings have an empty boundary.This is the rule specified by the OGC SFS, and is the default rule used in JTS.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.meteoinfo.jts.algorithm.BoundaryNodeRule
BoundaryNodeRule.EndPointBoundaryNodeRule, BoundaryNodeRule.Mod2BoundaryNodeRule, BoundaryNodeRule.MonoValentEndPointBoundaryNodeRule, BoundaryNodeRule.MultiValentEndPointBoundaryNodeRule
-
-
Field Summary
-
Fields inherited from interface org.meteoinfo.jts.algorithm.BoundaryNodeRule
ENDPOINT_BOUNDARY_RULE, MOD2_BOUNDARY_RULE, MONOVALENT_ENDPOINT_BOUNDARY_RULE, MULTIVALENT_ENDPOINT_BOUNDARY_RULE, OGC_SFS_BOUNDARY_RULE
-
-
Constructor Summary
Constructors Constructor Description Mod2BoundaryNodeRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisInBoundary(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.
-
-
-
Method Detail
-
isInBoundary
public boolean isInBoundary(int boundaryCount)
Description copied from interface:BoundaryNodeRuleTests whether a point that lies in boundaryCount geometry component boundaries is considered to form part of the boundary of the parent geometry.- Specified by:
isInBoundaryin 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
-
-