UNPKG

@loaders.gl/shapefile

Version:

Loader for the Shapefile Format

52 lines 1.91 kB
import type { StrictLoaderOptions } from '@loaders.gl/loader-utils'; import type { ArrowTable, ArrowTableBatch } from '@loaders.gl/schema'; import { parseDBF } from "./lib/parsers/parse-dbf-to-arrow.js"; export type DBFLoaderOptions = StrictLoaderOptions & { dbf?: { encoding?: string; /** Override the URL to the worker bundle (by default loads from unpkg.com) */ workerUrl?: string; }; }; /** * DBFLoader - DBF files are used to contain non-geometry columns in Shapefiles */ export declare const DBFArrowWorkerLoader: { readonly dataType: ArrowTable; readonly batchType: ArrowTableBatch; readonly version: any; readonly worker: true; readonly options: { readonly dbf: { readonly encoding: "latin1"; }; }; readonly name: "DBF"; readonly id: "dbf"; readonly module: "shapefile"; readonly category: "table"; readonly extensions: ["dbf"]; readonly mimeTypes: ["application/x-dbf"]; }; /** DBF file loader */ export declare const DBFArrowLoader: { readonly parse: (arrayBuffer: ArrayBuffer, options: DBFLoaderOptions | undefined) => Promise<ArrowTable>; readonly parseSync: typeof parseDBF; readonly parseInBatches: (arrayBufferIterator: AsyncIterable<ArrayBufferLike | ArrayBufferView> | Iterable<ArrayBufferLike | ArrayBufferView>, options: DBFLoaderOptions | undefined) => AsyncIterable<ArrowTableBatch>; readonly dataType: ArrowTable; readonly batchType: ArrowTableBatch; readonly version: any; readonly worker: true; readonly options: { readonly dbf: { readonly encoding: "latin1"; }; }; readonly name: "DBF"; readonly id: "dbf"; readonly module: "shapefile"; readonly category: "table"; readonly extensions: ["dbf"]; readonly mimeTypes: ["application/x-dbf"]; }; //# sourceMappingURL=dbf-arrow-loader.d.ts.map