Changes between Version 55 and Version 71 of Help/Preferences/Validator


Ignore:
Timestamp:
(multiple changes)
Author:
(multiple changes)
Comment:
(multiple changes)

Legend:

Unmodified
Added
Removed
Modified
  • Help/Preferences/Validator

    v55 v71  
    1 [[TranslatedPages(outdated=This page is incomplete. Lot's of tests not described.)]]
    2 [[PageOutline(2-4,Table of Contents)]]
     1[[TranslatedPages(outdated=This page is incomplete. Lot's of tests not described. Screenshot for rules is missing.)]]
     2[[PageOutline(2-4,Table of Content)]]
    33
    44= Preferences > Data Validator =
    5 [[JOSMImage(preferences/validator,48,link=,middle,margin-right=20,margin-bottom=10)]]
    6 
    7 An OSM data validator that checks for common errors made by users and editor programs.
     5[[JOSMImage(preferences/validator,48,link=,middle,margin-right=20,margin-bottom=10)]] **An OSM data validator that checks for common errors made by users and editor programs.**
    86
    97== Tests ==#Tests
     
    2624By default, all error and warning tests are active.
    2725
    28 [[Image(validator_settings.gif,link=)]]
    29 
    30261. If you are a OSM newbie and encountered validation error about objects you haven't touched, please ignore these messages for now.
    31271. Validator can be wrong or incomplete about all tagging practices. Don't fix errors when you aren't sure something is really wrong.
    32281. First, refer to [wikitr:/Help/Dialog/Validator Validator panel] - how to use validator
    3329
     30[[Image(PreferencesValidatorTests.png,link=,600)]]
     31
    3432The fourth column contains also **(video)** explanations. The table is incomplete.
    3533
     34[=#TestsTable]
    3635||= **Type** =||= **Message** =||= **''What is checked''** =||= **Additional help** =||= **Autofix** =||
    3736||||
     
    4847||||
    4948||||= **Barriers and entrances** =|||||| errors in [[osmwiki:Barriers]] and [[osmwiki:Key:entrance]]. ||
     49||||
    5050||||= **Coastlines** =|||||| [[osmwiki:Coastline]] are correct. ||
    5151||  [[JOSMImage(data/error)]]  || Reversed coastline: land not on left side || coastlines that are not counter-clockwise or that are otherwise misplaced (coastline misused as inland lake) || Reverse coastline || ||
     
    5454||||
    5555||||= **Conditional Keys** =|| usage of `*:conditional` tags. |||| Imprecise rules covered at [osmwiki:Conditional_restrictions osm wiki page "Conditional restrictions"] ||
     56||||
    5657||||= **Connectivity Relations** =|||||| Validates connectivity relations ||
    5758||  [[JOSMImage(data/error)]]  || Connectivity tag missing comma between optional and non-optional values || || ||  no  ||
     
    6869||  [[JOSMImage(data/warning)]]  || Crossing barrier/building || barrier crossing a building in same layer with no crossing node || ||  no  ||
    6970||||
    70 ||||= **Duplicated nodes** =|||||| ''Advanced preference:'' \\ `validator.duplicatenodes.precision`: rounding precision in degree  ''(default: `0.0` or `1e7`)'' ||
     71||||= **Cycle detector** =|||||| Detects cycles (loops) in [[https://en.wikipedia.org/wiki/Drainage_system_(geomorphology)|drainage systems]]. \\ \\ ''Advanced preference:'' \\ `validator.CycleDetector.directionalWaterways`:  directional waterway values ''(default: `["river", "stream", "tidal_channel", "drain", "ditch", "fish_pass"]`)'' ||
     72||  [[JOSMImage(data/error)]]  || Cycle in directional waterway network || || ||  no  ||
     73||||
     74||||= **Duplicated nodes** =|||||| ''Advanced preference:'' \\ `validator.duplicatenodes.precision`: rounding precision in degree  ''(default: `1e-6` since r17612, `1-e7` before)'' ||
    7175||  [[JOSMImage(data/error)]]  || Duplicated nodes || no nodes in the very same location || Merge the nodes into only one, adding the properties from all nodes to the merged one || ||
    7276||||
     
    8690||||= **Long segments** =|||||| long way segments, which are usually errors \\ \\ ''Advanced preference:'' `validator.maximum.segment.length`: maximum segment length in meters ''(default: `15,000`)'' ||
    8791||  [[JOSMImage(data/warning)]]  || Long segments - Very long segment of … kilometers || way segment length above certain configured value || For real world objects it makes sence to add some way nodes. ||  no  ||
     92||||
    8893||||= **Tag checker (MapCSS based)** =|||||| different kind of checks based on MapCSS, including [wikitr:/Rules external rules]. See [#TagCheckerRules Tag checker rules] tab and detailed description [#MapCssBasedTests below]. ||
    8994||||
     
    98103|| ||= **Enable strict mode.** =||||||  even stricter rules, disabled by default \\ \\ ''Preference:'' \\ `validator.OpeningHourTest.strict` ''(default: `false`)'' ||
    99104||||
    100 ||||= **Overlapping ways** =|| a connection between two nodes is not used by more than one way. \\ \\ ''Advanced preference:'' \\ `overlapping-ways.ignored-keys` - list of ignored keys |||| [https://commons.wikimedia.org/wiki/File:JOSM_9900_en_validator_message_%22Overlapping_ways%22_with_shortcuts.ogv (video) Using selection, split and middle mouse] ||
    101 ||  [[JOSMImage(data/warning)]]  || Overlapping (high)ways || two (high)ways that share the same nodes || ||  no  ||
    102 ||  [[JOSMImage(data/other)]]  || Highways share segment with area || a way with `highway=*` sharing consecutive nodes with a closed way or multipolygon || Depending on the mapping style and the tags of the involved area these overlaps are ok or not. It definitively makes selecting the objects and distinguishing between them harder ||  no  ||
    103 ||||
    104 ||||= **Power lines** =|||||| nodes in power lines that do not have a power=tower/pole tag. ||
     105||||= **Overlapping ways** =|| a connection between two nodes is not used by more than one way. \\ \\ ''Advanced preferences:'' \\ `overlapping-ways.ignored-keys` - list of ignored keys \\ `overlapping-ways.ignore-layer` ''(default: `false`)'' \\ `overlapping-ways.only-known-linear` ''(default: `true`)'' |||| [https://commons.wikimedia.org/wiki/File:JOSM_9900_en_validator_message_%22Overlapping_ways%22_with_shortcuts.ogv (video) Using selection, split and middle mouse] ||
     106||  [[JOSMImage(data/error)]]  || Overlapping high-/rail-/waterways || two ways with `highway=*`, `railway=*` or `waterway=*` that share the same nodes || ||  no  ||
     107||  [[JOSMImage(data/error)]]  || Way contains segment twice || || ||  no  ||
     108||  [[JOSMImage(data/warning)]]  || High-/Rail-/Waterway shares segment with linear way || a way with `highway=*`, `railway=*` or `waterway=*` sharing consecutive nodes with another open way || ||  no  ||
     109||  [[JOSMImage(data/other)]]  || High-/Rail-/Waterway shares segment with other way || a way with `highway=*`, `railway=*` or `waterway=*` sharing consecutive nodes with a closed way or multipolygon || Depending on the mapping style and the tags of the involved area these overlaps are ok or not. It definitively makes selecting the objects and distinguishing between them harder ||  no  ||
     110||  [[JOSMImage(data/other)]]  || Ways share segment || || ||  no  ||
     111||||
     112||||= **Power lines** =|||||| ''Advanced preferences:'' \\ `validator.PowerLines.hilly_compensation` ''(default: `0.2`)'' \\ `validator.PowerLines.hilly_threshold` ''(default: `4.0`)'' ||
     113||  [[JOSMImage(data/warning)]]  || node without power=* || nodes in power lines/minor_lines that do not have a power=tower/pole/portal tag ||  ||  no  ||
     114||  [[JOSMImage(data/warning)]]  || Mixed reference numbering || node ref numbering continuity on power supporting features (pole, tower etc.) along the line || ways are highlighted ||  no  ||
     115||  [[JOSMImage(data/warning)]]  || Reference numbering don't match majority of way's nodes || node ref numbering continuity on power supporting features (pole, tower etc.) along the line || nodes are highlighted ||  no  ||
     116||  [[JOSMImage(data/warning)]]  || Node connects a power line or cable with an object which is not related to the power infrastructure ||  ||  ||  no  ||
     117||  [[JOSMImage(data/warning)]]  || Possibly missing line support node within power line || ways where are unusually long segments without line support feature || when water data is also in the dataset, the intersecting length is discarded, e.g. line over a river ||  no  ||
     118||  [[JOSMImage(data/warning)]]  || Possibly wrong power line type used || ways where the line type is possibly misused || ||  no  ||
    105119||||
    106120||||= **Public Transport Route** =|||||| errors in [osmwiki:Public_Transport#Service_routes public transport route relations]
     
    114128||  [[JOSMImage(data/warning)]]  || Self-intersecting ways || a way crosses itself || Remove the self-crossing, remove overlapping parts or split way || ||
    115129||||
    116 ||||= **Sharp angles** =|||||| sharp angles on roads ||
     130||||= **Sharp angles** =|||||| sharp angles on roads \\ \\ ''Advanced preferences:'' \\ `validator.sharpangles.maxlength` ''(default: `10.0`)'' \\ `validator.sharpangles.maxangle` ''(default: `45.0`)'' \\ `validator.sharpangles.ignorerailway` \\ `validator.sharpangles.ignorehighway` ||
    117131||||
    118132||||= **Similarly named ways** =|||||| ways with similar names that may have been misspelled. ||
     
    138152||  [[JOSMImage(data/warning)]]  || Unclosed ways || way types, which should be closed really are closed || Close unclosed ways ||  no  ||
    139153||||
    140 ||||= **Unconnected highways / natural lands and landuses / power ways / railways / waterways** |||||| a way has an endpoint very near to another way. \\ \\ ''Advanced preferences:'' \\ `validator.UnconnectedWays.node_way_distance` ''(default: `10.0`)'' \\ `validator.UnconnectedWays.way_way_distance` ''(default: `0.0`)'' ||
     154||||= **Unconnected highways / natural lands and landuses / power ways / railways / waterways** |||||| a way has an endpoint very near to another way. \\ \\ ''Advanced preferences:'' \\ `validator.UnconnectedWays.node_way_distance` ''(default: `10.0`)'' \\ `validator.UnconnectedWays.node_way_distance_railway` ''(default: `1.0`)'' \\ `validator.UnconnectedWays.way_way_distance` ''(default: `0.0`)'' ||
    141155||  [[JOSMImage(data/warning)]]  || Way end node near other highway || End point of a way is very near to other ways || Connect the ways or when really unconnected add `noexit=yes` tag to prevent further warnings ||  no  ||
    142156||  [[JOSMImage(data/warning)]]  || Way end node near other way || || ||  no  ||
     
    213227== Advanced Preferences ==
    214228More advanced preferences not described, yet.
    215 * `validator.auto_reload_local_rules` - wether to auto-reload local rules after file changes
    216 * `validator.autozoom` - wether to [wikitr:/Help/Action/ZoomToProblem Zoom to problem], automatically
     229* `validator.auto_reload_local_rules` - whether to auto-reload local rules after file changes
     230* `validator.autozoom` - whether to [wikitr:/Help/Action/ZoomToProblem Zoom to problem], automatically
     231* `validator.check_assert_local_rules` - whether to enable MapCSS assertions for local rules
    217232* `validator.ignorelist` - the ignore list
    218233* `validator.ignorelist.version` - format version of the ignore list