[Openstreetmap] Problem with tags in server
SteveC
steve at asklater.com
Fri Nov 25 20:12:35 GMT 2005
You're going to have to explain more... What the code does exactly and
so on.
The node (276025) was created, then updated with a tag, then deleted a
couple of hourse later. Similarly with the other node.
Two things might help: Tags arn't persistent. If you update a node, you
need to submit its tags too, otherwise it assumes you want to delete the
tags. Also, add a semi-colon on the end of your tag(s). eg: 'name=foo;'
not 'name=foo'
* @ 25/11/05 06:01:55 PM tpe at ida.liu.se wrote:
>
> Can there be a problem in the server with storing tags? I wrote a
> program that creates a node with a tag. Sometimes it works and
> sometimes it does not. The first example below succeded but not the
> second. The second example has set the lon and lat so something
> worked.
>
> phyllis:~/mycvs/osm/osmpedit> perl test
> NEW NODE: 58.408306 15.558601
> DATA: <osm version='0.2'>
> <node lon='15.558601' tags='' lat='58.408306'/>
> </osm>
> URL:http://www.openstreetmap.org/api/0.2/newnode
> DATA: <osm version='0.2'>
> <node lon='15.558601' tags='name=TommyPersson' uid='276025' lat='58.408306'/>
> </osm>
> URL:http://www.openstreetmap.org/api/0.2/node/276025
> UID: 276025
> URL:http://www.openstreetmap.org/api/0.2/node/276025
> NODE: <osm version='0.2'>
> <node lon='15.558601' tags='name=TommyPersson' uid='276025' lat='58.408306'/>
> </osm>
>
> phyllis:~/mycvs/osm/osmpedit> perl test
> NEW NODE: 58.408306 15.558601
> DATA: <osm version='0.2'>
> <node lon='15.558601' tags='' lat='58.408306'/>
> </osm>
> URL:http://www.openstreetmap.org/api/0.2/newnode
> DATA: <osm version='0.2'>
> <node lon='15.558601' tags='name=TommyPersson' uid='276026' lat='58.408306'/>
> </osm>
> URL:http://www.openstreetmap.org/api/0.2/node/276026
> UID: 276026
> URL:http://www.openstreetmap.org/api/0.2/node/276026
> NODE: <osm version='0.2'>
> <node lon='15.558601' tags='' uid='276026' lat='58.408306'/>
> </osm>
>
> Waiting....
>
> phyllis:~/mycvs/osm/osmpedit> perl test --getnode 276026
> URL:http://www.openstreetmap.org/api/0.2/node/276026
> NODE: <osm version='0.2'>
> <node lon='15.558601' tags='' uid='276026' lat='58.408306'/>
> </osm>
>
>
> ----------------
> /Tommy
>
> _______________________________________________
> Openstreetmap mailing list
> Openstreetmap at vr.ucl.ac.uk
> http://bat.vr.ucl.ac.uk/cgi-bin/mailman/listinfo/openstreetmap
have fun,
SteveC steve at asklater.com http://www.asklater.com/steve/
More information about the talk
mailing list