[osmosis-dev] API 0.6 and unique keys
Frederik Ramm
frederik at remote.org
Sun Feb 1 11:00:56 GMT 2009
Hi,
Brett Henderson wrote:
>> Any chance we can use this to replace the Tag-class with
>> a simple read-only Hashtable in the v0_6.Entity -class?
[...]
I was just importing 0.5 data into a 0.6 MySQL table via --migrate and
painfully learned that each duplicate key on input will abort the whole
process.
The (hopefully, depending on ML settings) attached patch modifies the
--migrate task and associated test so that duplicate keys get silently
dropped. I'm happy to commit it myself if that's ok but it seemed to me
that ist was customary for Osmosis stuff to be discussed and then
applied by Brett.
One could probably also have created a new --filter-duplicate-tags task
but since 0.5 does allow duplicates and 0.6 does not, it seems to be a
natural component of migration.
Bye
Frederik
--
Frederik Ramm ## eMail frederik at remote.org ## N49°00'09" E008°23'33"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: migrate.diff
Type: text/x-patch
Size: 2897 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20090201/4a2ad772/attachment.bin>
More information about the osmosis-dev
mailing list