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