gis-tools-ts
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
8 lines • 724 B
TypeScript
import type { MValue, Properties, VectorFeatures, VectorMultiPolygon, VectorMultiPolygonGeometry } from '../../../index.js';
/**
* Given a collection of polygons, if any of the polygons interact, merge them as a union
* @param polygons - the polygons are from either a VectorFeature, VectorPolygonGeometry, or raw VectorPolygon
* @returns - a union of polygons should a union exist.
*/
export declare function polygonsUnion<M = Record<string, unknown>, D extends MValue = Properties, P extends Properties = Properties>(polygons: VectorMultiPolygon<D> | VectorMultiPolygonGeometry<D> | VectorFeatures<M, D, P, VectorMultiPolygonGeometry<D>>): VectorMultiPolygonGeometry<D> | undefined;
//# sourceMappingURL=union.d.ts.map