Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
JSON serialization of two-dimensional arrays (IfcCartesianPointList) #922
When serializing IfcCartesianPointList with the streaming Json serializer, the two-dimensional array
Can be reproduced with IFC4Add2TC1 slab standard case example and BIMserver 1.5.123 or 1.5.124.
Probably as a consequence, IfcCartesianPointLists do not show up in BIMvie.ws entity browser, although I had seen that working in 1.5.117, where they where serialized as
That is weird, because the JSON serializers don't seem to have changed between 1.5.117 and 1.5.123.
Moreover, I would assume they should be represented as lists of lists of primitives like this?
That would be similar to IfcCartesianPoint coordinates, which are one-dimensional lists of IfcLengthMeasure and are represented in JSON without the DefinedType explicitely included.
Did not test how JSON deserializers handle any of these.
Not sure if this is related: Non-streaming JSON serializer and JSON serializer with geometry provoke NPE's for this example.