public static Dictionary<string, object> LoadTrackAttributes( trkType trk, Dictionary<string, object> attributes ) { trk.RequireArgument<trkType>( "trk" ).NotNull<trkType>(); attributes.RequireArgument<Dictionary<string, object>>( "attributes" ).NotNull<Dictionary<string, object>>(); attributes.Add( "name", trk.name ); attributes.Add( "cmt", trk.cmt ); attributes.Add( "desc", trk.desc ); attributes.Add( "src", trk.src ); attributes.Add( "link", trk.link ); attributes.Add( "number", trk.number ); attributes.Add( "type", trk.type ); return attributes; }
public static Dictionary<string, object> LoadWayPointAttributes( wptType wpt, Dictionary<string, object> attributes ) { wpt.RequireArgument<wptType>( "wpt" ).NotNull<wptType>(); attributes.RequireArgument<Dictionary<string, object>>( "attributes" ).NotNull<Dictionary<string, object>>(); attributes.Add( "ele", wpt.ele ); attributes.Add( "time", wpt.time ); attributes.Add( "magvar", wpt.magvar ); attributes.Add( "geoidheight", wpt.geoidheight ); attributes.Add( "name", wpt.name ); attributes.Add( "cmt", wpt.cmt ); attributes.Add( "desc", wpt.desc ); attributes.Add( "src", wpt.src ); attributes.Add( "link", wpt.link ); attributes.Add( "sym", wpt.sym ); attributes.Add( "type", wpt.type ); attributes.Add( "fix", wpt.fix ); attributes.Add( "sat", wpt.sat ); attributes.Add( "hdop", wpt.hdop ); attributes.Add( "vdop", wpt.vdop ); attributes.Add( "pdop", wpt.pdop ); attributes.Add( "ageofdgpsdata", wpt.ageofdgpsdata ); attributes.Add( "dgpsid", wpt.dgpsid ); return attributes; }
public static Dictionary<string, object> LoadRouteAttributes( rteType rte, Dictionary<string, object> attributes ) { rte.RequireArgument<rteType>( "rte" ).NotNull<rteType>(); attributes.RequireArgument<Dictionary<string, object>>( "attributes" ).NotNull<Dictionary<string, object>>(); attributes.Add( "name", rte.name ); attributes.Add( "cmt", rte.cmt ); attributes.Add( "desc", rte.desc ); attributes.Add( "src", rte.src ); attributes.Add( "link", rte.link ); attributes.Add( "number", rte.number ); attributes.Add( "type", rte.type ); return attributes; }