[Openstreetmap-dev] new XML schema discussion moved
Immanuel Scholz
immanuel.scholz at gmx.de
Tue Oct 4 09:34:02 BST 2005
> * @ 03/10/05 01:12:36 PM Nick.Whitelegg at solent.ac.uk wrote:
>> >Before I think of implementing it, does anyone have severe objections
>> >to this?
>>
>> No real objections from me. Would you still implement the basic GPX
>> key/value extensions?
>
> Will have to see how exactly they're represented. I must say I lean
> toward a simple string.
Do it as string. You can change it if you run into problems later.
My suggestion:
- String is key=value;key2=value2;key3=value3 and so on.
- Semicolons in keys or value are replaced by '%3B' before storing and
replaced back when reading. (from URL-encoding)
- ID's are NOT stored in the properties, since you want a fast access to
them. However, in GPX, they have to be transferred in <extensions>
sometimes.
- before sending in GPX, the string is translated into key/value pairs
within the <extension>. Example: <osm:property key="key" value="value" />
- Make it bigger than 256 chars! ;-)
Ciao, Imi.
More information about the dev
mailing list