ID:JOSM/Validator
JOSM Validator merupakan fungsi utama dari JOSM yang mengecek dan memperbaiki data OpenStreetMap yang salah.
Penggunaan
- Klik pada lambang checklist toolbar disebelah kiri untuk memunculkan panel validasi disebelah kanan.
- Pilih data yang akan anda validasi (atau Anda dapat tidak memilih objek apapun untuk mengecek semua data yang ada)
- Klik tombol Validasi pada bagian bawah dari panel validasi
Tombol ini akan mengecek data dan memunculkan semua kesalahan, dikategorikan sebagai Kesalaha (errors), Peringatan (warnings), dan Lainnya, tergantung dari berapa banyak kesalahan yang muncul.
Beberapa kesalahan harus diperbaiki secara manual, tetapi terdapat kesalahan yang dapat diperbaikin secara otomatis. Anda hanya perlu mengklik pada daftar Kesalahan (Error) dan klik tombol Fix untuk memperbaiki secara otomatis. Anda juga dapat mengklik beberapa daftar Kesalahan (error) dan memperbaikinya langsung.
Tips penting lainnya:
- Didalam pengaturan, anda bisa mengaktifkan beberapa daftar pengecekan yang Anda butuhkan. Secara pengaturan awal, semua pengecekan dalam keadaan aktif.
- Didalam pengaturan, pada panel toolbar, anda dapat memasukkan logo validasi pada toolbar bagian atas (hal yang sama berlaku pada tombol Validate di panel bagian sebelah kanan)
- Gambar yang ada memperlihatkan posisi panel validasi yang tidak terkunci dibagian kanan. Lakukan hal ini apabila Anda ingin memperbesar daftar kesalahan yang dihasilkan.
Validations
This list is outdated. |
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 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 | A way intersects itself, possibly sharing same nodes | Try to delete overlapping segments, possibly using cut(p) and unglue(g) ways, and middle mouse button to select from overlapping lines | |
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 | Ways end within a few meters, possibly accidentally unconnected ways | If required connect the ways (join ways or merge nodes) | |
Style for outer way mismatches | Within a multipolygon relation, |
||
Style for inner way equals multipolygon | Within a multipolygon relation the JOSM rendering style of the outer way is the same as the result style of the inner way (all of these depend on the current JOSM setings and user view preferences) | Check if the tags are the same and remove tags from inner way, otherwise NONE | |
Multipolygon is not closed | One possible problem is that there is a multipolygon relation where the members do not form a loop. The other possibility is that there are more than one objects (like a relation and a few nodes) listed together which means what? | Try to order the nodes in the relation ("A->Z") and see where the gaps are, and connect them. Hidden elements may trick you. Prevent polygon from intersecting itself, and remove duplicated nodes or ways. If everything looks allright then it's probably due to dark matter, leave it alone or the Universe will be destroyed. | |
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 | Multiple nodes use the same name, possibly duplicates | NONE | |
Overlapping areas | Areas overlap | ||
Unknown property value | Checks for proper use of tags (only those known to JOSM) | Remove or change incorrectly used tag | |
Untagged and unconnected nodes | Checks rogue nodes (possible remnants of redaction bot) | Delete unused nodes when they have no further tags (or try to reconstruct redacted objects) | |
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 |
Source Code
The Validator's source code can be viewed at http://josm.openstreetmap.de/browser/josm/trunk/src/org/openstreetmap/josm/data/validation/tests and http://josm.openstreetmap.de/browser/josm/trunk/data/validator
Wish list
Wishes for new features or bug reports should be reported at the bug tracker of JOSM.
See also
- The JOSM wiki: https://josm.openstreetmap.de/wiki/Help/Dialog/Validator