flatgeobuf
Version:
A performant binary encoding for geographic data
21 lines (20 loc) • 669 B
TypeScript
import { Feature } from './flat-geobuf/feature.js';
import type { HeaderMeta } from './header-meta.js';
import { type Rect } from './packedrtree.js';
interface FeatureWithId {
id: number;
feature: Feature;
}
export declare class ArrayReader {
private bytes;
header: HeaderMeta;
private headerLength;
private indexLength;
constructor(bytes: Uint8Array, header: HeaderMeta, headerLength: number, indexLength: number);
static open(bytes: Uint8Array): ArrayReader;
selectBbox(rect: Rect): AsyncGenerator<FeatureWithId, void, unknown>;
private lengthBeforeTree;
private lengthBeforeFeatures;
private readFeature;
}
export {};