From 7be5493284caeb052973960de604debb52cb672d Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Thu, 9 Dec 2021 17:56:55 +0100 Subject: [PATCH] Add convex hull operation --- Logic/GeoOperations.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Logic/GeoOperations.ts b/Logic/GeoOperations.ts index 005d3a2ea9..e5f556a78c 100644 --- a/Logic/GeoOperations.ts +++ b/Logic/GeoOperations.ts @@ -37,6 +37,10 @@ export class GeoOperations { return turf.distance(lonlat0, lonlat1, {units: "meters"}) } + static convexHull(featureCollection, options: {concavity?: number}){ + return turf.convex(featureCollection, options) + } + /** * Calculates the overlap of 'feature' with every other specified feature. * The features with which 'feature' overlaps, are returned together with their overlap area in m²