CategoryRange 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