s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
34 lines • 992 B
TypeScript
import type { VectorKey, VectorStore } from '.';
/** File based vector store */
export declare class FileVector<V extends VectorKey> implements VectorStore<V> {
#private;
/** @param fileName - the path + file name without the extension */
constructor(fileName?: string);
/** @returns the length of the store */
get length(): number;
/**
* Push a value into the store
* @param value - the value to store
*/
push(value: V): void;
/**
* @param index - the position in the store to get the value from
* @returns the value
*/
get(index: number): Promise<V>;
/** Sort the store */
sort(): Promise<void>;
/**
* iterate through the values
* @yields an iterator
*/
values(): AsyncGenerator<V>;
/**
* iterate through the values
* @returns an iterator
*/
[Symbol.asyncIterator](): AsyncGenerator<V>;
/** Closes the store */
close(): void;
}
//# sourceMappingURL=file.d.ts.map