[R-sig-Geo] Donut holes

O'Hanlon, Simon J simon.ohanlon at imperial.ac.uk
Wed Jul 25 22:24:53 CEST 2012


rgeos::gDifference should do what you are after.

HTH,

Simon

--------------------------------
Simon O'Hanlon, BSc MSc
Department of Infectious Disease Epidemiology
Imperial College London
St. Mary's Hospital
London
W2 1PG
________________________________________
From: r-sig-geo-bounces at r-project.org [r-sig-geo-bounces at r-project.org] on behalf of Tim [timbean at gmail.com]
Sent: 25 July 2012 21:11
To: r-sig-geo at r-project.org
Subject: [R-sig-Geo] Donut holes

Can somebody suggest a method for subtracting one SpatialPolygon* object from
another, so that I'm left with a polygon with a donut hole? I can't seem to
find one. Thanks.



--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Donut-holes-tp7580607.html
Sent from the R-sig-geo mailing list archive at Nabble.com.

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo



More information about the R-sig-Geo mailing list