[R-sig-Geo] gIntersection versus intersect

Jean-Luc Dupouey dupouey at nancy.inra.fr
Thu May 14 23:48:35 CEST 2015


For intersecting two polygon layers, is there any advantage of using 
gIntersection (from the rgeos package) instead of intersect (from the 
raster package)? After a few tests, it appears that intersect is a 
little bit faster. Moreover, intersect automatically calculates the 
associated dataframe, while gIntersection leaves the user making it.

Thanks for your awer(s).

Jean-Luc



More information about the R-sig-Geo mailing list