intersectInChunksArea()
function intersectInChunksArea(
featureA,
featuresB,
chunkSize): object
Calculates area overlap between a feature A and a feature array B. Intersection is done in chunks on featuresB to avoid errors due to too many features
Parameters
Parameter | Type | Description |
---|---|---|
featureA | Feature <Polygon | MultiPolygon , GeoJsonProperties > | single feature to intersect with featuresB |
featuresB | Feature <Polygon | MultiPolygon , GeoJsonProperties >[] | array of features |
chunkSize | number | Size of array to split featuresB into, avoids intersect failure due to large array) |
Returns
object
area of intersection of featureA with featuresB
indices
indices: never[] = [];
value
value: number = featureArea;