The shortest distance between a point and a line is the length of
a line originating at the point and intersecting the line
perpendicularly (not necessaerily the midpoint). You also have to
test the line's endpoints if a perpendicular intersection cannot
be drawn from the point to a line segment.
- Bill Thoen
"V. VESTRI" wrote:
>
> Hello,
>
> Can you tell me how to calculate the minimum distance between one point
> and few lines or polylines with MapBasic ?
>
> It's the last point of my developpement and i don't have idea how i can
> do that.
> My MapBasic application is simple :
> - it create circle, using coordinates in a table
> - user define the radius
> - it select all line or polyline in the circle
> - it calculate the minimum distance between the circle centroid and this
> line or polyline
>
> I'm sorry for this very bad english ...
>
> Thanks a lot,
>
> V�ronique VESTRI
> Ing�nieur S.I.G.
> [EMAIL PROTECTED]
>
> ASCOPARG
> Surveillance de la qualit� de l'air
> dans la r�gion grenobloise
> FRANCE
>
> ----------------------------------------------------------------------
> To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
> "unsubscribe MAPINFO-L" in the message body, or contact [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]