[R-sig-Geo] clipping SpatialPolygonsDataFrames

Anthony Fischbach afischbach at usgs.gov
Wed Dec 11 00:36:26 CET 2013


Thank you Tom!
I tried the rgeos::gIntersection() approach on a quad dual core Windows 7
workstation, but found that it choked on a TopologyException after running
for over 10 minutes.

The raster approach to the problem produced a clean result in 77 seconds,
requiring under a single day of processing to handle each of my study areas
across the study years.  This now seems reasonable.

I then implemented this in Python for ArcGIS and found that the polygon
clipping required less than 7 seconds, reducing my process time to a little
over 3 hours.

O.K. then, perhaps its best to perform the GIS overlay with Python / ArcGIS
for now and then bring the results back into R from there.



-----
Tony Fischbach, Wildlife Biologist
Walrus Research Program
Alaska Science Center
U.S. Geological Survey
4210 University Drive
Anchorage, AK 99508-4650

AFischbach at usgs.gov
http://alaska.usgs.gov/science/biology/walrus
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/clipping-SpatialPolygonsDataFrames-tp7585333p7585335.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list