[R-sig-Geo] command "over" works in windows and not linux
Edzer Pebesma
edzer.pebesma at uni-muenster.de
Wed Apr 24 08:08:41 CEST 2013
You don't provide a reproducible example, so we can only guess.
The error message indicates an over() method provided by rgeos was
needed. Was rgeos loaded in both cases?
On 04/24/2013 01:14 AM, kapo coulibaly wrote:
> I'm running the following script:
>
> # Reading shapefiles
> grd.shp<-openshape()
> reaches.shp<-openshape()
> grd.shp->grd2.shp
>
> # Creating a subset of the grid around the reaches exttent
> sub.ind<-over(grd.shp,reaches.shp)
>
> In linux slackware 13.37 x64 running R-2.15.2 I get the error:
>
> Error in function (classes, fdef, mtable) :
> unable to find an inherited method for function "over", for
> signature "SpatialPolygonsDataFrame", "SpatialLinesDataFrame"
>
>
> But in windows 7 x64 with R-2.15.1 it works flawlessly
>
> Thanks
>
> [[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
>
--
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763 http://ifgi.uni-muenster.de
http://www.52north.org/geostatistics e.pebesma at wwu.de
More information about the R-sig-Geo
mailing list