[Imports] [Imports-us] New Orleans: importing buildings and addresses
osmned at gmail.com
Thu Oct 30 21:21:24 UTC 2014
I don't have any programming skills, but I tested the plugin after Gertjan
programmed it: an example of this splitting of 'nodes on top of each other'
can be seen in the Vermeertoren in Delft:
(opening it in JOSM shows all nodes)
In the Dutch import we wanted to keep all address points within the
building and this method worked quite well. Though aligning them parallel
to the nearest street with the same name might also work
2014-10-30 21:47 GMT+01:00 Eric Ladner <eric.ladner at gmail.com>:
> On Wed, Oct 29, 2014 at 5:29 AM, Gertjan Idema <g.idema at zonnet.nl> wrote:
>> The principle dividing up multiple addresses on the same location within
>> the building is quite simple.
>> If there are multiple addresses on one location within a building I do
>> the following.
>> 1. Sort the addresses by postcode, street, house number.
>> 2. Determine the angle of the line pointing from the address location to
>> the center of the building.
>> 3. From the angle and the desired distance between the address nodes,
>> calculate a delta x an a delta y. Either or both may be negative.
>> 4. Iterate over the address nodes and add (i * delta x) to the x
>> coordinate an (i * delta y) to the y coordinate.
>> If the address location is at the center of the building, I set the angle
>> to 0.
> I'm having problems visualizing that in my head... Picture?
> If it's doing what I think it's doing, whouldn't it make more sense to
> align the address nodes parallel to the nearest street with the same name?
> Eric Ladner
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Imports