UNPKG

@csi-foxbyte/mesh-dem-to-terrain

Version:

A Node.js library that converts DEM meshes (DXF, GeoJSON, etc.) into Cesium Terrain Tiles (quantized-mesh or heightmap) with flexible zoom-level control and multi-threading support.

16 lines (13 loc) 561 B
declare function generate(outputFolder: string, progressCallback: (progress: number) => void, opts: { writeFile?: (path: string, file: Buffer | string, terrainTileInfos?: { x: number; y: number; zoom: number; }) => Promise<void>; threadCount?: number; endZoom?: number; startZoom?: number; skipLevel?: number; }): Promise<void>; declare function preprocess(inputZip: string, outputFolder: string, progressCallback: (progress: number) => void, srcProj4?: string): Promise<void>; export { generate, preprocess };