Search in sources :

Example 1 with TruthObservationDocument

use of net.opengis.om.x10.TruthObservationDocument in project arctic-sea by 52North.

the class OmEncoderv100 method createTruthObservation.

private XmlObject createTruthObservation(OmObservation sosObservation, EncodingContext additionalValues) throws EncodingException {
    TruthObservationDocument xbTruthObservationDoc = TruthObservationDocument.Factory.newInstance(getXmlOptions());
    TruthObservationType xbObs = xbTruthObservationDoc.addNewTruthObservation();
    addValuesToObservation(xbObs, sosObservation, additionalValues);
    addSingleObservationToResult(xbObs.addNewResult(), sosObservation);
    return xbTruthObservationDoc;
}
Also used : TruthObservationDocument(net.opengis.om.x10.TruthObservationDocument) TruthObservationType(net.opengis.om.x10.TruthObservationType)

Aggregations

TruthObservationDocument (net.opengis.om.x10.TruthObservationDocument)1 TruthObservationType (net.opengis.om.x10.TruthObservationType)1