setToEnd method
Sets the value of this location to refer to the end of a linear geometry.
@param linear the linear geometry to use to set the end
Implementation
void setToEnd(Geometry linear) {
componentIndex = linear.getNumGeometries() - 1;
LineString lastLine = linear.getGeometryN(componentIndex) as LineString;
segmentIndex = numSegments(lastLine);
segmentFraction = 0.0;
}