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

24 lines (23 loc) 748 B
import { OsmObject } from "./osm-object.js"; import { Way } from "./way.js"; import { LatLon } from "./node.js"; import { LateBinder } from "./late-binder.js"; import type { RefElements } from "./ref-elements.js"; import type { Feature } from "geojson"; export declare class Relation extends OsmObject { private relations; private nodes; private bounds; private center; ways: (LateBinder<Way> | Way)[]; private members; constructor(id: string, refElems: RefElements); setBounds(bounds: any[]): void; setCenter(center: LatLon): void; addMember(member: { [k: string]: any; }): void; private constructStringGeometry; private constructPolygonGeometry; toFeature(): Feature | undefined; }