Visualizing 3d buildings with gpkg file in Viktor

We are having some difficulties visualizing buildings in 3d based on a gpkg file. It should be possible given this example: VIKTOR | Open-source visualisation of realistic-looking buildings | VIKTOR.ai.

So I’m wondering if anyone has experience with this and could help us out?

Thank you in advance,

Wouter van Goudoever

Hi Wouter,

Since you’re referring to the example which draws data from the 3D BAG, is that also where you’re getting your GPKG files from?
In that case, the 3D BAG also provides the possibility to download the OBJ files which are more easily visualized in our tooling. So if that’s the case I would definitely recommend using that format.

Otherwise we’re going to have to look a little deeper.

Let me know if that gives you a solution direction.

Hoi Wouter,

Met het Python package FIONA kan je een GPKG file uitlezen. Deze package zet de geometry om naar een geoJSON format. Vervolgens kan je de geoJSONView gebruiken om deze te visualiseren in VIKTOR.

LET OP: het FIONA package heeft een externe afhankelijkheid (GDAL) buiten python. Deze moet je dus eerst istalleren voorgat je deze package kan gebruiken. Wanneer je dit gaat uitrollen op het platform (test of productie), moet je wel zorgen dat deze packages ook aanwezig zijn op de server. Dit vereist wel wat extra stappen.

Ik hoop dat ik je hiermee verder heb geholpen. Wanneer je nog vragen hebt hoor ik het graag.

Hi Daniel and Maarten,

Dankjewel voor jullie antwoorden. Wij gaan er naar kijken.

Groeten,

Wouter