# geometryArea

The area of a geometry in square metres, on the ground. A polygon's holes
are taken out, a multipolygon and a collection are summed, and anything
that covers no area (a point, a line, an empty shape) is 0. It sums the
same per-ring measure as `measurePolygonArea`, so the two agree.

This is a function exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import { geometryArea } from "@mapcairn/core";
 
function geometryArea(input: GeometryInput): number;
```

## Parameters

- `input` (`GeometryInput`)

## Returns

`number`

## Throws

- `GeometryError` of kind `invalid` for a malformed geometry.

## See also

- [`GeometryInput`](https://docs.mapcairn.com/api/core/GeometryInput.md)

Source: [packages/core/src/geometry/queries.ts:203](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/geometry/queries.ts#L203)
