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)
``` |

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

Please suggest features or report bugs with the GitHub issue tracker.

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

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.