JOSM/Validator

From OpenStreetMap Wiki
Jump to: navigation, search
Help
Available languages
English 日本語 Русский
Validator panel in action, showing various problems

The JOSM Validator is a feature of JOSM which checks and fixes invalid data. For a long time it was available as a plugin, but is now a core feature of the software. There is no longer any need to install these features as a plugin.

Usage

This will check the data and display all errors, categorized as errors, warnings, and other, depending on the severity of the error.

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 to automatically fix them. You can select multiple errors, and all of them will be fixed.

Other usage tips:

Validations

These are the validations performed by the validator:

Validation Description Fix
JOSM-validator-error.png Duplicated nodes Checks that there are no nodes in the very same location Merge the nodes into only one, adding the properties from all nodes to the merged one
JOSM-validator-error.png Duplicated way nodes Checks that ways contain no loop edges (i.e., a single step from a node to itself) Split the way, and delete the way consisting of the loop edge.
JOSM-validator-error.png Reversed coastline: land not on left side Checks for coastlines that are not counter-clockwise or that are otherwise misplaced (coastline misused as inland lake) Reverse coastline
JOSM-validator-error.png Unconnected coastline: coastline ways do not form closed loops Checks for coastlines ways that are not connected to the end of other coastline ways
JOSM-validator-error.png Unordered coastline: coastline ways are not connected start-to-end Checks for coastline ways of which either the start is not connected to the end of another coastline or the end is not connected to the start of another coastline Reverse coastline
JOSM-validator-error.png Incomplete ways Checks for ways with zero or only one node Removes the way
Check property keys Checks misspelled property keys. See the User:JLS/speller page for information about misspelled property keys Replace wrong key with right one
Check property values Checks misspelled property values. Uses the tagging presets file for checking NONE
Empty properties Checks for properties with empty values Remove the empty properties
JOSM-validator-warning.png Crossing ways Checks for ways (with highway/railway/waterway tags) that crosses in same layer with no crossing node Add appropriate layer (and possibly bridge or tunnel)
Unordered ways Checks that all segments in a way are properly ordered Reorder the way
JOSM-validator-warning.png Overlapping (high)ways Checks for two (high)ways that share the same nodes Remove the double (high)way
JOSM-validator-warning.png Self-intersecting ways
JOSM-validator-warning.png Similar named ways Checks for ways with very similar names, possibly a typo NONE
JOSM-validator-warning.png Unclosed ways Checks that way types, which should be closed really are closed NONE
JOSM-validator-warning.png Untagged ways Checks for untagged ways NONE
JOSM-validator-warning.png Way end node near other highway
JOSM-validator-warning.png Style for outer way mismatches Within a multipolygon relation, one of the tags of the relation and the outer ways is shared but with different values
JOSM-validator-warning.png Style for inner way equals multipolygon Within a multipolygon relation, one of the tags of the relation and the outer ways is shared and has the same value Remove tag from inner way
JOSM-validator-info.png FIXMES Checks for any property with the word "FIXME" inside NONE
JOSM-validator-info.png Highway without a reference Checks if there is a ref tag for highways that are tagged tertiary. Not always required, see for instance NL:Map_Features#Wegen Add ref property or ignore
JOSM-validator-info.png Key 'x' invalid. - ...
JOSM-validator-info.png Nodes with the same name NONE
JOSM-validator-info.png Overlapping areas
JOSM-validator-info.png Unknown property value Checks for proper use of tags Remove or change incorrectly used tag
JOSM-validator-info.png Untagged and unconnected nodes Checks rogue nodes Delete unused nodes when they have no further tags
JOSM-validator-info.png No style in multipolygon relation The multipolygon relation is missing a tag describing what it is/represents For a building, add building=yes to the relation etc. See also Relation:multipolygon

Wish list

Wishes for new features or bug reports should be reported at the BugTracker of JOSM.

Personal tools
Namespaces
Variants
Actions
site
Toolbox