Class BoundaryNodeRule.Mod2BoundaryNodeRule

Hierarchy: Object , BoundaryNodeRule.Mod2BoundaryNodeRule
All Implemented Interfaces: BoundaryNodeRule
public static class BoundaryNodeRule.Mod2BoundaryNodeRule
implements BoundaryNodeRule
A 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.

Authors:
Martin Davis

Other

  • version: 1.7
public boolean isInBoundary(int boundaryCount)