Geodan / pg2b3dm

Tool for creating 3D Tiles from PostGIS geometries
MIT License
353 stars 66 forks source link

Impossible to create 3D tiles if value are set to NULL #216

Open plaulhe opened 5 hours ago

plaulhe commented 5 hours ago

Hello, how are you since last time? :)

I am currently using the pg2b3dm tool with my datasets, and I've encountered an issue where certain fields contain only NULL values. This is causing a problem during type determination, as indicated by the following error message:

sql Copier le code 2024-10-17 11:48:36,838 - ERROR - Unhandled exception. System.Exception: All values of attribute 'hauteur' are Null, can't determine type. Unfortunately, I cannot modify the values by replacing NULL with another value.

Is there a solution to handle this situation within pg2b3dm? Any guidance or workaround would be greatly appreciated.

Thank you for your assistance!

Best regards,

bertt commented 4 hours ago

Hi, yes I've noticed this too, as a workaround you can add '--create_gltf false' (so b3dm files are created instead of glb), or omit the hauteur attribute.

bertt commented 4 hours ago

https://github.com/Geodan/pg2b3dm/pull/217