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
import { geometryArea } from "@mapcairn/core";
function geometryArea(input: GeometryInput): number;
Parameters
input(GeometryInput)
Returns
number
Throws
GeometryErrorof kindinvalidfor a malformed geometry.