RU:JOSM/Validator
| В процессе перевода +/- |
| Эта страница находится в процессе перевода или помечена для этой цели, поэтому может содержать пропуски, ошибки и непереведённые фрагменты. Исходная статья – JOSM/Validator. Если вы знаете английский, то можете помочь нам, переведя часть оригинальной статьи. Общие сведения о переводе статей на русский язык можно найти здесь. Вы можете закончить перевод |
JOSM Validator - это функционал JOSMа, который проверяет данные на ошибки. Долгое время он был доступен в
качестве плагина (модуля), но теперь он встроен в ядро программы, поэтому устанавливать его отдельно больше нет
необходимости.
Использование
отобразилась в правой части окна программы.
- Выделите данные, которые хотите проверить на ошибки (или снимите выделение, чтобы проверить все открытые объекты).
- Кликните кнопку Проверить внизу панели валидатора.
Таким образом состоится проверка и все неполадки отобразятся в окошке панели валидатора, разделённые на ошибки,
предупреждения и прочее взависимости от тяжести неполадки.
Какие-то ошибки необходимо исправить вручную, а какие-то могут быть исправлены автоматически. Просто выделите ошибку
(ошибки) и нажмите кнопку Исправить для автоматического исправления. Вы также можете выделить группу ошибок - все они будут
исправлены.
Other usage tips:
- В настройках вы можете выбрать на какие виды неполадок валидатор будет проверять данные. По умолчанию установлена
проверка на все виды неполадок.
- In preference settings, in the toolbar panel, you can include a validation icon in the horizontal toolbar at the top of
the window (does the same as the Validate button on the right hand panel)
- The screenshot shows the validator panel undocked, in a separate window. Do this with the little pin icon if you need
more space to see the errors tree.
Validations
These are the validations performed by the validator:
| Validation | Description | Fix | |
|---|---|---|---|
| |
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 |
| |
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. | |
| 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 | ||
| Unconnected coastline: coastline ways do not form closed loops | Checks for coastlines
ways that are not connected to the end of other coastline ways|| | ||
| 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 | ||
| 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 [http://josm.openstreetmap.de/wiki/TaggingPresets
tagging presets] file for checking||NONE | ||
| Empty properties | Checks for properties with empty values | Remove the empty properties | |
| 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 | |
| Overlapping (high)ways | Checks for two (high)ways that share the same nodes | Remove
the double (high)way | |
| Self-intersecting ways | |||
| Similar named ways | Checks for ways with very similar names, possibly a typo | NONE | |
| Unclosed ways | Checks that way types, which should be closed really are closed | NONE | |
| Untagged ways | Checks for untagged ways | NONE | |
| Way end node near other highway | |||
| 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|| | ||
| 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 | ||
| FIXMES | Checks for any property with the word "FIXME" inside | NONE | |
| 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 | ||
| Key 'x' invalid. - ... | |||
| Nodes with the same name | NONE | ||
| Overlapping areas | |||
| Unknown property value | Checks for proper use of tags | Remove or change incorrectly
used tag | |
| Untagged and unconnected nodes | Checks rogue nodes | Delete unused nodes when they have
no further tags | |
| 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 [http://josm.openstreetmap.de/query?
status=assigned&status=needinfo&status=new&status=reopened&component=Plugin+validator&col=id&col=summary&col=component&col=
status&col=owner&col=type&col=priority&order=priority BugTracker of JOSM].