UNPKG

@loaders.gl/shapefile

Version:

Loader for the Shapefile Format

34 lines 1.17 kB
import type { LoaderOptions } from '@loaders.gl/loader-utils'; import { parseShapefile, parseShapefileInBatches } from "./lib/parsers/parse-shapefile.js"; export type ShapefileLoaderOptions = LoaderOptions & { shapefile?: { shape?: 'geojson-table' | 'v3'; /** @deprecated Worker URLs must be specified with .dbf.workerUrl * .shp.workerUrl */ workerUrl?: never; }; }; /** * Shapefile loader * @note Shapefile is multifile format and requires providing additional files */ export declare const ShapefileLoader: { readonly name: "Shapefile"; readonly id: "shapefile"; readonly module: "shapefile"; readonly version: any; readonly category: "geometry"; readonly extensions: ["shp"]; readonly mimeTypes: ["application/octet-stream"]; readonly tests: [ArrayBufferLike]; readonly options: { readonly shapefile: { readonly shape: "v3"; }; readonly shp: { readonly _maxDimensions: 4; }; }; readonly parse: typeof parseShapefile; readonly parseInBatches: typeof parseShapefileInBatches; }; //# sourceMappingURL=shapefile-loader.d.ts.map