Skip to main content
Version: Next

genClipLoader()

function genClipLoader<P>(project, operations): (feature) => Promise<object[]>

Given a project client and 1 or more clip operations, returns a function that when called loads clip features from their datasources that overlap with the feature polygon to clip. Pass this function to genPreprocessor() and it will take care of the rest.

Type Parameters

Type Parameter
P extends ProjectClientInterface

Parameters

ParameterType
projectP
operationsDatasourceClipOperation[]

Returns

Function

Parameters

ParameterType
featureFeature<Polygon | MultiPolygon, GeoJsonProperties>

Returns

Promise<object[]>