/// <summary> /// Computes the <see cref="LinearLocation"/> for a given length along /// a linear <see cref="Geometry"/>. /// </summary> /// <param name="line">The linear geometry to use.</param> /// <param name="length">The length index of the location.</param> /// <returns> /// This returns the <see cref="LinearLocation"/> for the length. /// </returns> public static LinearLocation GetLocation(Geometry linearGeom, double length) { LengthLocationMap locater = new LengthLocationMap(linearGeom); return(locater.GetLocation(length)); }
/// <summary> /// Computes the <see cref="Coordinate"/> for the point on the line /// at the given index. /// </summary> /// <param name="index">The index of the desired point.</param> /// <returns>The Coordinate at the given index.</returns> /// <remarks> /// If the index is out of range the first or last point on the /// line will be returned. /// </remarks> public virtual Coordinate ExtractPoint(double index) { LinearLocation loc = LengthLocationMap.GetLocation( linearGeom, index); return(loc.GetCoordinate(linearGeom)); }
private LinearLocation LocationOf(double index) { return(LengthLocationMap.GetLocation(linearGeom, index)); }