| Crates.io | avila-metadata-extractor |
| lib.rs | avila-metadata-extractor |
| version | 0.1.0 |
| created_at | 2025-12-04 22:44:37.843545+00 |
| updated_at | 2025-12-04 22:44:37.843545+00 |
| description | BIM metadata extraction to JSON - semantic properties, spatial structure - 100% Rust |
| homepage | |
| repository | https://github.com/avilaops/arxis |
| max_upload_size | |
| id | 1967257 |
| size | 24,423 |
BIM Metadata Extraction - 100% Rust
Extract semantic BIM properties from IFC elements to JSON.
use avila_metadata_extractor::{MetadataExtractor, BimElement};
// Create extractor
let extractor = MetadataExtractor::new();
// Extract from element
let element = BimElement {
id: "wall_001".into(),
ifc_type: "IfcWall".into(),
name: Some("Exterior Wall".into()),
properties: vec![
("Height".into(), "3.0".into()),
("Material".into(), "Concrete".into()),
],
};
let metadata = extractor.extract_element(&element);
// Export to JSON
let json = serde_json::to_string_pretty(&metadata)?;
std::fs::write("metadata.json", json)?;
{
"elements": [
{
"id": "wall_001",
"type": "IfcWall",
"properties": {
"Height": "3.0",
"Material": "Concrete"
},
"boundingBox": {
"min": [0, 0, 0],
"max": [10, 0.2, 3]
}
}
],
"spatialStructure": {
"project": "My Building",
"buildings": [...]
},
"statistics": {
"elementCounts": { "IfcWall": 42 },
"totalArea": 1250.5
}
}
MIT OR Apache-2.0