Skip to main content
Version: Next

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

ParameterTypeDescription
featureAFeature<Polygon | MultiPolygon, GeoJsonProperties>single feature to intersect with featuresB
featuresBFeature<Polygon | MultiPolygon, GeoJsonProperties>[]array of features
chunkSizenumberSize 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;