Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions siteupdate/cplusplus/classes/Waypoint/Waypoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,6 @@ Waypoint::Waypoint(char *line, Route *rte)

std::string Waypoint::str()
{ std::string ans = route->root + " " + label;
if (alt_labels.size())
{ ans += " [alt: ['" + alt_labels[0] + '\'';
for (size_t i = 1; i < alt_labels.size(); i++)
ans += ", \'" + alt_labels[i] + '\'';
ans += "]]";
}
char coordstr[51];
sprintf(coordstr, "%.15g", lat);
if (!strchr(coordstr, '.')) strcat(coordstr, ".0"); // add single trailing zero to ints for compatibility with Python
Expand Down
6 changes: 1 addition & 5 deletions siteupdate/python-teresco/siteupdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,7 @@ def __init__(self,line,route,datacheckerrors):
self.near_miss_points = None

def __str__(self):
ans = self.route.root + " " + self.label
if len(self.alt_labels) > 0:
ans = ans + " [alt: " + str(self.alt_labels) + "]"
ans = ans + " (" + str(self.lat) + "," + str(self.lng) + ")"
return ans
return self.route.root + " " + self.label + " (" + str(self.lat) + "," + str(self.lng) + ")"

def csv_line(self,id):
"""return csv line to insert into a table"""
Expand Down