-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
Description
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