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

`sp::SpatialPolygons-class`

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

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.