A brief guided tour of the highest tag counts and version numbers in Belgium
Posted by M!dgard on 10 December 2024 in English.As a friend and I were adding the 57th tag to a climbing gym in Belgium, I wondered what the element with the highest tag count is. I couldn’t find such stats (which may be a good thing), so I downloaded belgium-latest.osm.pbf from Geofabrik and wrote a simple Python script that uses Pyosmium to do some counting for me.
Without further ado: the Belgian record for highest tag count is… the relation for Belgium itself actually, which currently has 491 tags. The non-relation with the highest tag count is, boringly, the node for Belgium, with 288 tags. Next up are Brussels (156 tags), the Council of the European Union (79 tags), one particular section of the River Meuse that somehow got its name mapped in 57 different languages (65 tags) and the Irish embassy (also 65 tags). Next up is the first element that has a lot of tags not because it’s just flooded with languages! This maritime beacon north of Antwerp in the River Scheldt has a respectable 63 tags to describe all its lights. Our climbing gym is not far off from this one, and has a lot more diverse information in its tags I’d say.
I noticed that the relation for Belgium also has a high version number, it’s at its 1043th revision. That prompted me to take a look at version numbers too. But 1043 isn’t even close to our record, which goes to the superroute relation for the E40 (version 3141). Granted, that’s international. The version record for a purely Belgian object is the hiking route GR 126 (version 1103) from Brussels to Membre-sur-Semois. Just like with tag counts, I find it more interesting to look at non-relations here, though. There the honour for highest version goes to one of the outer rings of a farmland multipolygon south of Mons, which is at version 277. Funnily enough, in contrast with its senior version number, it almost has no tags to speak of, only a source!
And should I even say… If you’re now inclined to go add tags or bump versions just for the sake of it, don’t. If I ever do a follow up on these stats and see that you’ve done this anyway, I will flat out ignore your object in future reports (yes!) and generally be very cross with you.
Discussion
Comment from joost schouppe on 11 December 2024 at 15:36
Quite the contrary, I feel motivated to push back that farmland polygon back to the French polygon where it belongs :) That was done in Flanders when the landuse was remapped in more detail, but it turns out it didn’t happen in Wallonia
Comment from Strubbl on 11 December 2024 at 19:10
The multiple panoramax:* tags at the climbing gym, shouldn’t they all be values of the panoramax tag and divided by a semi-colon?
Comment from M!dgard on 11 December 2024 at 22:33
The number suffix scheme is also established and documented on the wiki. Values (and keys) in OSM cannot be longer than 255 Unicode characters. While in this case concatenating the values gives only 147 characters, an object with 7 images or more wouldn’t be able to fit in a single tag’s value. The authors of the editor software with which the images were added, decided to go with the number-suffix scheme.
Comment from Strubbl on 12 December 2024 at 06:03
Thank you for the pointer.
Comment from M!dgard on 24 December 2024 at 22:24
Update: the climbing gym now has 69 tags (nice) and so has third place in the category of “nodes/ways in Belgium with the most tags”.