ConventionalUnit
Please contribute!Example showing the conversion for the unit 'foot' to 'meters' using the factor element. In this case the factor element contains a scale factor of 0.305. The scale factor is multiplied by the value of the conventional unit of measure (foot) to obtain the corresponding value for the preferred unit of measure (meter). <gml:ConventionalUnit gml:id="ft"> <gml:identifier codeSpace="foot"/> <gml:conversionToPreferredUnit uom="m"> <gml:factor>0.305</gml:factor> </gml:conversionToPreferredUnit> </gml:ConventionalUnit> Example showing the conversion for the unit 'Celsius' to 'Kelvin' using the formula element. The formula element can contain the four elements a,b,c and d, whose values provide the parameters for converting the value of the conventional unit of measure (degrees Celsius) to the corresponding value for the preferred unit of measure (Kelvin). The values of the elements a,b,c and d are used in the formula y = (a + bx) / (c + dx), where x is the value using the current unit, and y is the corresponding value using the preferred unit. Elements a and d are optional. If those values are not provided, then those parameters are considered to be zero. The example below shows the conversion of Celsius to Kelvin so the formula becomes: K = 273.15 + C <gml:ConventionalUnit gml:id="degC"> <gml:identifier codeSpace="degree Celsius"/> <gml:conversionToPreferredUnit uom="K"> <gml:formula> <gml:a>273.15</gml:a> <gml:b>1</gml:b> <gml:c>1</gml:c> </gml:formula> </gml:conversionToPreferredUnit> </gml:ConventionalUnit> |