Skip to content

GPS finding and mark interesting POI within table with large GPS points collection

2 messages · Eugeniusz Kałuża, Johannes Hüsing

#
Eugeniusz Ka?u?a <Eugeniusz.Kaluza at polsl.pl> [Fri, May 21, 2010 at 04:47:21PM CEST]:
First of all, you need a concept of "recognize", which means in most
cases "being within the distance of at most ... from POI". If your
field of reference is local, you may want to define the distance
without changing the projection. If your GPX traces span more than,
say, 100 km, you may want to project your data to a different
coordinate system, in which case a specialized package like geoR migt
come handy.
Everything else is a matter of relatively simple algorithms. 
You may want to start with 
coords <- rbind(GPS[, c("Lon", "Lat")], POIdef[, c("Lon", "Lat")])
d <- dist(coords)
which(as.matrix(d) < .1, arr.ind=TRUE)
and proceed from there.