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;
}
Aggregations