Skip to content

Schema conversion retains entity types unknown in target schema  #9

@hlg

Description

@hlg

From reading the code in org.bimserver.schemaconverter.AbstractSchemaConverter I was expecting that entities of types not contained in the target schema would be omitted from serialization. However, a sample conversion from IFC4 to IFC2x3 revealed that this is not the case. For example, the file IfcDoorType_4.ifc.txt contains an entity of type IfcDoorType which was unknown in IFC2x3. The conversion result, IfcDoorType_2x3.ifc.txt, still contains exactly the same number of entities, including the IfcDoorType entity. Consequently the subsequent checkin of the invalid IFC2x3 file into a new BIMserver project fails.

I could not yet trace how these elements end up in the model, but I suspect org.bimserver.ifc.step.serializer.IfcStepSerializer to follow some references outside of the filtered model it was given to serialize.

Proper schema conversion could help to deal with legacy files when transitioning from IFC2x3 to IFC4, but since in IFC4 some entity types were deleted, this issue would reduce the usefulness of BIMserver in the process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions