CountRange Element Requirements Class: Basic Types and Simple Components Schemas Requirements Class

OGC 08-094r1 SWE Common Data Model element name = CountRange substitutionGroup = swe:AbstractSimpleComponent type = swe:CountRangeType complexType name = CountRangeType complexContent extension base = swe:AbstractSimpleComponentType sequence element name = constraint maxOccurs = 1 minOccurs = type = swe:AllowedValuesPropertyType element name = value maxOccurs = 1 minOccurs = type = swe:IntegerPair sequence extension complexContent complexType This element is used exactly in the same way as the “Count” element except that the “value” property takes a space separated pair of integers. The next example shows how to specify an array index range: swe:Count definition = http:www.opengis.netdefpropertyOGC0ArrayIndex swe:label Index Range swe:label swe:value 0 9999 swe:value swe:Count The pair of values can be omitted like with any other data component in the case where it is provided in a separate data stream.

8.1.11 QuantityRange Element

The “QuantityRange” element is the XML schema implementation of the “QuantityRange” UML class defined in clause 7.2.13. The schema snippet for this element and its corresponding complex type is shown below: element name = QuantityRange substitutionGroup = swe:AbstractSimpleComponent type = swe:QuantityRangeType complexType name = QuantityRangeType complexContent extension base = swe:AbstractSimpleComponentType sequence element name = uom type = swe:UnitReference element name = constraint maxOccurs = 1 minOccurs = type = swe:AllowedValuesPropertyType element name = value maxOccurs = 1 minOccurs = type = swe:RealPair sequence extension complexContent complexType This element is used exactly in the same way as the “Quantity” element except that the “value” property takes a space separated pair of double values. The next example shows how to express the operational range of a thermometer in Kelvins: swe:QuantityRange definition = http:mmisw.orgontmmideviceOperationalRange swe:label Operational Range swe:label swe:description Operational range of the cryogenic thermometer swe:description swe:uom code = K swe:value 10 300 swe:value swe:QuantityRange 80 Copyright © 2011 Open Geospatial Consortium SWE Common Data Model OGC 08-094r1 The pair of values can be omitted like with any other data component in the case where it is provided in a separate data stream.

8.1.12 TimeRange Element

The “TimeRange” element is the XML schema implementation of the “TimeRange” UML class defined in clause 7.2.14. The schema snippet for this element and its corresponding complex type is shown below: element name = TimeRange substitutionGroup = swe:AbstractSimpleComponent type = swe:TimeRangeType complexType name = TimeRangeType complexContent extension base = swe:AbstractSimpleComponentType sequence element name = uom type = swe:UnitReference element name = constraint maxOccurs = 1 minOccurs = type = swe:AllowedTimesPropertyType element name = value maxOccurs = 1 minOccurs = type = swe:TimePair sequence attribute name = referenceTime type = dateTime use = optional attribute name = localFrame type = anyURI use = optional extension complexContent complexType This element is used exactly in the same way as the “Time” element except that the “value” property takes a space separated pair of time positions. The next example shows how to express a time period with such a component: swe:TimeRange definition = http:www.opengis.netdefpropertyEO0SurveyPeriod swe:label Survey Period swe:label swe:uom xlink:href = http:www.opengis.netdefuomISO-86010Gregorian swe:value 2008-01-05T11:02:54Z 2009-11-05T16:29:26Z swe:value swe:TimeRange The pair of time positions can be omitted like with any other data component in the case where it is provided in a separate data stream.

8.1.13 Quality Element Group

The “Quality” group is the XML schema implementation of the “Quality” Union UML classifier defined in clause 7.2.15. The schema snippet for this XML schema group is shown below: group name = Quality choice element ref = swe:Quantity element ref = swe:QuantityRange element ref = swe:Category element ref = swe:Text choice group Copyright © 2011 Open Geospatial Consortium 81