Class: BoundaryNodeRule

jsts.algorithm.BoundaryNodeRule

new BoundaryNodeRule()

An interface for rules which determine whether node points which are in boundaries of Lineal geometry components are in the boundary of the parent geometry collection. The SFS specifies a single kind of boundary node rule, the Mod2BoundaryNodeRule rule. However, other kinds of Boundary Node Rules are appropriate in specific situations (for instance, linear network topology usually follows the EndPointBoundaryNodeRule.) Some JTS operations allow the BoundaryNodeRule to be specified, and respect this rule when computing the results of the operation.
Source:
See:
  • RelateOp
  • IsSimpleOp
  • PointLocator

Methods

isInBoundary(boundaryCount) → {boolean}

Tests whether a point that lies in boundaryCount geometry component boundaries is considered to form part of the boundary of the parent geometry.
Parameters:
Name Type Description
boundaryCount int the number of component boundaries that this point occurs in.
Source:
Returns:
true if points in this number of boundaries lie in the parent boundary.
Type
boolean