Rest API for 3D buildings / issues with b3dm

64 views
Skip to first unread message

Daniel Oberle

unread,
Jan 15, 2025, 10:20:54 AMJan 15
to GeoAdminCh API

Hello Swisstopo Community,

I'm developing a standalone Python application with PyVista to render 3D data. Currently, I’m working with the b3dm format fetched via the API. I’ve managed to decode the header and decompress the body for rendering the meshes with PyVista. However, I’ve encountered issues as the faces oft he b3dm file look somewhat corrupted even when using online tools for conversion and rendering, such as Blender.

Here’s the file in question: https://3d.geo.admin.ch/ch.swisstopo.swisstlm3d.3d/v1/20240501/7/54/21.b3dm

Is there an alternative approach to accessing these 3D models that I might be missing? I understand that Cesium is used in the map viewer, but my goal is to integrate this functionality within my Python environment.

Thank you for any insights or suggestions you can provide.

Best regards,

Dani

Reply all
Reply to author
Forward
0 new messages