Info |
---|
This page is a work in progress by the Standards & Guidelines Committee's /wiki/spaces/SGC/pages/59703357. |
Introduction
Units of Measure in AgGateway Open Standards
AgGateway Open Standards specifies use of UN/CEFACT Rec 20.
Consider the following AgGateway Open Standards XML document:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<Measurement> <MeasurementValue>50</MeasurementValue> <UnitOfMeasureCode Domain="UN-Rec-20">BG</UnitOfMeasureCode> </Measurement> |
In this example, a measurement element provides two child elements: MeasurementValue and UnitOfMeasureCode. One could read this as: The measurement is 50 bags. We know that the unit of measure is "bag" because the code is "BG" and "BG" is defined by UN/CEFACT Recommendation 20 as "bag". The domain attribute specifies the source of the code and must be "UN-Rec-20" (i.e., UN/CEFACT Recommendation 20).
Units of Measure in AGIIS
AgGateway's AGIIS service supports UN/CEFACT Recommendation 20 and ANSI ASC X12 (i.e., EDI) unit of measure codes. The Excel file referenced below provides a list of units of measure specified in AGIIS product records as of the data specified in the file. It also includes a cross-reference to the X12 code list value. AGIIS supports any UN/CEFACT Rec 20 unit of measure code. Consequently, the list, which is a subset, should not be understood to be the only permitted values.
Units of Measure in AgXML
Consider the following AgXML XML document:
Code Block | ||||
---|---|---|---|---|
| ||||
<QualityFactorValue unitOfMeasure="GL">1000.00</QualityFactorValue> |
The example contains a single element, QualityFactorValue with an attribute unitOfMeasure. While "GL" would commonly be understood to mean "gallon", the source of the meaning "GL" is not specified. The standard does not declare that any particular code list must be used. While this may lead to ambiguity, no issues have been reported as trading-partner pairs typically agree to the code list set that applies to the messages that they exchange.
Compound Units of Measure
The concept of compound units of measure at a basic level is best explained through a couple of examples:
- pounds per acre
- milliliters per square meter
Units of Measure Conversion
Converting from gallons to liters or feet to meters is straightforward. Converting from anything to anything–including compound units of measure–is another. Field operations information processing often require units of measure conversion that are at the more complex end of the spectrum.
Units of Measure for Field Operations
Units of Measure Used by John Deere
Units of Measure Used by MapShots
Units of Measure Cross-Reference and Translation
What domains use what code list sources. e.g., meteorology