Re: [R-sig-Geo] Calculating area of polygons

2009-05-14 Thread Wesley Roberts
Thanks Roger, Works a treat. Wesley >>> Roger Bivand 05/14/09 9:51 AM >>> On Thu, 14 May 2009, Wesley Roberts wrote: > Dear list, > > I would like to calculate the area of a polygon. I have found areapl() in > splancs but am having trouble using it. > > x<-1 > poly <- readShapePoly("a1_l4_

Re: [R-sig-Geo] Calculating area of polygons

2009-05-14 Thread Roger Bivand
On Thu, 14 May 2009, Wesley Roberts wrote: Dear list, I would like to calculate the area of a polygon. I have found areapl() in splancs but am having trouble using it. x<-1 poly <- readShapePoly("a1_l4_aerial_ws.shp", IDvar="cat", proj4string=CRS("+proj=tmerc +south +ellips=WGS84 +datum=WGS8

[R-sig-Geo] Calculating area of polygons

2009-05-14 Thread Wesley Roberts
Dear list, I would like to calculate the area of a polygon. I have found areapl() in splancs but am having trouble using it. x<-1 poly <- readShapePoly("a1_l4_aerial_ws.shp", IDvar="cat", proj4string=CRS("+proj=tmerc +south +ellips=WGS84 +datum=WGS84 +lon_o=31 +k_0=1 +units=m +no_defs")) poly_