Search in sources :

Example 1 with MeasurementDocument

use of net.opengis.om.x10.MeasurementDocument 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;
}
Also used : MeasurementDocument(net.opengis.om.x10.MeasurementDocument) MeasurementType(net.opengis.om.x10.MeasurementType)

Aggregations

MeasurementDocument (net.opengis.om.x10.MeasurementDocument)1 MeasurementType (net.opengis.om.x10.MeasurementType)1