/// <summary> /// Point the by station offset elevation. /// </summary> /// <param name="station">The station.</param> /// <param name="offset">The offset.</param> /// <param name="elevation">The elevation.</param> /// <param name="referToBaseline">if set to <c>true</c> [refer to baseline].</param> /// <returns></returns> public Point PointByStationOffsetElevation(double station, double offset, double elevation, bool referToBaseline) { Utils.Log(string.Format("Featureline.PointByStationOffsetElevation started...", "")); Baseline baseline = this._baseline; CoordinateSystem cs = CoordinateSystem.Identity(); if (!referToBaseline) { cs = CoordinateSystemByStation(station); } else { cs = baseline.CoordinateSystemByStation(station); } Point p = Point.ByCoordinates(offset, 0, elevation).Transform(cs) as Point; cs.Dispose(); Utils.Log(string.Format("Featureline.PointByStationOffsetElevation completed.", "")); return(p); }
/// <summary> /// Returns a CoordinateSystem by station. /// </summary> /// <param name="baseline">The baseline.</param> /// <param name="station">The station.</param> /// <returns></returns> public CoordinateSystem CoordinateSystemByStation(Baseline baseline, double station = 0) { return(baseline.CoordinateSystemByStation(station)); }