[go: up one dir, main page]

urban.py fails to create roof plate with a number of _OpticalPrepertyLink different from 4

The issue is coming from schema urban.xsd and template urban.xml: (From N. Lauret) "The problem is that urban.xml is an old file that uses a convention that is not compatible with the XSDs: using the same name for different nodes with different content. In an XSD, 2 nodes with different content must have a different name (by construction). In this case, depending on the type of roof of the building, there can be 1 to 5 optical (and temperature) properties. Polygon3D also has the issue.

And because we use a script to automatically generate the XSD, one definition of these nodes is arbitrarily selected.

We would need to either rewrite urban.xml to follow the proper convention, or adapt the script to this weird case. Neither option being simple to do."

As a consequence:

  • loading of a simulation with urban building fails in some cases: when typeRoof is 0 (Basic without thickness), 2 ("Basic with thickness") or 3 ("RoofComplex").
  • creating a RoofNone (i.e. typeRoof=0), a RoofPlate (i.e. typeRoof=2) or a RoofComplex (i.e. typeRoof=3) in pytools4dart will lead to the wrong number of OpticalPropertyLink and ThermalPropertyLink (4 instead of 1 or 5), as well as the wrong Point3D default coordinates for the Polygone3D in RoofComplex.

Temporary fix:

  • loading an urban simulation could be fixed with a temporary workaround (see commit below)
  • creating nodes with the correct template values and elements is still under investigation
Edited by Florian de Boissieu