Skip to content

Unused alt labels sorted per region #271

Closed

Description

@michihdeu

http://travelmapping.net/logs/unusedaltlabels.log

The file is huge and not sorted by region. It's hard for a highway data manager to find his relevant entries.

It would be nice to have a file per region like we have for NMPs.

Activity

  1. yakra commented on Dec 14, 2019

    @yakra
    Contributor

    Or how about the same single file, just sorted by region?

  2. yakra commented on Dec 14, 2019

    @yakra
    Contributor

    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.

  3. michihdeu commented on Dec 14, 2019

    @michihdeu
    ContributorAuthor

    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.....

  4. jteresco commented on Dec 14, 2019

    @jteresco
    Contributor

    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.

  5. yakra commented on Dec 14, 2019

    @yakra
    Contributor

    @jteresco wrote:

    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.

    @jteresco wrote:

    and I think zero cost in the DB or front end

    Yep. AltLabels are handled in the siteupdate side, during the TravelerList constructor. None of that info ever makes it into the DB.

    @jteresco wrote:

    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.

    @michihdeu wrote:

    I just want the file being empty........ Like data check......

    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:

    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. :)

  6. changed the title [-]Unused alt labels per region[/-] [+]Unused alt labels sorted per region[/+] on Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions