union
Merges polygons into one area. Polygons that touch or overlap become one polygon, and ones that do not stay apart as a multipolygon. A single input comes back as a copy.
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { union } from "@mapcairn/core";
function union(geometries: readonly GeometryInput[]): PolygonalGeometry;
Parameters
geometries(readonly GeometryInput[])
Returns
PolygonalGeometry
Throws
GeometryErrorof kindinvalidfor a malformed geometry,emptyfor no input or an empty polygon,unsupportedfor anything but aPolygonorMultiPolygon.