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.

2 lines 384 B
import {generate,preprocess}from'./index.js';(async()=>(await preprocess("D:\\dxf.zip","D:\\dxf_test",console.log,"+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs"),await generate("D:\\dxf_test",o=>console.log((o*100).toFixed(2),"%"),{endZoom:16,startZoom:0,threadCount:2})))();//# sourceMappingURL=example.js.map //# sourceMappingURL=example.js.map