[R-sig-Geo] Finding distances between points and contour lines

rhodes.uor r.rhodes at pgr.reading.ac.uk
Thu Jul 10 23:23:02 CEST 2014


Hi all,

I have two sets of data; a dataframe of lon/lat pairs which correspond to
storm track locations, and a gridded rainfall dataset. I've taken contours
of the rainfall dataset at a single level and saved them as a
SpatialLinesDataFrame. I'm attempting to determine the distance between each
of the storm track coordinates and each of the contours. Below is an example
of what I have so far, but I can't figure out the next step:



For each entry in track.pts I want to return a distance to the nearest point
of each entry in contourSL (or in contours, for that matter). Can anyone
recommend a way to do this?
Thanks very much!



--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Finding-distances-between-points-and-contour-lines-tp7586733.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list