## load the CRS projection definition and a shape file
data(CH1903)
## Not run:
# yu.reg <- ReadPoly("path/to/my/shapefile.shp", proj = CH1903)
#
#
# data(yu.reg)
# names(yu.reg) <- "area.name"
# d.geo <- DistanceMatrix(yu.reg, "area.name", longlat = FALSE)
# ## End(Not run)
Run the code above in your browser using DataLab