[OSM-talk] keys with multiple values

colliar colliar4ever at aol.com
Mon Sep 15 17:29:45 UTC 2014


Am 15.09.2014 19:08, schrieb Norbert Wenzel:> On 09/15/2014 06:45 PM,
moltonel 3x Combo wrote:
>> The problem with semicolon-separated values is that you can never be
>> sure wether you're looking at multiple values, or one value that
>> happens to contain a semicolon. That's part of the reason why other
>> tags sometimes use a different separator (a coma, a pipe...). It's
>> messy.

Actually, I met a lot of special characters in name but no semi-colon,
so far.

> As I've mainly thought about name tags (as you may have guessed from my
> examples) I still think it's safe to assume there is no name containing
> a semicolon (except Little Bobby Tables), but nevertheless you have a
> very valid point here. Of course we could define some escape character
> like the famous backslash but ... I don't even want to write that stupid
> idea down.

Do not think that is stupid but one solution for a rare situation. If it
is properly described on the wiki, there should be no problem.

>> Supporting multiple values natively in the osm data model would
>> provide a clean and efficient solution, but updating all the tools to
>> support it would be a huge undertaking.
>
> That would be the best solution and should at least be considered for a
> next API version, whenever that seems necessary.

The API already supports it but other software might not.

> While I was reading
> your mail I just remembered I tried to put multiple values under the
> same key when I started with OSM and I was surprised the editors
> wouldn't let me do this. So this might also be the most intuitive way to
> add multiple values. Some years of OSM made me forget about that. ;-)

Once more, depending on the software (editor)

cu colliar

-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 259 bytes
Beschreibung: OpenPGP digital signature
URL         : <http://lists.openstreetmap.org/pipermail/talk/attachments/20140915/d49485e7/attachment.sig>


More information about the talk mailing list