ifccityjson: more appropriate conversion of classes from cityjson to ifc

This commit is contained in:
LaurensJN
2021-08-11 09:15:57 +02:00
parent dff91e233b
commit f42b018943
+21 -13
View File
@@ -24,15 +24,20 @@ from datetime import datetime
JSON_TO_IFC = { JSON_TO_IFC = {
"Building": ["IfcBuilding"], "Building": ["IfcBuilding"],
"BuildingPart": ["IfcBuilding", {"CompositionType": "Partial"}], # CompositionType: Partial "BuildingPart": ["IfcBuilding", {"CompositionType": "Partial"}],
"BuildingInstallation": ["IfcDistributionElement"], "BuildingInstallation": ["IfcBuildingElementProxy"],
"Road": ["IfcCivilElement"], "Road": ["IfcCivilElement"], # Update for IFC4.3
"TransportSquare": ["IfcSpace"], "Railway": ["IfcCivilElement"], # Update for IFC4.3
"TINRelief": ["IfcGeographicElement"], "TransportSquare": ["IfcCivilElement"], # Update for IFC4.3
"WaterBody": ["IfcGeographicElement"], # Update for IFC4.3 "TINRelief": ["IfcGeographicElement", {"PredefinedType": "TERRAIN"}],
"LandUse": ["IfcGeographicElement"], "WaterBody": ["IfcGeographicElement", {"PredefinedType": "USERDEFINED",
"PlantCover": ["IfcGeographicElement"], "ObjectType": "WaterBody"}], # Update for IFC4.3
"SolitaryVegetationObject": ["IfcGeographicElement"], "LandUse": ["IfcGeographicElement", {"PredefinedType": "USERDEFINED",
"ObjectType": "LandUse"}],
"PlantCover": ["IfcGeographicElement", {"PredefinedType": "USERDEFINED",
"ObjectType": "Plantcover"}],
"SolitaryVegetationObject": ["IfcGeographicElement", {"PredefinedType": "USERDEFINED",
"ObjectType": "SolitaryVegetationObject"}],
"CityFurniture": ["IfcFurnishingElement"], "CityFurniture": ["IfcFurnishingElement"],
"GenericCityObject": ["IfcCivilElement"], "GenericCityObject": ["IfcCivilElement"],
"Bridge": ["IfcCivilElement"], # Update for IFC4.3 "Bridge": ["IfcCivilElement"], # Update for IFC4.3
@@ -42,7 +47,7 @@ JSON_TO_IFC = {
"Tunnel": ["IfcCivilElement"], # Update for IFC4.3 "Tunnel": ["IfcCivilElement"], # Update for IFC4.3
"TunnelPart": ["IfcCivilElement"], # Update for IFC4.3 "TunnelPart": ["IfcCivilElement"], # Update for IFC4.3
"TunnelInstallation": ["IfcCivilElement"], # Update for IFC4.3 "TunnelInstallation": ["IfcCivilElement"], # Update for IFC4.3
"CityObjectGroup": ["IfcCivilElement"], "CityObjectGroup": ["IfcBuilding"], # Update for IFC4.3
"GroundSurface": ["IfcSlab", {"PredefinedType": "BASESLAB"}], "GroundSurface": ["IfcSlab", {"PredefinedType": "BASESLAB"}],
"RoofSurface": ["IfcRoof"], "RoofSurface": ["IfcRoof"],
"WallSurface": ["IfcWall"], "WallSurface": ["IfcWall"],
@@ -51,9 +56,12 @@ JSON_TO_IFC = {
"OuterFloorSurface": ["IfcSlab", {"PredefinedType": "FLOOR"}], "OuterFloorSurface": ["IfcSlab", {"PredefinedType": "FLOOR"}],
"Window": ["IfcWindow"], "Window": ["IfcWindow"],
"Door": ["IfcDoor"], "Door": ["IfcDoor"],
"WaterSurface": ["IfcGeographicElement"], # Update for IFC4.3 "WaterSurface": ["IfcGeographicElement", {"PredefinedType": "USERDEFINED",
"WaterGroundSurface": ["IfcGeographicElement"], # Update for IFC4.3 "ObjectType": "WaterSurface"}], # Update for IFC4.3
"WaterClosureSurface": ["IfcGeographicElement"], # Update for IFC4.3 "WaterGroundSurface": ["IfcGeographicElement", {"PredefinedType": "USERDEFINED",
"ObjectType": "WaterGroundSurface"}], # Update for IFC4.3
"WaterClosureSurface": ["IfcGeographicElement", {"PredefinedType": "USERDEFINED",
"ObjectType": "WaterClosureSurface"}], # Update for IFC4.3
"TrafficArea": ["IfcCivilElement"], # Update for IFC4.3 "TrafficArea": ["IfcCivilElement"], # Update for IFC4.3
"AuxiliaryTrafficArea": ["IfcCivilElement"] # Update for IFC4.3 "AuxiliaryTrafficArea": ["IfcCivilElement"] # Update for IFC4.3
} }