def parse_seeyou_waypoints(lines): waypoint_list = WaypointList() first = True for line in lines: if first: first = False continue line = line.strip() if line == '' or line.startswith('*'): continue if line == '-----Related Tasks-----': break fields = [] line = __CSVLine(line) while line.has_next(): fields.append(line.next()) if len(fields) < 6: continue wp = Waypoint() wp.lat = __parse_coordinate(fields[3]) wp.lon = __parse_coordinate(fields[4]) wp.altitude = __parse_altitude(fields[5]) wp.name = fields[0].strip() waypoint_list.append(wp) return waypoint_list
def parse_welt2000_waypoints(lines, bounds = None): waypoint_list = WaypointList() for line in lines: wp = __parse_line(line, bounds) if wp: waypoint_list.append(wp) return waypoint_list
def parse_welt2000_waypoints(lines, bounds=None): waypoint_list = WaypointList() for line in lines: wp = __parse_line(line, bounds) if wp: waypoint_list.append(wp) return waypoint_list
def parse_winpilot_waypoints(lines): waypoint_list = WaypointList() for line in lines: line = line.strip() if line == '' or line.startswith('*'): continue fields = line.split(',') if len(fields) < 6: continue wp = Waypoint() wp.lat = __parse_coordinate(fields[1]) wp.lon = __parse_coordinate(fields[2]) wp.altitude = __parse_altitude(fields[3]) wp.name = fields[5].strip() waypoint_list.append(wp) return waypoint_list