Opened 10 years ago
Closed 10 years ago
#11104 closed enhancement (fixed)
Test incomplete objects
Reported by: | naoliv | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 15.02 |
Component: | Core validator | Version: | |
Keywords: | Cc: |
Description
We are adding some tests for incomplete objects in OSM (commonly included in OSM by new users):
*[area][eval(number_of_tags()) = 1], *[lanes][eval(number_of_tags()) = 1], *[maxspeed][eval(number_of_tags()) = 1], *[name][eval(number_of_tags()) = 1], *[oneway][eval(number_of_tags()) = 1], *[ref][eval(number_of_tags()) = 1] *[surface][eval(number_of_tags()) = 1] { throwWarning: tr("incomplete object: only {0}", "{0.key}"); } *[name][area][eval(number_of_tags()) = 2], *[name][ref][eval(number_of_tags()) = 2], *[name][surface][eval(number_of_tags()) = 2] { throwWarning: tr("incomplete object: only {0} and {1}", "{0.key}", "{1.key}"); }
Is it interesting to include in JOSM? (with a better warning message, etc)
Attachments (0)
Change History (4)
comment:1 by , 10 years ago
Milestone: | → 15.02 |
---|
comment:2 by , 10 years ago
If I did it right, there are in Brazil:
21 ways and 120 nodes with surface only
6 ways and 163 nodes with surface + source
19 ways with surface + area
Let's not consider it common then.
I need to have some better sleep, time and everything else to make some stats for the rest.
But for sure we always see new users including:
area
name
name + area
Could the 3 at least (and for now) be considered?
maxspeed already has a warning
only surface, is this really a common error case?