getArea: compute area of a Spatial* object

Description Usage Arguments Details Value Examples

Description

compute the area of an object of one of the subclasses of Spatial

Usage

1

Arguments

x

object of a subclass of Spatial

Details

area of gridded or polygon objects deriving from Spatial, zero for other classes (points, lines)

Value

the area of the features (grid cells or polygons) in the object

Examples

1
2
3
4
library(sp)
demo(meuse, ask = FALSE, echo = FALSE)
getArea(meuse)
getArea(meuse.area)

edzer/mss documentation built on May 15, 2019, 11:08 p.m.