[R-sig-Geo] Using gDistance under Linux causes R crash.
Roger Bivand
Roger.Bivand at nhh.no
Wed Jul 10 11:28:20 CEST 2013
To test whether GEOS and rgeos are installed correctly, run:
library(rgeos)
library(testthat)
set_do_poly_check(FALSE)
test_package("rgeos")
set_do_poly_check(TRUE)
--
Roger Bivand
NHH Norwegian School of Economics
Helleveien 30, 5045 Bergen, Norway
Roger.Bivand at nhh.no
________________________________________
Fra: r-sig-geo-bounces at r-project.org [r-sig-geo-bounces at r-project.org] på vegne av Roger Bivand [Roger.Bivand at nhh.no]
Sendt: 9. juli 2013 7:57
Til: Ferdinand Bersse
Kopi: r-sig-geo at r-project.org
Emne: Re: [R-sig-Geo] 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
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
More information about the R-sig-Geo
mailing list