use of net.opengis.om.x10.MeasurementType in project arctic-sea by 52North.
the class OmEncoderv100 method createMeasurement.
private XmlObject createMeasurement(OmObservation sosObservation, EncodingContext additionalValues) throws EncodingException {
MeasurementDocument xbMeasurementDoc = MeasurementDocument.Factory.newInstance(getXmlOptions());
MeasurementType xbObs = xbMeasurementDoc.addNewMeasurement();
addValuesToObservation(xbObs, sosObservation, additionalValues);
addSingleObservationToResult(xbObs.addNewResult(), sosObservation);
return xbMeasurementDoc;
}
Aggregations