[OSM-talk] Several map features at the same place

Martijn van Oosterhout kleptog at gmail.com
Wed Sep 26 18:47:05 BST 2007


On 9/26/07, Alex Mauer <hawke at hawkesnest.net> wrote:
> Tom Hughes wrote:
> > No, no, no. Semicolons are the one thing you must never, ever put in a
> > tag or a tag value, at least for nodes and segments.
> >
> > The reason is that the database uses them to separate tags so you will
> > wind up getting rubbish back if you do it.
>
> That's .. horrible.  Why only for nodes and segments?  How /should/ it
> be done then?  I take it there is no way for it to work, at least for
> nodes and segments (it works fine for ways...)

Because the DB stores tags for those as semicolon seperated with no
provision for escaping. I'm hoping it will be fixed during the 0.5
upgrade. The reason it works for ways is because they are stored in a
seperate table.

The best way would be if clients supported multiple key/value pairs
with the same key, but, well, they don't...

Have a nice day,
-- 
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/




More information about the talk mailing list