Greetings,
I'm new to MapInfo/MapBasic and this list server. I'm looking for a
function that will return the distance from a given point to the nearest
object of a certain type. For example, from point (x, y) to the nearest
house (point object), road or river (linear object) or nearest forrest
(area object). All of the functions I've come across give the distance
between two known points. I need to find the closest object first (e.g.,
which house or river is closest -- hard to do) and then determine the
distance (easy to do).
Is there some way to avoid an exhaustive search? I need to make tens of
thousands of these calculations, each one selecting the nearest of up to
hundreds of similar objects. In addition, each linear and area object are
defined by two or more points. I assume I'll need to determine which point
within each of these objects is closest to the known (x, y) point.
Thanks for any help you can provide and Happy New Year!
[EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]