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

23 lines (22 loc) 946 B
export declare function purgeProps(obj: { [k: string]: any; }, blacklist: string[]): { [k: string]: any; }; export declare function first<T>(a: T[]): T; export declare function last<T>(a: T[]): T; export declare function coordsToKey<T>(a: T[]): string; export declare function addToMap<T>(m: { [k: string]: T[]; }, k: string, v: T): void; export declare function removeFromMap<T>(m: { [k: string]: T[]; }, k: string, v: T): void; export declare function getFirstFromMap<T>(m: { [k: string]: T[]; }, k: string): T | null; export declare function isRing(a: number[][]): boolean; export declare function ringDirection(a: number[][], xIdx?: number, yIdx?: number): string; export declare function pointInsidePolygon(pt: number[], polygon: number[][], xIdx?: number, yIdx?: number): boolean; export declare function strArrayArrayToFloat(el: string[][]): number[][]; export declare function strArrayToFloat(el: string[]): number[];