Skip to content
Prev 22775 / 29559 Next

gIntersection versus intersect

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