UNPKG

kepler.gl

Version:

kepler.gl is a webgl based application to visualize large scale location data in the browser

20 lines (19 loc) 996 B
import * as arrow from 'apache-arrow'; import { ProtoDatasetField } from '@kepler.gl/types'; import { processKeplerglJSON } from '@kepler.gl/processors'; export declare const CSV_NULLS: RegExp; declare type RowsAsArray = any[][]; declare type RowsAsObject = Record<string, unknown>[]; declare type RowData = RowsAsArray | RowsAsObject; export declare type ProcessorResult = { cols?: arrow.Vector[]; rows: RowData; fields: ProtoDatasetField[]; }; export declare const COLUMN_TYPES_PRIORITIES: string[]; export declare function columnTypeToFieldType(columnType: string): string | null; export declare function fieldTypeToColumnType(fieldType: string): string | null; export declare function processKeplerglJSONforDuckDb(keplerJson: any): Promise<ReturnType<typeof processKeplerglJSON>>; export declare function processCsvRowObject(rawData: Record<string, string | null>[]): Promise<ProcessorResult>; export declare function processGeojson(rawData: unknown): ProcessorResult; export {};