You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These can be copied to the comments of siteupdate.py.
A9Gun/A9Alt/E49Gun/E49Alt/E51Gun/E51Alt@ST/SN ME9@PondRd&ME137@PondRd_Alb&US202@PondRd (though this is similar to some examples already listed, that just have directional _suffixes instead)Added to comments (Straightforward_concurrency)
Straightforward intersection: AB1ACoc@CroTrl_S&CroTrl@AB1A_E -> AB1A_E/CroTrl_S
Weird, cannf has always been devel. I must have temporarily disabled it when I added that comment. Or just made it up or something.
i7: use Waypoint::label_references_single_route(Route *r) i8: comment out final check for underscore or null zero
Work on C-string based speedup
OK, so this ended up using the C++ string class; it's just more convenient. :P
No noticeable change in speed; keeping it because in addition to a shorter straightforward_intersection.cpp, we gain a new Waypoint::label_references_single_route(Route *r) function that may prove useful in future waypoint simplification or datacheck enhancements.
boolWaypoint::label_references_single_route(Route *r)
{ std::string no_abbrev = r->name_no_abbrev();
if (label.substr(0, no_abbrev.size()) != no_abbrev)
return0;
if (label[no_abbrev.size()] == 0 || label[no_abbrev.size()] == '_')
return1;
if (label.substr(no_abbrev.size(), r->abbrev.size()) != r->abbrev)
return0;
if (label[no_abbrev.size() + r->abbrev.size()] == 0 || label[no_abbrev.size() + r->abbrev.size()] == '_') // If I comment out this line along with...return1;
elsereturn0; // ...this one, then the results change.
}
if (ap_coloc.size() == 2)
if (ap_coloc[1]->label_references_route(ap_coloc[0]->route) && ap_coloc[0]->label_references_route(ap_coloc[1]->route))
{ std::string newname = ap_coloc[1]->label+"/"+ap_coloc[0]->label;
// if this is taken or if name_no_abbrev()s match, attempt to add in abbrevs if there's point in doing sobool taken = vertex_names.find(newname) != vertex_names.end();
if ( (ap_coloc[0]->route->abbrev.size() || ap_coloc[1]->route->abbrev.size())
&& (taken || ap_coloc[0]->route->name_no_abbrev() == ap_coloc[1]->route->name_no_abbrev())
) { constchar *u0 = strchr(ap_coloc[0]->label.data(), '_');
constchar *u1 = strchr(ap_coloc[1]->label.data(), '_');
std::string newname = (ap_coloc[0]->route->list_entry_name() + (u1 ? u1 : "")) + "/" + (ap_coloc[1]->route->list_entry_name() + (u0 ? u0 : ""));
std::string message = "Straightforward intersection: " + name + " -> " + newname;
if (taken) message += " (" + ap_coloc[1]->label+"/"+ap_coloc[0]->label + " already taken)";
log.push_back(message);
return newname;
}
log.push_back("Straightforward intersection: " + name + " -> " + newname);
return newname;
}
Commenting out the two lines noted above in the new function changes how we react to an unexpected abbrev, letter suffix, or slashed designation giving us 228 diffs. I'm still in the process of looking through them, and the results are... interesting. I see evidence of cases where somethign went wrong or got forgotten while editing; some potential for future datachecks. In almost all cases, Jim's existing labels (which we get with the two lines of code left in place) are objectively better.
I'll keep looking at the data, investigate possibilities for new datachecks, and decide how to proceed.
Activity
yakra commentedon Oct 19, 2018
Closed intersections
IN14@*US31&US31@*IN14US6@BriSt&MA79@*BriSt&MA138@BriStI-94@*195&US52@*I-94(195)A2@*33&A67@*33&E25@*33(N2)&E34@*33(N2)[-]failsafe vertex labels to examing shortening[/-][+]failsafe vertex labels to examine shortening[/+]yakra commentedon Nov 6, 2018
yakra commentedon Nov 19, 2018
yakra commentedon Nov 27, 2018
Never mind:
Two separate unconnected segments of AR108, one in AR & one in TX, both connecting to US59/71
jteresco commentedon Dec 9, 2018
yakra commentedon Dec 23, 2018
yakra commentedon Feb 2, 2019
yakra commentedon Feb 12, 2019
TX21@US183/130&TX130@461&US183@TX21
I-280@I-680/101&I-680@I-280/101&US101@385B
Pending...
Straightforward intersection: AB1ACoc@CroTrl_S&CroTrl@AB1A_E -> AB1A_E/CroTrl_SWeird, cannf has always been devel. I must have temporarily disabled it when I added that comment. Or just made it up or something.
yakra commentedon Feb 18, 2019
yakra commentedon Apr 26, 2019
yakra commentedon Apr 28, 2019
jteresco commentedon May 17, 2019
I-93@12&MA3@12(93)&MA3APly@MA3_N&MA203@I-93&US1@I-93(12)
12 remaining items
yakra commentedon Nov 22, 2019
yakra commentedon Nov 24, 2019
i7 & i8
i7: use
Waypoint::label_references_single_route(Route *r)i8: comment out final check for underscore or null zero
OK, so this ended up using the C++ string class; it's just more convenient. :P
No noticeable change in speed; keeping it because in addition to a shorter
straightforward_intersection.cpp, we gain a newWaypoint::label_references_single_route(Route *r)function that may prove useful in future waypoint simplification or datacheck enhancements.Commenting out the two lines noted above in the new function changes how we react to an unexpected abbrev, letter suffix, or slashed designation giving us 228 diffs. I'm still in the process of looking through them, and the results are... interesting. I see evidence of cases where somethign went wrong or got forgotten while editing; some potential for future datachecks. In almost all cases, Jim's existing labels (which we get with the two lines of code left in place) are objectively better.
I'll keep looking at the data, investigate possibilities for new datachecks, and decide how to proceed.
yakra commentedon Dec 4, 2019
yakra commentedon Dec 4, 2019
yakra commentedon Dec 4, 2019
yakra commentedon Dec 4, 2019
yakra commentedon Dec 4, 2019
yakra commentedon Dec 5, 2019
yakra commentedon Dec 6, 2019
yakra commentedon Dec 6, 2019
yakra commentedon Dec 6, 2019
yakra commentedon Dec 6, 2019
• replace 588644 with num vertices + 2
• replace i0can & i15can with whatever canonical TMGs I want to diff
yakra commentedon May 5, 2021
yakra commentedon Sep 25, 2024
CT8@39&CT222@US6/8&US6@CT8(39)