[R] Calculating distance between spatial points

Ian Fiske ianfiske at gmail.com
Fri Jun 26 16:05:41 CEST 2009


If your goal is to get the distance between geographic points, you might try
computing the distance along the "great circle arc" and forget about
projection.  Several packages have functions that do this.  See
https://stat.ethz.ch/pipermail/r-help/2007-October/144546.html.

hope that helps,
Ian



Tim Clark wrote:
> 
> 
> Dear List,
> 
> I am trying to determine the speed an animal is traveling on each leg of a
> track.  My data is in longitude and latitude, so I am using the package
> rgdal to convert it into a spatial points data frame and transform it to
> UTM.  I would then like to find the difference between successive
> longitudes and latitudes, find the euclidean distance between points, and
> compute the speed of the animal on each leg.
> 
> [ removed from quote ]
> 
> Aloha,
> 
> Tim
> 
> 
> 
> Tim Clark
> Department of Zoology 
> University of Hawaii
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Calculating-distance-between-spatial-points-tp24212875p24220923.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list