Open JohannaOtt opened 7 months ago
Dear @JohannaOtt,
no, there is not, it seems that the Borehole.boreholeLength
attribute is not encoded correctly.
I will move the issue to the schema repository since the encoding should be fixed.
The current encoding:
<element name="boreholeLength" nillable="true" type="swe:QuantityPropertyType">
<annotation>
<documentation>-- Definition --The distance along a borehole.-- Description --This
will be determined by the data provider (ie, "length" can have different sources,
like drillers measurement, loggers measurement, survey).
</documentation>
</annotation>
</element>
should be replaced by the following:
<element name="boreholeLength" nillable="true">
<annotation>
<documentation>-- Definition -- The distance along a borehole. -- Description -- This
will be determined by the data provider (ie, "length" can have different sources,
like drillers measurement, loggers measurement, survey).</documentation>
</annotation>
<complexType>
<complexContent>
<extension base="gml:AbstractMemberType">
<sequence>
<element ref="swe:Quantity"/>
</sequence>
<attribute name="nilReason" type="gml:NilReasonType"/>
</extension>
</complexContent>
</complexType>
</element>
As shown in the figure below, the new encoding (on the left side) allows the provision of the nilReason.
@fabiovinci Thanks for the quick check and fix!
Hi,
Borehole.boreholeLength
is using the stereotypevoidable
according to the implementing rules and the UML model. In the xsd, it is defined using theswe:QuantityPropertyType
and no additional attributes which leads to the fact that nonilReason
attribute can be provided forBorehole.boreholeLength
. Is there a reason not to use a type extending theswe:QuantityPropertyType
with an additionalnilReason
attribute for the boreholeLength element?Thank you and all the best
Johanna