CityGML
Load CityGML files using the loadModel method. Supported formats are .gml, .city.json and .gmlzip
Request a download token for the asset stored in the documents section providing the format model/gltf-binary.
Shell
1curl --request POST \
2 --url 'https://api.catenda.com/v2/projects/{PROJECT_ID}/libraries/{LIBRARY_ID}/items/{DOCUMENT_ID}/token?format=model/gltf-binary' \
3 --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'
Invoke the loadModel method with the asset URL, model type and format.
JS
1const options = { modelType: "mesh", format: "gltf" };
2const url = "https://api.catenda.com/v2/download?token={TOKEN}";
3
4viewer3d.loadModel(url, options);
Updated 13 Sep 2024
Did this page help you?