Raphael Saldanha saldanha.plangeo at gmail.com<mailto:saldanha.plangeo at gmail.com> writes:
> How can I compute a distance matrix of points (citys) based on a highway
> base map?
The 'spatstat' package has functionality for analysing point patterns on a network of lines.
The function 'pairdist.lpp' will do exactly what you want.
library(spatstat)
help(pairdist.lpp)
[NB The current implementation of network analysis in spatstat is temporary and is not suited for very large databases. In a forthcoming version, the network code will be based on the 'igraph' package. ]
Adrian Baddeley
Highway Distance matrix
1 message · Adrian Baddeley