/// <summary> /// Add one record to the table /// </summary> /// <param name="rec">The awyRec to add</param> public string Add(rwyRec rec) { if (rec != null) { return(m_db.Add(rec)); } return(""); }
/// <summary> /// Load from a Runway DB from the X11 Airport db (only runway records are collected) /// </summary> /// <param name="APTDB">An Airport DB</param> public void LoadFromX11DB(xp11_aptlib.aptDatabase APTDB) { foreach (var aptrec in APTDB.GetTable( )) { // process all runways var r = aptrec.Value; // find the reverse runway var rev = APTDB.GetSubtable(r.rev_rwy_ident); if (rev.Count == 1) { var rwy = new rwyRec(r.icao_id, r.rwy_num, r.rwy_side, r.elevation, r.lat, r.lon, rev.ElementAt(0).Value.lat, rev.ElementAt(0).Value.lon); this.Add(rwy); } else { ; // DEBUG STOP } } }