Repository navigation
Closed
Description
nearmisspoints.log:
aln.backcove Bar (43.669615,-70.265141) NMP aln.backcove Baz (43.669762,-70.265371) aln.backcove Foo (43.669615,-70.26514) [LOOKS INTENTIONAL]
aln.backcove Baz (43.669762,-70.265371) NMP aln.backcove Bar (43.669615,-70.265141) aln.backcove Foo (43.669615,-70.26514)
aln.backcove Foo (43.669615,-70.26514) NMP aln.backcove Bar (43.669615,-70.265141) aln.backcove Baz (43.669762,-70.265371) [LOOKS INTENTIONAL]
Log lines list all NMPs for a given point on a single line, whether they look intentional or not.
If any single NMP LOOKS INTENTIONAL, then the entire line is flagged:
DataProcessing/siteupdate/python-teresco/siteupdate.py
Lines 2194 to 2199 in b8af793
| for other_w in sorted(w.near_miss_points, | |
| key=lambda waypoint: | |
| waypoint.route.root + "@" + waypoint.label): | |
| if (abs(w.lat - other_w.lat) < 0.0000015) and \ | |
| (abs(w.lng - other_w.lng) < 0.0000015): | |
| nmplooksintentional = True |
In this example,
Foo and Bar are designed to Look Intentional (off by 0.000001), and Baz is offset from both by a greater amount.The 2nd line, for
Baz, looks fine, as neither of its NMPs are within 0.000001 of Baz.The 1st & 3rd lines each list one NMP that LOOKS INTENTIONAL and one that does not.
tm-master.nmp:
aln.backcove@Bar 43.669615 -70.265141 LI
aln.backcove@Baz 43.669762 -70.265371 LI
aln.backcove@Bar 43.669615 -70.265141 LI
aln.backcove@Foo 43.669615 -70.26514 LI
aln.backcove@Baz 43.669762 -70.265371
aln.backcove@Foo 43.669615 -70.26514
(whitespace added for easier reading)
3rd pair looks fine: it does not Look Intentional, and is not flagged as such.
2nd pair looks fine: it does Look Intentional, and is flagged as such.
1st pair: does not Look Intentional, but is flagged. This is because Foo is an NMP of Bar, and thus sets nmplooksintentional to True for all NMPs of Bar.
Activity
yakra commentedon Dec 13, 2018
I don't propose any changes to
nmpline(before the [MARKED FP] and [LOOKS INTENTIONAL] fields), as that would break everybody's false positives. Maybe a [SOME LOOK INTENTIONAL] tag would be sufficient.For tm-master.nmp, there are ways to get the "LI"
extra_fields right.yakra commentedon Apr 26, 2019
While working on #211, I found an example of this in the real world.
http://travelmapping.net/logs/nmpbyregion/nld.nmp | HDX-Lite
yakra commentedon Mar 23, 2020
For finding NMP pairs where some but not all are marked as FP.
Not really relevant to this issue, but just leaving it here rather than opening a new one.
[-] NMP "looks intentional" error[/-][+] NMP "looks intentional" error (what gets flagged)[/+]yakra commentedon Mar 24, 2020
HighwayData @
5e187fe4f18d4d44730f0804906c07f586846beaYes. Good.
...To be examined in the morning.
yakra commentedon Mar 24, 2020
The diff above checks out. Good.
Bad:
If there's only one NMP, there's nothing "SOME" about it!
Out of 207 new [SOME LOOK INTENTIONAL] lines, 102 list only a single NMP for a given point.
yakra commentedon Mar 24, 2020
This puts the [LOOKS INTENTIONAL]/[SOME LOOK INTENTIONAL] & [MARKED FP] tags in that order rather than the reverse, as has been done till now. Not a big deal IMO.
Merge pull request #150 from TravelMapping/master