[josm-dev] Automatic tag correction
Robin Rattay
rotora at gmx.net
Sun Jul 6 18:39:03 BST 2008
Hi,
I've been playing around with JOSM for a bit as a pratice to improve my
Java skills.
One thing I noticed on the OSM lists and wiki, is the problem that some
tagging proposals aren't accepted because the suggested tags are
dependend on the direction of the way, for example tagging of features
that are different on the "left" and "right" side of the way, which
easily can lead to corrupted/wrong data if the way is reversed without
adjusting them.
That's why I've attemped implement a "tag corrector" feature, that
suggests corrections to tags when a way is reversed. Currently it covers
"oneway" and tags that start with "left:" or "right:" or end with
":left" and ":right", for example as used on borders.
I've set it up in a way that allows to use the functionalty elsewhere,
for example if there were a tag that where problematic when splitting a way.
I've attached a patch, with the hope that someone could give their
opinion on the idea in general and my implementation in particular.
A next step would be to have corrections of relations in a simular manner.
Robin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: TagCorrector.patch
URL: <http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20080706/e1f18406/attachment.ksh>
More information about the josm-dev
mailing list