UNPKG

flatgeobuf

Version:

A performant binary encoding for geographic data

9 lines (8 loc) 858 B
import type { FeatureCollection as GeoJsonFeatureCollection } from 'geojson'; import type { HeaderMetaFn } from './generic.js'; import type { IGeoJsonFeature } from './geojson/feature.js'; import type { Rect } from './packedrtree.js'; export declare function serialize(geojson: GeoJsonFeatureCollection, crsCode?: number): Uint8Array; export declare function deserialize(url: string, rect?: Rect, headerMetaFn?: HeaderMetaFn, nocache?: boolean, headers?: HeadersInit): AsyncGenerator<IGeoJsonFeature>; export declare function deserialize(typedArray: Uint8Array, rect?: Rect, headerMetaFn?: HeaderMetaFn, nocache?: boolean, headers?: HeadersInit): AsyncGenerator<IGeoJsonFeature>; export declare function deserialize(stream: ReadableStream, rect?: Rect, headerMetaFn?: HeaderMetaFn, nocache?: boolean, headers?: HeadersInit): AsyncGenerator<IGeoJsonFeature>;