[R] Area of overlap between polygon and circle

Eric Archer Eric.Archer at noaa.gov
Wed Sep 26 20:42:52 CEST 2007


R-listers,

Given a polygon and a circle defined by its center coordinates and a 
radius, I would like to calculate the area of overlap.  I know that I 
can create a polygon from the circle and then use available packages to 
get the area of the intersection.  However, because the polygon is of a 
fixed size and I will be doing this for circles of varying sizes, I'm 
concerned about maintaining the appropriate amount of resolution with 
larger circles.   If there was already a package that did the above 
calculation without the creation of a circle polygon and would thus give 
an exact area, that would be preferred.  I have searched the archives 
and have not found a solution to this particular problem.  Thanks!

Cheers,
eric

-- 

Eric Archer, Ph.D.
NOAA-SWFSC
8604 La Jolla Shores Dr.
La Jolla, CA 92037
858-546-7121,7003(FAX)
eric.archer at noaa.gov
http://swfsc.noaa.gov/prd-etp.aspx

"Innocence about Science is the worst crime today."
   - Sir Charles Percy Snow


"Lighthouses are more helpful than churches."
   - Benjamin Franklin

   "...but I'll take a GPS over either one."
       - John C. "Craig" George 




More information about the R-help mailing list