[OSM-dev] Getting a distance to a way

Chris Browet cbro at semperpax.com
Mon Jul 21 13:04:15 BST 2008


2008/7/21 Sven Anders <sven at anders-hamburg.de>:

> Has someone a working algorithm to get the shortest distance from a node to
> a
> way?
>
>
You have a whole bunch of such geometrical operations at
http://svn.openstreetmap.org/applications/editors/merkaartor/Utils/LineF.h

"double distance(const QPointF& P) const" does basic segment to point
distance.

- Chris -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20080721/1c975d5d/attachment.html>


More information about the dev mailing list