[josm-dev] Plugin for Karlsruhe schema
Werner Horsch
werner.horsch at gmail.com
Tue Oct 25 04:25:21 BST 2011
I was thinking in how to aid the entry of numbering to osm, and it shouldnt
be very difficult.
The logic should be something like this for addr interpolation
1) Set the first node with a number, select the associated street
2) Enter the step numbers to jump form one square to the next (every street
intersection) e.g 100.
first square 1 - 100, 2nd 200, 3d 300, etc
3) calculate distance from the first addr-node to the first intersection
node
4) start adding nodes keeping this distance to the next intersection on both
sides of the street
5) add the way with interpolation
6) keep doing the same until the street ends
7) repeat the same for the other side of the street
I was going to code this for an offline tool, but I realized the drawbacks
of not seeing what the tool is doing with several exceptions that may appear
like
-a crossing street is missing
-the next crossing is a service way (eg entrance to ...)
-the street crosses a huge place with no numbers (Av. 9 de Julio, Buenos
Aires)
-etc
So the only way to be aware of such cases is to see what the tool does on
execution time, that for a plugin is the right solution. My problem is that
I have never written one. Can someone give me some hints on this, pointing
to an easy to read plugin to take it as example or perhaps there is some
guide/tutorial on this or someone with more plugin experience wants to be a
coding partner on this project
Any clues are welcome
More information about the josm-dev
mailing list