mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
Fix two minor bugs in cityjson2ifc
This commit is contained in:
@@ -140,7 +140,7 @@ class Cityjson2ifc:
|
||||
if epsg:
|
||||
# Meter is assumed as unit for now
|
||||
unit = self.IFC_model.createIfcSIUnit(None, "LENGTHUNIT", None, "METRE")
|
||||
self.properties["local_translation"]["TargetCRS"] = self.IFC_model.create_entity("IfcProjectedCrs", Name=f"epsg:{epsg}")
|
||||
self.properties["local_translation"]["TargetCRS"] = self.IFC_model.create_entity("IfcProjectedCrs", Name=f"EPSG:{epsg}")
|
||||
self.properties["local_translation"]["SourceCRS"] = self.IFC_representation_context
|
||||
self.IFC_model.create_entity("IfcMapConversion", **self.properties["local_translation"])
|
||||
|
||||
|
||||
@@ -134,7 +134,7 @@ class GeometryIO:
|
||||
face_ids = geometry.surfaces[surface_id]["surface_idx"]
|
||||
if face_ids is None:
|
||||
return # there is no geometry
|
||||
faces = list(map(lambda face_id: geometry.boundaries[face_id[0]][face_id[1]], face_ids))
|
||||
faces = [geometry.boundaries[fid[0]] for fid in face_ids]
|
||||
else:
|
||||
faces = geometry.boundaries
|
||||
|
||||
|
||||
Reference in New Issue
Block a user