UNPKG

osm2geojson-ultra

Version:

a faster & more complete OSM & Overpass (either in xml or in json formats) to geojson convertor - 4x faster than xmldom + osmtogeojson in most situations - implemented in TypeScript with txml for XML parsing

32 lines (31 loc) 797 B
import type { RefElements } from "./ref-elements.js"; import type { Feature } from "geojson"; export declare abstract class OsmObject { refCount: number; hasTag: boolean; protected refElems: RefElements; type: string; id: string; tags: { [k: string]: string; }; meta: { [k: string]: string; }; constructor(type: string, id: string, refElems: RefElements); addTags(tags: { [k: string]: string; }): void; addTag(k: string, v: string): void; addMeta(k: string, v: any): void; addMetas(meta: { [k: string]: string; }): void; getCompositeId(): string; getProps(): { [k: string]: string | { [k: string]: string; }; }; abstract toFeature(): Feature | undefined; }