You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Until the file actually comes pre-sorted, on noreaster you can type sort unusedaltlabels.log | less
to sort the file and then pipe it into a basic viewer that lets you scroll around with arrow keys, Page Up, Page Down, Home and End.
Just want one region?
You can do grep '^espct\.' unusedaltlabels.log.
(The ^ means "this must come at the beginning of a line", and the \ means "actual period, not the wildcard a period usually means".)
That said, I agree it should be sorted by region. I just prefer a single file instead of 351 of them. That could also be unwieldy.
I just want the file being empty........ Like data check......
I'm able to find the relevant lines but I'm not sure that all highway data managers find their lines nor that they are even aware of it....................... it's just.....
To me, worrying about the unused alt labels is a pretty low priority. There's little cost to the existing at site update time, and I think zero cost in the DB or front end. The only time they matter is when a waypoint label is added or changed and it conflicts with an existing unused alt label.
If we wanted to clean them all up, an automated process seems to be in order. One pass and we're done, then can watch for new ones creeping in as highway data and list files change.
There's little cost to the existing at site update time,
The only cost is when a label in a .list file line doesn't match a point's primary label. Then, we iterate thru AltLabels. So the only cost here is when unused AltLabels come before used ones in a given point's AltLabel list, and we have to interate past & check the unused ones before matching the used ones. Not a big cost.
If we wanted to clean them all up, an automated process seems to be in order. One pass and we're done, then can watch for new ones creeping in as highway data and list files change.
For my part, I've been purposefully leaving a few in:
PE1, AB1, AB16, MB1 and MB100 all have unused AltLabels, which are still in use in their corresponding TCH routes. I've only eliminated AltLabels unused in both routes, to ensure there are no diffs between the corresponding TCH / provincial files.
Leaving notes:
NL NL430 Goo/Yah once upon a time marked where I switched from using Google's coords to using Yahoo's back when initially drafting the file, when Google's cartography in NL was pretty inaccurate.
MB MB262 76N +104W marks both the N/S and E/W position in the section line road grid. Online maps don't have much labeled in the area, so I left that in as a reference for adding nearby points to other routes.
Unused AltLabels in ab.ab577.wpt record where I grabbed coords from what shapefiles.
ISTR another contributor (froggie maybe?) using AltLabels for the purposes of taking notes as well.
I'm able to find the relevant lines but I'm not sure that all highway data managers find their lines nor that they are even aware of it....................... it's just.....
Making it more user-friendly and easier to find lines for a particular region certainly won't hurt.
With only 916 lines to sort, the time taken should not even be noticeable.
ISTR @michihdeu mentioning this once before, and I was like "Eh, it's deterministic; it's good enough for me." But it's not good enough though. :)
Activity
yakra commentedon Dec 14, 2019
Or how about the same single file, just sorted by region?
yakra commentedon Dec 14, 2019
Until the file actually comes pre-sorted, on noreaster you can type
sort unusedaltlabels.log | lessto sort the file and then pipe it into a basic viewer that lets you scroll around with arrow keys, Page Up, Page Down, Home and End.
Just want one region?
You can do
grep '^espct\.' unusedaltlabels.log.(The
^means "this must come at the beginning of a line", and the\means "actual period, not the wildcard a period usually means".)That said, I agree it should be sorted by region. I just prefer a single file instead of 351 of them. That could also be unwieldy.
michihdeu commentedon Dec 14, 2019
I just want the file being empty........ Like data check......
I'm able to find the relevant lines but I'm not sure that all highway data managers find their lines nor that they are even aware of it....................... it's just.....
jteresco commentedon Dec 14, 2019
To me, worrying about the unused alt labels is a pretty low priority. There's little cost to the existing at site update time, and I think zero cost in the DB or front end. The only time they matter is when a waypoint label is added or changed and it conflicts with an existing unused alt label.
If we wanted to clean them all up, an automated process seems to be in order. One pass and we're done, then can watch for new ones creeping in as highway data and list files change.
yakra commentedon Dec 14, 2019
@jteresco wrote:
The only cost is when a label in a .list file line doesn't match a point's primary label. Then, we iterate thru AltLabels. So the only cost here is when unused AltLabels come before used ones in a given point's AltLabel list, and we have to interate past & check the unused ones before matching the used ones. Not a big cost.
@jteresco wrote:
Yep. AltLabels are handled in the siteupdate side, during the
TravelerListconstructor. None of that info ever makes it into the DB.@jteresco wrote:
For my part, I've been purposefully leaving a few in:
@michihdeu wrote:
Same here (beside the fact that I'm purposefully not helping :D ) though the realist in me accepts it probably won't happen soon.
@michihdeu wrote:
Making it more user-friendly and easier to find lines for a particular region certainly won't hurt.
With only 916 lines to sort, the time taken should not even be noticeable.
ISTR @michihdeu mentioning this once before, and I was like "Eh, it's deterministic; it's good enough for me." But it's not good enough though. :)
[-]Unused alt labels per region[/-][+]Unused alt labels sorted per region[/+]