Skip to content

REPEAT_REGION? #664

@yakra

Description

@yakra

Chopped Routes in the same region twice in a row in the same ConnectedRoute.

# in _systems directory
for h in *_con.csv; do
  grep , $h \
  | while read line; do
    regions=$(echo "$line" | cut -f5 -d';' | tr ',' '\n' | cut -f1 -d'.')
    repeats=$(diff <(echo "$regions") <(echo "$regions" | uniq) | grep '^<' | cut -f2 -d' ')
    if [[ $repeats ]]; then
      term='^$'
      for r in $repeats; do
        term="$term|$r"
      done
      echo "$line" | egrep "$term"
    fi
  done
done
  • Lots of these would be ConnectedRoutes with gaps (chop up or add missing chopped rtes).
    Already flagged as DISCONNECTED_ROUTE.
    Could easily filter these out & just add a note to the DISCONNECTED_ROUTE error.
  • India's examples all look like I-35E/W type cases (should be chopped).
    Already flagged as CON_ROUTE_MISMATCH.
    Could also filter these out but, would be awkward, maybe more trouble than it's worth.
    The 2 errors together (cf) can help indicate it's an I-35E/W scenario.
  • 1 true positive not flagged by either of the above: gbrrr;SHRR;;St Helier Ring Road;jey.shrrant,jey.shrrclo
  • 2 FPs: TCH in Ontario

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