UNPKG

@loaders.gl/shapefile

Version:

Loader for the Shapefile Format

40 lines 1.39 kB
import type { StrictLoaderOptions } from '@loaders.gl/loader-utils'; import { SHPLoaderOptions } from "./shp-loader.js"; import { parseShapefile, parseShapefileInBatches } from "./lib/parsers/parse-shapefile.js"; import { DBFLoaderOptions } from "./dbf-loader.js"; export type ShapefileLoaderOptions = StrictLoaderOptions & SHPLoaderOptions & DBFLoaderOptions & { shapefile?: { shape?: 'geojson-table' | 'v3'; /** @deprecated Worker URLs must be specified with .dbf.workerUrl * .shp.workerUrl */ workerUrl?: never; }; gis?: { reproject?: boolean; _targetCrs?: string; }; }; /** * 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: [ArrayBuffer]; 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