isEndOfLine method

bool isEndOfLine()

Checks whether the iterator cursor is pointing to the endpoint of a component {@link LineString}.

@return true if the iterator is at an endpoint

Implementation

bool isEndOfLine() {
  if (componentIndex >= numLines) return false;
  //LineString currentLine = (LineString) linear.getGeometryN(componentIndex);
  if (vertexIndex < currentLine!.getNumPoints() - 1) return false;
  return true;
}