[josm-dev] Unclosed ways
Dirk Stöcker
openstreetmap at dstoecker.de
Tue Jul 15 11:01:10 BST 2008
On Thu, 10 Jul 2008, Frederik Ramm wrote:
> If I were you I'd write a simple script to parse a planet file and
> dump the tags of every way where the last node equals the first.
> Straighforward to write, doesn't even require memory (node id
> equality is sufficient, node position not required), just a few hours
> of cpu time. That will give you a very good idea of how people tag
> areas; of yourse you'll have some circular roads, roundabouts etc. as
> well but it should be obvious to the human being which are meant so
> be areas.
Results are (europe):
closed unclosed
43524 : 1962 : amenity
16873 : 867 : area=yes
127056 : 740 : building
117885 : 3931 : landuse
32448 : 716 : leisure
141101 : 3390 : natural
607 : 12 : shop
6117 : 181 : sport
628 : 69 : tourism
739 : 158 : waterway=riverbank
--> These I added to the checks. The unclosed numbers are so little
compared to the closed ones, that I think these are very likely errors.
36769 : 16527 : junction=roundabout
--> Here probably the check needs to be disabled. User input required for
decision.
74354 : 35558 : natural=coastline
--> These should be detected by the start/end distance check.
Validator plugin changed accordingly :-)
Ciao
--
http://www.dstoecker.eu/ (PGP key available)
More information about the josm-dev
mailing list