[OSM-dev] TIGER import.rb

Andy Robinson Andy_J_Robinson at blueyonder.co.uk
Wed Jun 20 08:37:22 BST 2007

Tom Hughes wrote:
>Sent: 20 June 2007 8:29 AM
>To: dev at openstreetmap.org
>Subject: Re: [OSM-dev] TIGER import.rb
>In message <1182319369.14088.37.camel at localhost>
>        Dave Hansen <dave at sr71.net> wrote:
>> It turns out that JOSM will take nodes that have the exact same
>> coordinates and negative ids, and combine them into a single node.  I've
>> managed to get the data produced to have two distinct nodes at the same
>> location for the example you provided, with the power line crossing the
>> road.  However, I've had to assign positive ids to the OSM objects.
>> Is there any way to get JOSM to stop this behavior?  I guess we could
>> detect when we have two nodes in the same place and just add some small,
>> random, floating point value to the coordinates.
>> ids <= 0 are interpreted by the server to tell it to fill in the id when
>> it is inserted into the database, right?
>No. The server ignores ID values on a create - creation is indicated
>by doing a put to api/0.4/node/create rather than api/0.4/node/<id> which
>would indicate an update.

Thanks for that clarification Tom. I learn something new every day :-)



>The negative ID is I believe used internally by JOSM as an indication
>that the node doesn't have an ID yet and needs to be created when the
>upload is done.
>Tom Hughes (tom at compton.nu)
>dev mailing list
>dev at openstreetmap.org

More information about the dev mailing list