fmidev / fmi-avi-messageconverter-iwxxm

Conversion module for aviation IWXXM messages
MIT License
7 stars 5 forks source link

SWXA airspace volume lower and upper limit must be handled properly #48

Closed petringo closed 3 years ago

petringo commented 3 years ago

Both lowerLimit and upperLimit must be serialized when either of them exist in model. If either of values is missing, it shall be serialized as a nil element, like in WMO IWXXM example spacewx-A2-4.xml:

<aixm:upperLimit uom="OTHER" xsi:nil="true" nilReason="unknown"/>
<aixm:lowerLimit uom="FL">350</aixm:lowerLimit>
<aixm:lowerLimitReference>STD</aixm:lowerLimitReference>

Related lowerLimitReference and upperLimitReference must be serialized as well.

When both values are missing, all these elements can be omitted, like e.g. in WMO IWXXM example spacewx-A2-3.xml.

Parsing must handle these properties properly, handling possible null values as well.