[R-sig-Geo] extracting the non-overlapping part of a polygon?
rundel
rundel at gmail.com
Fri Jan 7 03:31:49 CET 2011
You can accomplish this easily with rgeos. The function gDifference will
return the part of polygon A outside of polygon B. The following code should
get you what you need, some additional cleanup may be necessary since the
two polygons dont overlap very well.
library(rgeos)
greek_cy = gDifference(cy,tuc)
You will have to install the geos library and then the rgeos package from
source (you can download the source from r-forge) to use the package. If you
run into any problems let me know.
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/extracting-the-non-overlapping-part-of-a-polygon-tp5895179p5898021.html
Sent from the R-sig-geo mailing list archive at Nabble.com.
More information about the R-sig-Geo
mailing list