This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Nodes with twice an attribute

0

Hello,

I noticed that some nodes have the name attribute twice (with varying case). For exemple the node 2624350260 has attribute 'name' and attribute 'Name'.

This brings two questions :

  • Are attribute names case sensitive ?
  • Can a node have the same attribute more than once ?

Thanks

asked 13 Sep '16, 10:39

doubret's gravatar image

doubret
31225
accept rate: 0%

edited 13 Sep '16, 10:40


One Answer:

3

Tags are case-sensitive. This means that name and Name are not the same. Also, each tag can only exist once for each element. So each element can only have a single name tag.

Keys should be kept in lowercase. Thus Name will not be interpreted by any popular tool, i.e. it won't get rendered, it won't be used for searching and so on. As far as I know there is not a single popular key that contains any uppercase latter, except for "FIXME". Most of the tags starting with an uppercase letter are just a mistake, either made by a human being while editing tags by hand or caused by some badly written (import) tool. Yet they might contain valuable information, so only remove/fix them if you really know what you are doing. Ideally try to contact the author.

answered 13 Sep '16, 10:51

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

edited 13 Sep '16, 10:53

2

Thank you. I will not remove anything, don't worry. I'll try to contact the authors.

(13 Sep '16, 11:05) doubret

Source code available on GitHub .