Geodan / pg2b3dm

Tool for creating 3D Tiles from PostGIS geometries
MIT License
361 stars 70 forks source link

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

Closed plaulhe closed 1 month ago

plaulhe commented 1 month 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 1 month 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 1 month ago

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

bertt commented 1 month ago

fixed in release 2.18.1