forked from MapComplete/MapComplete
Add convex hull operation
This commit is contained in:
parent
a27904439e
commit
7be5493284
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,10 @@ export class GeoOperations {
|
||||||
return turf.distance(lonlat0, lonlat1, {units: "meters"})
|
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.
|
* 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²
|
* The features with which 'feature' overlaps, are returned together with their overlap area in m²
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue