checkCollapse method

void checkCollapse(
  1. Coordinate p0,
  2. Coordinate p1,
  3. Coordinate p2
)

Implementation

void checkCollapse(Coordinate p0, Coordinate p1, Coordinate p2) {
  if (p0.equals(p2))
    throw new RuntimeException("found non-noded collapse at " +
        fact.createLineString([p0, p1, p2]).toText());
}