#12111 closed enhancement (fixed)
[Patch] Detect when "to" and "from" are the same in turn restrictions
Reported by: | naoliv | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 16.01 |
Component: | Core validator | Version: | |
Keywords: | Cc: |
Description
I don't know how to do this in MapCSS (nor if it's possible), but could JOSM warn when to
and from
in turn restrictions (type=restriction
relations) are the same?
JOSM:
Revision: 9017 Repository Root: http://josm.openstreetmap.de/svn Relative URL: ^/trunk Last Changed Author: bastiK Last Changed Date: 2015-11-16 23:07:49 +0100 (Mon, 16 Nov 2015) Build-Date: 2015-11-17 02:32:33 URL: http://josm.openstreetmap.de/svn/trunk Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last Changed Rev: 9017 Identification: JOSM/1.5 (9017 pt_BR) Linux Debian GNU/Linux unstable (sid) Memory Usage: 509 MB / 3641 MB (333 MB allocated, but free) Java version: 1.8.0_72-internal, Oracle Corporation, OpenJDK 64-Bit Server VM VM arguments: [-Dawt.useSystemAAFontSettings=on]
Example is attached.
Attachments (2)
Change History (16)
by , 9 years ago
Attachment: | example.osm added |
---|
comment:1 by , 9 years ago
Summary: | Detect → Detect when "to" and "from" are the same in turn restrictions |
---|
comment:2 by , 9 years ago
comment:3 by , 9 years ago
Right, maybe in some place it could be valid or needed.
But could JOSM offer a way to detect (even if it doesn't warn) this?
I basically want to clean this: https://github.com/openstreetmap/iD/issues/2527
Osmose also has a test for this: http://osmose.openstreetmap.fr/en/map/#item=3180&class=31801 (from https://github.com/osm-fr/osmose-backend/issues/20)
follow-up: 5 comment:4 by , 9 years ago
You can check turn restrictions here: http://map.comlu.com with shortcut to JOSM remote.
comment:5 by , 9 years ago
Replying to pl71:
You can check turn restrictions here: http://map.comlu.com with shortcut to JOSM remote.
But it needs to zoom in a small area to view the relations.
I would like to download every relation from a specific region in JOSM and validate then.
For now I will script something that verifies when the id
in from
is the same as to
, directly in the XML.
comment:6 by , 9 years ago
You can change required zoom level up to 11. See Settings icon at the bottom-right corner.
And be careful with xml files.
by , 9 years ago
Attachment: | 12111.patch added |
---|
comment:7 by , 9 years ago
Milestone: | → 16.01 |
---|---|
Summary: | Detect when "to" and "from" are the same in turn restrictions → [Patch] Detect when "to" and "from" are the same in turn restrictions |
attachment:12111.patch displays all from==to restriction relations as information level validation.
comment:9 by , 9 years ago
r9236 displays from == to
non-no_u_turn
restriction relations as warning.
comment:11 by , 9 years ago
r9236 is based on attachment:12111.patch – would you want the information level infos about no_u_turn
with from == to
?
The same way as from and to member is valid for no_u_turn restrictions (if the road is not mapped with a separate way in each direction).