Example #1
0
 private void _aggregateTrackInfo(TrackInfo trackInfo, DbRecord record) {
    var length = record.GetDouble("Seg_Length");
    trackInfo.TrackDistance += length;
    if (!(record.IsNull("Seg_Slope"))) {
       var slope = record.GetDouble("Seg_Slope");
       var index = (int)(Math.Round(Math.Atan(slope).ToDegrees().Limit(-10, 10) / 1.0)) + 10;
       trackInfo.Elevations[index] += length;
    }
 }