Title: RocksDB serialization converts `IfcLogical` UNKNOWN to false · Issue #10307 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: RocksDB serialization converts `IfcLogical` UNKNOWN to false · Issue #10307 · IfcOpenShell/IfcOpenShell
X Title: RocksDB serialization converts `IfcLogical` UNKNOWN to false · Issue #10307 · IfcOpenShell/IfcOpenShell
Description: Bug Description With IfcOpenShell 0.9.0.post1, converting an IFC file to RocksDB changes IfcLogical values from UNKNOWN to False. Using AC20-FZK-Haus.ifc: import tempfile from pathlib import Path import ifcopenshell ifc_path = "AC20-FZK-...
Open Graph Description: Bug Description With IfcOpenShell 0.9.0.post1, converting an IFC file to RocksDB changes IfcLogical values from UNKNOWN to False. Using AC20-FZK-Haus.ifc: import tempfile from pathlib import Path i...
X Description: Bug Description With IfcOpenShell 0.9.0.post1, converting an IFC file to RocksDB changes IfcLogical values from UNKNOWN to False. Using AC20-FZK-Haus.ifc: import tempfile from pathlib import Path i...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/10307
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RocksDB serialization converts `IfcLogical` UNKNOWN to false","articleBody":"### Bug Description\n\nWith IfcOpenShell 0.9.0.post1, converting an IFC file to RocksDB changes `IfcLogical` values from `UNKNOWN` to `False`.\n\nUsing [AC20-FZK-Haus.ifc](https://www.ifcwiki.org/images/e/e3/AC20-FZK-Haus.ifc):\n\n```python\nimport tempfile\nfrom pathlib import Path\n\nimport ifcopenshell\n\nifc_path = \"AC20-FZK-Haus.ifc\"\n\nwith tempfile.TemporaryDirectory() as tmp:\n db_path = str(Path(tmp) / \"model.rocksdb\")\n ifcopenshell.convert_path_to_rocksdb(ifc_path, db_path)\n\n ifc = ifcopenshell.open(ifc_path)\n rocksdb = ifcopenshell.open(db_path, readonly=True)\n\n print(ifc.by_id(15067).IsVentilated) # UNKNOWN\n print(rocksdb.by_id(15067).IsVentilated) # False\n```\n\nThe serialization of `boost::logic::tribool` [here](https://github.com/IfcOpenShell/IfcOpenShell/blob/90c840c68fb35a54e1a61505c6417ab854f826a5/src/ifcparse/entity_instance_data.cpp#L436-L443) may be the cause. Would replacing the comparison with `boost::logic::indeterminate(t)` fix it?\n\n```cpp\nchar tt = boost::logic::indeterminate(t) ? 2 : t ? 1 : 0;\n```\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\nIfcOpenShell: 0.9.0.post1\nPython: 3.12.13\nOS: macOS (Apple Silicon)\n```","author":{"url":"https://github.com/kiyuka829","@type":"Person","name":"kiyuka829"},"datePublished":"2026-11-22T09:24:14Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/10307"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:deffe52c-4297-357e-12d7-634d986ee3ff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA34:2B0C5F:13CCCB:1C25F6:6B046589 |
| html-safe-nonce | aafd778cfa8e8591260d015df03c6883d6922835c7bfbb5365e62f267cbaceaa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTM0OjJCMEM1RjoxM0NDQ0I6MUMyNUY2OjZCMDQ2NTg5IiwidmlzaXRvcl9pZCI6Ijc1NjEzMzQ3ODczMzY4NTY5NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 885a49a691194623add8f76855dc805b42cd91ca24e781659771262e66601e3e |
| hovercard-subject-tag | issue:6540747574 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/10307/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f6f87568b50d89e993bfa2cf4835b2e4552d3a4e0c447662a5c7ac87077eef23/IfcOpenShell/IfcOpenShell/issues/10307 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f6f87568b50d89e993bfa2cf4835b2e4552d3a4e0c447662a5c7ac87077eef23/IfcOpenShell/IfcOpenShell/issues/10307 |
| og:image:alt | Bug Description With IfcOpenShell 0.9.0.post1, converting an IFC file to RocksDB changes IfcLogical values from UNKNOWN to False. Using AC20-FZK-Haus.ifc: import tempfile from pathlib import Path i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kiyuka829 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width