Using gDistance under Linux causes R crash.
On Tue, 9 Jul 2013, Ferdinand Bersse wrote:
Dears, I've been trying to use gDistance from rgeos package to generate a distance matrix between all features of a shp file, i.e. using gDistance(shpfile, shpfile, byid=TRUE) in R 2.15 and it always makes R to crash.
You should always provide a reproducible example of claims of crashing R. There is no way anyone can advise you if you do not do this, because guesswork is no help. Please also see the posting guide for definitions of crash - a crash is only when R exits to the shell. You will have to remove the possibility that rgeos and GEOS are wrongly installed, first by removing the rpm (I doubt that geos-devel is sufficient) and installing GEOS from source. Then you must show how your read the shapefile (use rgdal only), and it will be best if you show your code in relation to a small shapefile that is available. Roger
I am using a Red Hat server with R 2.15 (can not change R version now in the server). Any insights about what may be going on or any other option that calculates distances from border to border of spatial features (not from centroids to centroids)? Many thanks! Ferd. [[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Roger Bivand Department of Economics, NHH Norwegian School of Economics, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 e-mail: Roger.Bivand at nhh.no