powered by
This function computes the area of a polygon with Euclidean coordinates (e.g., UTM).
area(x, y = NULL)
a single numeric value giving the area of the polygon.
the coordinates of the points given in the usual way in R.
Emmanuel Paradis
The unit of the area are the squared unit of input coordinates by default.
geod
XY <- rbind(c(0, 0), c(1, 0), c(.25, .25), c(.5, .5), c(1.2, .8), c(1, .78), c(0, 1)) area(XY)
Run the code above in your browser using DataLab