Description Usage Arguments Details Value Author(s) See Also Examples

An all-R routine that computes area of all
polygons in a `SpatialPolygons*`

object,
taking account of holes.

1 | ```
polygonArea(x)
``` |

`x` |
A spatial object inheriting from |

Provides the same answer as `rgeos::gArea`

, but is
all-R (does not require rgeos Java library) and does not
fire a warning if `x`

is un-projected (i.e., lat-long).

Area of all polygons in `x`

, taking account of holes.
Units of area are squared units of coordinates in `x`

. E.g.,
square meters if coordinates in `x`

are UTM meters, square
decimal degrees if coordinates in `x`

are lat-long decimal
degrees.

Trent McDonald

1 2 | ```
# Area of Washington state, in hectares
a <- polygonArea( WA ) / (100*100)
``` |

SDraw documentation built on May 29, 2017, 6:14 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.