globallightingdata / gldf

Global Lighting Data Format
https://gldf.io
MIT License
15 stars 5 forks source link

Photometry XSD Definition #7

Closed mrmonat closed 3 years ago

mrmonat commented 3 years ago

The choice element doesn't seem correct (or at the correct position) in the xsd definition for a photometry.

Should it be possible to specify a PhotometryFileReference OR (Rotation-G0 AND DescriptivePhotometry) or should it be possible to specify a PhotometryFileReference AND Rotation-G0 AND DescriptivePhotometry?

Bildschirmfoto 2021-06-10 um 12 22 53

Kurpanik commented 3 years ago

Hi Luca, a good question because the xsd:choice seems indeed to be unnecessary at the moment.

The current logic is:

The choice element beforehand PhotometryFileReference is a preparation for a possible extension in the future: The possibility to provide photometric intensity distributions directly inside the gldf xml INSTEAD of an external file reference on Eulumdat or IES.

So a possible logic in the future could be:

mrmonat commented 3 years ago

Thanks for the clarification :)