[[TranslatedPages]] [[PageOutline(2-10,Table of Contents)]] = Validator window = [[Image(source:trunk/images/dialogs/validator.png)]] ''Keyboard shortcut:'' **{{{Alt+Shift+V}}}** — one of the [Help/ToggleDialogs#Toactivateawindow JOSM windows] The **JOSM Validator** is a feature of JOSM which checks and fixes invalid data. == Usage == * Select the data you want to validate (or deselect to validate everything) * Click on the ''Validate'' button [[Image(source:/trunk/images/dialogs/validator.png,15)]] at the bottom of the validator panel or press {{{Shift+V}}} to run the validation process: * if there are no [wiki:/Help/Dialog/SelectionList currently selected objects], then it it checks all objects in [wiki:/Help/Dialog/LayerList#LayerButtons the current layer] * if there are [wiki:/Help/Dialog/SelectionList selected objects], then it checks only selected objects * While some of the errors must be manually fixed, most of them can be automatically fixed. Just select the error or errors and click the ''Fix'' button [[Image(source:/trunk/images/dialogs/fix.png,15)]] to automatically fix them. You can select multiple errors, and all of them will be fixed. * Use right click menu to "Zoom to problem" * Multiple objects with the same symptom are [wiki:Help/Validator/MapCSSTagChecker#Grouping grouped together] The validator is an automatic test tool. It can show you possible errors in the data, but it may also tell you errors, which aren't real. [[Image(validator_using.gif)]] === Don't fix errors when you aren't sure something is really wrong === Validator will check the data and display all errors, categorized as ''errors'' [[Image(source:/trunk/images/data/error.png,15)]], ''warnings'' [[Image(source:/trunk/images/data/warning.png,15)]], and ''other'' [[Image(source:/trunk/images/data/other.png,15)]], depending on the severity of the error. By default only warnings of level error and warning will be displayed. Warnings of level ''other'' produce a lot more validation errors for valid data and thus need more care from the user. [[Image(validator2.png)]] This window allows to start a verification process of the data. You have five buttons in this: * [[Image(source:/trunk/images/dialogs/select.png)]] Select – Select the objects of the selected error. * [[Image(source:/trunk/images/dialogs/search.png)]] Lookup – Looks up the selected primitives in the error list * [[Image(source:/trunk/images/dialogs/validator.png)]] Validation – Start validation process for current selection or all objects (when nothing selected). * [[Image(source:/trunk/images/dialogs/fix.png)]] Fix – Fix an error (only when automatically fixable). * [[Image(source:/trunk/images/dialogs/delete.png)]] Ignore – Ignore an error or a group of errors in future tests. When a validation process has been finished all results will appear in the list. Also a new validation layer is added, which shows you where problem cases lie in the map. == Validation on upload == When not disabled the validation process is also started on each upload to the server. For uploads only the modified elements are tested. If you abort the upload, The validator panel opens, if not already open, and the validation results are copied in the validation window, so they can be checked and fixed. == Validation layer == If not disabled through preferences a validator run will open a validator layer. == Validation result can depend on the downloaded area == Some validator tests include a check whether the tested object is in or out of the downloaded area to avoid false positives. The not downloaded area is displayed with a yellow hatching. Downloaded ways can end in the not downloaded area. If e.g. a waterway ends in the downloaded area then the validator warns that it should be connected to another waterway. If the waterway ends out of the downloaded area then the validator will not warn because it doesn't know if there is really an error because the possible connected waterway was not downloaded. The validator will also not warn if there was never an area download in this data layer (there is no yellow hatching in this layer). Such a layer exists when you e.g. create a [wiki:Help/Action/NewLayer new empty layer] or when you download single objects via [Action/Download#DownloadfromOverpassAPI Overpass]. In both cases the data is assumed as incomplete and handled like out of the downloaded area to avoid false positives and a lot unnecessary warnings. Some validator rules are limited to defined areas (e.g. countries), see [wiki:Help/Styles/MapCSSImplementation#Territoryselector Territoryselectors]. == Advanced Preferences == There are some advanced settings which can be changed in the [[Help/Preferences/Advanced|advanced preference]]: * `osm-primitives.showid`: set to `true`/`false` to display/hide the osm id of the object in the list * `osm-primitives.showcoor`: set to `true`/`false` to display/hide the coordinates of the object in the list == See also == * [wiki:Rules external Validator rules] * [wiki:/Help/Preferences/Validator Validator preferences] and description of validator tests * [wiki:/Help/Validator/MapCSSTagChecker MapCSSTagChecker] - about the syntax of validator checks, which are based on MapCSS * The plugin [https://wiki.openstreetmap.org/wiki/JOSM/Plugins/PT_Assistant PT Assistant], which adds validator rules ---- Back to [wiki:/Help/ToggleDialogs Windows][[BR]] Back to [wiki:/Help Main Help]