[josm-dev] function to find nodes next to a way
Josh Doe
josh at joshdoe.com
Wed Feb 20 05:25:20 GMT 2013
On Tuesday, February 19, 2013, Jo wrote:
>
> Then I still have to figure out a way to get a list of candidate nodes to
> test with. That part can be done with a search in a bbox.
> But my main problem is the list of nodes which form the rectangle polygon.
> The distance from the way should be configurable and it would be nice if it
> could 'overshoot' the line by a few meters, for the situation where the
> road bends to the left and the bus stop happens to be on the outside corner
> to the right.
>
If this is for a plugin, consider depending on the JTS plugin, then you can
use functions like buffering and intersections. Of course the downside is
you have to convert to JTS geometries, but see the conflate plugin for one
way to do it.
Josh
More information about the josm-dev
mailing list