@loaders.gl/geopackage
Version:
GeoPackage data loaders
40 lines • 1.48 kB
TypeScript
import type { LoaderOptions } from '@loaders.gl/loader-utils';
import { Tables, GeoJSONTable } from '@loaders.gl/schema';
import { parseGeoPackage } from "./lib/parse-geopackage.js";
export type GeoPackageLoaderOptions = LoaderOptions & {
/** Options for the geopackage loader */
geopackage?: {
/** Shape of returned data */
shape?: 'geojson-table' | 'tables';
/** Name of table to load (defaults to first table), unless shape==='tables' */
table?: string;
/** Use null in Node */
sqlJsCDN?: string | null;
/** Override the URL to the worker bundle (by default loads from unpkg.com) */
workerUrl?: string;
};
gis?: {
reproject?: boolean;
_targetCrs?: string;
};
};
export declare const GeoPackageLoader: {
readonly dataType: GeoJSONTable | Tables<GeoJSONTable>;
readonly batchType: never;
readonly id: "geopackage";
readonly name: "GeoPackage";
readonly module: "geopackage";
readonly version: "latest";
readonly extensions: ["gpkg"];
readonly mimeTypes: ["application/geopackage+sqlite3"];
readonly category: "geometry";
readonly parse: typeof parseGeoPackage;
readonly options: {
readonly geopackage: {
readonly sqlJsCDN: "https://cdnjs.cloudflare.com/ajax/libs/sql.js/1.8.0/" | null;
readonly shape: "tables";
};
readonly gis: {};
};
};
//# sourceMappingURL=geopackage-loader.d.ts.map