Uh oh!
There was an error while loading. Please reload this page.
FLOAT -> DOUBLE in four SQL tables / flippedroutes.log - #491
Conversation
https://forum.travelmapping.net/index.php?topic=2065.msg26937#msg26937 * overallMileageByRegion * systemMileageByRegion * clinchedOverallMileageByRegion * clinchedSystemMileageByRegion
jteresco
commented
Feb 16, 2022
Thanks. Good to go for the next site update? |
yakra
commented
Feb 16, 2022
Good to go. |
jteresco
commented
Feb 17, 2022
And now a site update using this has completed. |
I looked at https://travelmapping.net/logs/flippedroutes.log just for giggles. Chromium thinks it's in Scottish Gaelic. Giggles confirmed. |
michihdeu
commented
Feb 17, 2022
I never realized flippedroutes.log. What does it mean? It lists routes I maintain and I'd like to know if anything is wrong with them.... 😄 |
yakra
commented
Feb 17, 2022
It's brand new with this pull request.
There won't be anything wrong with these routes unless flagged DISCONNECTED_ROUTE. I guess I should put a blurb under Web Site Development and Site Update Logs |
michihdeu
commented
Feb 17, 2022
but why are they listed? |
Or, it can help streamline shell scripts. if [ `curl https://travelmapping.net/logs/flippedroutes.log | grep -c ^$root$`== 1 ];then thing=$stuffelse thing=$SomethingElsefiMuch simpler!
Or do you mean, why are they flagged as reversed in the first place? |
No, they are listed because there IS something wrong although they are NOT flagged DISCONNECTED_ROUTE! Reported correctly: Reported incomplete: There are more flipped reports where only one chopped route is listed. Cool data check though. Love it 😄 |
I think I see what you mean here -- there's something wrong with the routes stylistically, from a consistency perspective; their points (or connected roots) are just plain in the wrong order for that region and/or system and should be reversed in the HighwayData itself. (Right?) Fair enough. My threshold for "something wrong" was a datacheck error that'd potentially affect how users' travels are calculated from a .list line.
My intent wasn't for this to be a datacheck per se (though you can certainly use it as one if you wish), more of just a handy-dandy quick reference to use for development purposes (thus I think it should be listed here rather than here). So, for a route to be reported "correctly" in flippedroutes.log, it just has to be one of the routes flagged behind the scenes as reversed, for having its point order opposite the connected root order.
N19 (Vesoul) had its chopped roots ordered east-to-west, with the point order therein west-to-east.
The chopped roots were listed east-to-west in fragesd88_con.csv.
Yes, I expect that this will be normal behavior, what we'll see most of the time, especially if there are no "errors" (i.e., routes unintentionally flipped) present. |
michihdeu
commented
Feb 18, 2022
I always order routes N-S and W-E but France is usually Paris centric (since N routes were drafted by Si) I initially dealed wrong with GES 2F but think that I got it now 😄 Thanks! |
It is not a nmplog but a general log. yep, go for it! I'd say between unprocessedwpts.log and https://travelmapping.net/graphs/ I could also do it but don't know how to describe it properly because of the two causes for routes being listed. EDIT: Maybe... |
michihdeu
commented
Feb 18, 2022
Once the file is linked, we should mention the new log file on the forum (contributor only?) to trigger the affected hwy data managers. Well... mostly Si |
I think D1001 should have also hade the points reversed rather than the routes, to go N-S.
Oops, I wrote that post too fast, based on having looked at tools.php before. I meant to say "here rather than here"
So yes, definitely not an NMP log.
Sounds like you're thinking of...?
This can also be conceptualized as just one cause:
Shrug -- Anyway!
Yeah, you get the idea, this is good. Though if I wanna get pedantic, I might say "multi-region" instead of "6-field" .list entries -- 6-field entries listing a single chopped route have always been immune to the breaks that route-flipping was designed to fix. 😄
Or, even before it's linked. Hey why not. |
michihdeu
commented
Feb 19, 2022
It is a former N route heading north from Paris 🤣 |
FLOAT -> DOUBLE in four SQL tables
https://forum.travelmapping.net/index.php?topic=2065.msg26937#msg26937
Along for the ride:
flippedroutes.log lists routes that are flagged as reversed for processing ConnectedRoutes in 6-field .list entries.
It's very inexpensive to write, super-easy to code, and should come in handy when I want a quick reference for test cases to use in development.