Skip to main content

Function: runSpatialJoin()

runSpatialJoin(__namedParameters): Promise<{ additionalData: { firstDatasetName: string; joinOperators: undefined | string[]; joinResult: number[][]; joinValues: Record<string, number[]>; joinVariableNames: undefined | string[]; }; llmResult: { error: undefined; result: { details: string; firstDatasetName: string; firstTwoRows: object[]; joinOperators: undefined | string[]; joinVariableNames: undefined | string[]; }; success: boolean; }; } | { additionalData: undefined; llmResult: { error: string; result: undefined; success: boolean; }; }>

Defined in: packages/geoda/src/spatial-count/tool.ts:163

Parameters

__namedParameters

firstDatasetName

string

getGeometries

GetGeometries

getValues

GetValues

joinOperators?

string[]

joinVariableNames?

string[]

previousExecutionOutput?

{ data: { geojson: FeatureCollection<Geometry, GeoJsonProperties>; }; }

previousExecutionOutput.data?

{ geojson: FeatureCollection<Geometry, GeoJsonProperties>; }

previousExecutionOutput.data.geojson?

FeatureCollection<Geometry, GeoJsonProperties>

secondDataset

string | string[]

Returns

Promise<{ additionalData: { firstDatasetName: string; joinOperators: undefined | string[]; joinResult: number[][]; joinValues: Record<string, number[]>; joinVariableNames: undefined | string[]; }; llmResult: { error: undefined; result: { details: string; firstDatasetName: string; firstTwoRows: object[]; joinOperators: undefined | string[]; joinVariableNames: undefined | string[]; }; success: boolean; }; } | { additionalData: undefined; llmResult: { error: string; result: undefined; success: boolean; }; }>