Search in sources :

Example 1 with CountObservationDocument

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;
}
Also used : CountObservationType(net.opengis.om.x10.CountObservationType) CountObservationDocument(net.opengis.om.x10.CountObservationDocument)

Aggregations

CountObservationDocument (net.opengis.om.x10.CountObservationDocument)1 CountObservationType (net.opengis.om.x10.CountObservationType)1