Skip to content
Prev 1832 / 29559 Next

Drawing circular contours

On Wed, 7 Mar 2007, Edzer J. Pebesma wrote:

            
These are effectively vector buffers around points. My guess would be that 
the "circle"-type functions sent to R-help (often for drawing not 
returning a polygon-as-circle) could be used. For example, John Fox' 
posting:

http://finzi.psych.upenn.edu/R/Rhelp02a/archive/74907.html

could be adapted (for the projected case, the geographical coordinates 
case is more difficult). Then construct SpatialPolygons objects from the 
output object. Or make a template polygon for (0,0) and shift to the 
required (x,y) centres before making SpatialPolygons objects.

Hope this helps,

Roger

PS. Most GIS do this, and I think PostGIS/GEOS does too, but I don't think 
any of them can store the output as anything other than a ring polygon.