UNPKG

osm2geojson-lite

Version:

a lightweight yet faster osm (either in xml or in json formats) to geojson convertor - 4x faster than xmldom + osmtogeojson in most situations - implemented in pure JavaScript without any 3rd party dependency

21 lines (20 loc) 653 B
import { OsmObject } from "./osm-object"; import { Way } from "./way"; import { LateBinder } from "./late-binder"; import type { RefElements } from "./ref-elements"; import type { Feature } from "geojson"; export declare class Relation extends OsmObject { private relations; private nodes; private bounds; ways: (LateBinder<Way> | Way)[]; roles: string[]; constructor(id: string, refElems: RefElements); setBounds(bounds: any[]): void; addMember(member: { [k: string]: any; }): void; private constructStringGeometry; private constructPolygonGeometry; toFeatureArray(): Array<Feature<any, any>>; }