[OSM-dev] Objects with the same key multiple times?
Jon Burgess
jburgess777 at googlemail.com
Fri Sep 28 23:38:49 BST 2007
I'm currently running the planetdiff process to derive the differences
between the 2007-09-19 and 2007-09-28 planet dumps. The old dump used
the Ruby planet.rb script, the new one used my new C planet dumper. The
results show an interesting difference:
<delete>
<node id="44210213" lat="51.8804600" lon="5.5295900" timestamp="2007-09-07T04:54:56+01:00">
<tag k="name" v="N322" />
<tag k="AND_nodes" v="520152" />
<tag k="AND_nosr_p" v="10015820" />
<tag k="amenity" v="fuel" />
<tag k="source" v="AND" />
</node>
</delete>
<add>
<node id="44210213" lat="51.8804600" lon="5.5295900" timestamp="2007-09-07T04:54:56+01:00">
<tag k="AND_nodes" v="520152" />
<tag k="AND_nosr_p" v="10015820" />
<tag k="amenity" v="parking" />
<tag k="amenity" v="fuel" />
<tag k="name" v="N322" />
<tag k="source" v="AND" />
</node>
</add>
This object really does have two tags with amenity= in the database:
mysql> select tags from current_nodes where id=44210213;
+----------------------------------------------------------------------------------------+
| tags |
+----------------------------------------------------------------------------------------+
| AND_nodes=520152;AND_nosr_p=10015820;amenity=parking;amenity=fuel;name=N322;source=AND |
+----------------------------------------------------------------------------------------+
Do we want to officially support objects with the same key multiple
times or do we want to prevent it?
Jon
More information about the dev
mailing list