distance between a point and a geographical feature
    США 
    xkarel at MAIL.RU
       
    Fri Sep 23 07:09:25 PDT 2005
    
    
  
Miguel Gonçalves wrote:
> Hello,
>
> I am using MapServer 4.6 with shapefiles.
> I want to know if exists a way of calculating the distance between a
> given point and a geographical feature of my map.
> In my case, I have the lines layer "roads" in my map object.
> Havin a point (x,y) I want to know the distance to a particular road.
> Is there a way of doing it with MapServer?
> Thanks.
> Best regards.
>
>
> Miguel 
Hi Miguel!
Maybe you need this function:
 double distanceToShape(shapeObj shape)
        Calculates the minimum distance between a point and a shape  
from Pointobj
Karel
 
    
    
More information about the MapServer-users
mailing list