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