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
Parameter | Type |
---|---|
project | P |
operations | DatasourceClipOperation [] |
Returns
Function
Parameters
Parameter | Type |
---|---|
feature | Feature <Polygon | MultiPolygon , GeoJsonProperties > |
Returns
Promise
<object
[]>