Travel Mapping
Highway Data Discussion => Updates to Highway Data => Solved Highway data updates => Topic started by: michih on October 15, 2018, 01:28:48 pm
-
http://travelmapping.net/devel/datacheck.php#active
There are two CRB_CLA wps. One should be renamed.
Just out of curiosity, I wonder what would happen if an user adds this point to his list file!?
-
Just out of curiosity, I wonder what would happen if an user adds this point to his list file!?
siteupdate.py#L981-L1002 (https://github.com/TravelMapping/DataProcessing/blob/5b718fedfb6c42fc3bb1102dcb91a28330fe095e/siteupdate/python-teresco/siteupdate.py#L981-L1002)
Let's see if I'm following along correctly here. Suppose we're using the line WI US10 CRG_Cla CRB_Cla.
Line 985: Three matches are found: one for each CRB_Cla, and one for CRG_Cla.
Line 986: canonical_waypoints thus has 3 items appended to it.
Line 1001: len(canonical_waypoints) == 3, ergo...
Line 1002: Waypoint label(s) not found in line: WI US10 CRG_Cla CRB_Cla goes into the log file.
This all makes me wonder... with the line WI US10 CRB_Cla -- with only the one waypoint listed -- it looks like canonical_waypoints & canonical_waypoint_indices each get two items appended. There'd be no "Waypoint label(s) not found" .log error. It looks like it'd get transformed on line 1004 to a "list_entry" of WI US10 CRB_Cla CRB_Cla, and in lines 1012-1018, credited as clinched from the one CRB_Cla point to the other...
Have I got this right? (I kinda wanna make a .list file to test this out...)
-
I've run it locally:
WI US10 CRB_Cla
Incorrect format line: WI US10 CRB_Cla
Processed 0 good lines marking 0 segments traveled.
WI US10 MN/WI CRB_Cla
Waypoint label(s) not found in line: WI US10 MN/WI CRB_Cla
Processed 0 good lines marking 0 segments traveled.
WI US10 CRB_Cla CRB_Cla
Processed 1 good lines marking 3 segments traveled.
Clinched Highway Statistics
Overall in active systems: 4.58 of 820095.30 mi (0.0%)
I'm really surprised that the latter really works!
-
Ah! We never even get to line 985! (https://github.com/TravelMapping/DataProcessing/blob/5b718fedfb6c42fc3bb1102dcb91a28330fe095e/siteupdate/python-teresco/siteupdate.py#L954-L958)
WI US10 CRB_Cla CRB_Cla
Processed 1 good lines marking 3 segments traveled.
Clinched Highway Statistics
Overall in active systems: 4.58 of 820095.30 mi (0.0%)
I'm really surprised that the latter really works!
Same here. I'd expect there to be 4 items in canonical_waypoints, and thus no go.
No wait, I get it now (https://github.com/TravelMapping/DataProcessing/blob/5b718fedfb6c42fc3bb1102dcb91a28330fe095e/siteupdate/python-teresco/siteupdate.py#L985-L987).
3 segments traveled, eh? Which 3?
I'm guessing:
WI US10 CRB_Cla1 +X14
WI US10 +X14 CRG_Cla
WI US10 CRG_Cla CRB_Cla2
-
Modified in most recent update. Both points got a cardinal direction added to the county road.