GeoDist: Constrained distance calculation and associated geotools
Work in progress
This R-package allows the calculation of distances that are contrained by frontiers, islands, mountains,... Distances are calculated from a raster grid of the area.
From A to B
A XXX | XXXXXX | XXXXXXXX |XXXXXXXX \ XXXXXX \_XX_ _ B
These distances can then be implemented in classical geotools like inverse distance interpolation (
idw.dist) or kriging with a modified version of
geoR functions that accept custom calculated distances (
Currently distances are calculated using library
igraph, but library
Rvcg would be much more efficient (I keep that in mind for one day...).
Download and Install
To download the development version of the
GeoDist package, type the following at the R command line:
Note that spatial libraries like
sp may require additional softwares to be installed on your computer if you work with Mac or Linux. Look how to install
gdal on your system.