| | 165 | |
| | 166 | # measurement values and units warnings (ticket #8687) |
| | 167 | way : W : layer == * && layer != /^0|^-?[1-5]$/ # layer should be between -5 and 5 |
| | 168 | way : W : level == * && level != /^((([0-9]|-[1-9])|[1-9][0-9]*)(\.5)?)(;(([0-9]|-[1-9])|[1-9][0-9]*)(\.5)?)*|-0\.5$/ # level should be numbers with optional .5 increments |
| | 169 | way : W : height == * && height != /([0-9]+\.?[0-9]*( m)?)|([0-9]+\'[0-9]+\.?[0-9]*\")/ # meters is default; period is separator; if units, put space then unit |
| | 170 | way : W : maxheight == * && maxheight != /([0-9]+\.?[0-9]*( m)?)|([0-9]+\'[0-9]+\.?[0-9]*\")/ # meters is default; period is separator; if units, put space then unit |
| | 171 | way : W : width == * && width != /([0-9]+\.?[0-9]*( [a-z]+)?)|([0-9]+\'[0-9]+\.?[0-9]*\")/ # meters is default; period is separator; if units, put space then unit |
| | 172 | way : W : maxwidth == * && maxwidth != /([0-9]+\.?[0-9]*( m)?)|([0-9]+\'[0-9]+\.?[0-9]*\")/ # meters is default; period is separator; if units, put space then unit |
| | 173 | way : W : maxspeed == * && maxspeed != /signals|none|unposted|unknown|variable|[1-9][0-9]*( [a-z]+)?|[A-Z][A-Z]:(urban|rural|living_street|motorway)/i # unusual maxspeed format |
| | 174 | way : W : voltage == * && voltage == /([a-z])|,|( )/i # voltage should be in volts with no units/delimiter/spaces |
| | 175 | # some users are using frequency for other purposes (not electromagnetic) with the values 'perennial' and 'intermittent'; the vast majority are 0, 16.7, 50 and 60 |
| | 176 | way : W : frequency == * && frequency != /^(0|[1-9][0-9]*(\.[0-9]+)?)( (kHz|MHz|GHz|THz))?/ # unusual frequency specification |
| | 177 | way : W : gauge == * && gauge != /^[1-9][0-9]{2,3}$/ # unusual train track gauge; use mm with no separator |
| | 178 | # the numbers for percentage and degrees include could probably be bracketed a bit more precisely |
| | 179 | way : W : incline == * && include != /^up|down|-?([0-9]+?(\.[1-9]%)?|100)[%°]?$/ # unusual incline; use percentages/degrees or up/down |
| | 180 | |