UNPKG

flatgeobuf

Version:

A performant binary encoding for geographic data

12 lines (11 loc) 809 B
import type { IFeature } from './generic/feature.js'; import { type FromFeatureFn } from './generic/featurecollection.js'; import type { HeaderMeta } from './header-meta.js'; import type { Rect } from './packedrtree.js'; export { ColumnType } from './flat-geobuf/column-type.js'; export { GeometryType } from './flat-geobuf/geometry-type.js'; export type HeaderMetaFn = (headerMeta: HeaderMeta) => void; export declare function deserialize(url: string, fromFeature: FromFeatureFn, rect?: Rect): AsyncGenerator<IFeature>; export declare function deserialize(typedArray: Uint8Array, fromFeature: FromFeatureFn, rect?: Rect): IFeature[]; export declare function deserialize(input: ReadableStream, fromFeature: FromFeatureFn): AsyncGenerator<IFeature>; export { serialize } from './generic/featurecollection.js';