Here we go, I'm assuming each ring is its own simple object, and a few
other things.
id = rep(seq(1,3),each=12)
az = rep(seq(0,359,30),3)
## assume you meant to use all ids here?
d = data.frame(id,az)
d$dist = round(rnorm(36,10,3),1)
xp = function(azimuth, r){cos(((90-azimuth)*pi)/180)*r}
yp =
Michael, Â the code for converting a data frame containing UTM
coordinates identified by group, into SpatialPolygon objects, works
spectacularly well. Many thanks --Seth
- Original Message -
From:Michael Sumner
To:
Cc:
Sent:Mon, 16 Jul 2012 16:30:46 +1000
Subject:Re: [R-sig-Geo]
If you sent code it did not survive the journey. See the vignette in
sp for how to build polygons from scratch, section 7.1.
library(sp)
vignette(intro_sp)
On Mon, Jul 16, 2012 at 10:12 AM, s...@swbigelow.net wrote:
r-sig-geo listers:
Can anyone provide code or suggest