@csi-foxbyte/cityjson-to-3d-tiles
Version:
A Node.js library that converts CityJSON files into Cesium 3D Tiles—complete with automatic texture atlas packing, Basis compression, three LOD levels, and customizable threading.
2 lines • 639 B
JavaScript
import o from'path';import {generateTileDatabaseFromCityJSON,generate3DTilesFromTileDatabase}from'./index.js';const n="C:\\Users\\tga\\Downloads\\RegensburgLOD2\\data",l="FMETheme",e="C:\\Users\\tga\\Downloads\\RegensburgLOD2\\tiles";(async()=>{const{dbFilePath:t}=await generateTileDatabaseFromCityJSON(n,e,l,console.log,{threadCount:8,srcSRS:"+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs"});await generate3DTilesFromTileDatabase(t,o.join(e,"tiles"),true,async(s,i)=>{console.log(s);},{threadCount:8,simplifyAdresses:true});})();//# sourceMappingURL=example.js.map
//# sourceMappingURL=example.js.map