2009/1/28 D Tucny <[email protected]> > 2009/1/28 <[email protected]> > >> On Wed, 28 Jan 2009 00:07:20 +0000, Simon Ward <[email protected]> wrote: >> > [Moved to dev; followups to dev] >> > >> > On Tue, Jan 27, 2009 at 10:58:25PM +0000, Ævar Arnfjörð Bjarmason >> wrote: >> >> > I think multiple keys with the same name should be allowed for a >> >> > node/way/relation. AFAIK it's only the editors that don't currently >> >> > let >> >> > you do this. >> >> >> >> Yes, the API and data format supports it, but only for another 2 >> >> months or so until we switch to 0.6 where it won't be allowed. >> >> I cannot find any such restriction in >> http://wiki.openstreetmap.org/wiki/0.6 . >> >> Could someone please clarify this? >> I implemented no changes to attribute-handling >> for the 0.6-support in my software and need >> to know if I have to explicitely disallow this >> to happen, write test-cases,... . >> >> > It's in there, under Related Database Improvements... > > - It is planned to create an unique index on the combination of object > id and tag key, so that it will no longer be possible to have multiple > identically named tags on the same object. This was possible until now but > rarely used. The impact of this is being analysed. > - The "relations" tables will receive an additional sequence_number > column used for sorting the elements. Having the same member in the same > relation twice will be allowed. The sequence_number column will not be > exposed anywhere, it will just be used to store the sequence in which > relation members where uploaded and to return them in the same sequence. > > And to reply to myself after noticing the subject... It's not one value per key as such that's being mentioned here, but, only single unique keys... i.e. you can't have multiple tags with the same key... An attempt to write for example, two name tags on an object in 0.6 should result in an error response from the API...
d
_______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/dev

