extractPoint method

Coordinate extractPoint(
  1. LinearLocation index
)

Computes the {@link Coordinate} for the point on the line at the given index. If the index is out of range the first or last point on the line will be returned. The Z-ordinate of the computed point will be interpolated from the Z-ordinates of the line segment containing it, if they exist.

@param index the index of the desired point @return the Coordinate at the given index

Implementation

Coordinate extractPoint(LinearLocation index) {
  return index.getCoordinate(linearGeom);
}