-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial commit of long crossing check #1764
Conversation
id, | ||
ST_AsText(way_locate(linestring)) | ||
FROM | ||
{0}ways |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is limited to highways, right? Then table {0}highways
is probably more efficient?
Note you'll have to import highways
and touched_highways
, see for example:
osmose-backend/analysers/analyser_osmosis_highway_bad_intersection.py
Lines 88 to 89 in 9fa8a7d
requires_tables_full = ['highways'] | |
requires_tables_diff = ['highways', 'touched_highways'] |
Nice idea :)
Regarding the tests, you can maybe use Then using for example JOSM you can make a .osm file with test cases, for example one If the "bad" crossing would for example have ID 1234, then use |
self.classs_change[1] = self.def_class(item = 7800, level = 2, tags = ['tag', 'highway', 'fix:survey'], | ||
title = T_('Long Crossing'), | ||
detail = T_( | ||
'''The crossing way is much longer than expected''')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe also add a fix
message, describing to split the way when the crossing is over?
Also, don't forget to add a '.' at the end of the detail
message :)
@emersonveenstra still interested to work on this? |
@frodrigo i probably won't have the time for a while, feel free to take it or give it to someone else |
I might be able to take it over if you prefer, in a week or two. I like the idea |
Closed in favour of #1992 |
This is a new analyser that looks for ways with
footway=crossing
orcycleway=crossing
that are over 200 meters long. This happens when people change the tags without splitting the way over the actual crossing part. I haven't found any false positives in the equivalent overpass queries:This isn't ready to be merged, I need a little guidance on what to make the item number and level, and what I should do for tests