[OpenMap Users] FindClosest problem?

From: Bart Jourquin <bart.jourquin@fucam.ac.be>
Date: Wed Nov 27 2002 - 05:19:14 EST

Hi all,

Reading the docs, I thought that OMGraphicList.FindClosest(x, y, limit)
returned the closest graphic from a given point. A closer look into the
sources shows that the actual distance is computed in
BasicGeometry.distanceToEdge. There, one starts with the following test :

if (shape.contains(x,y)) ....

In other words, a valid distance is only returned when (x,y) are on an
existant object, and not when (x,y) are within a given limit distance.

Is this a bug or did I misunderstood the functionality?

-- 
Prof Dr Bart Jourquin
F.U.Ca.M. - G.T.M.
Chaussée de Binche, 151a
B7000 Belgium
Tel. : +32 65 323293
Fax. : +32 65 315691
http://message.fucam.ac.be/~jourquin
--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Nov 27 05:22:29 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT