Search in sources :

Example 1 with CategoryObservationType

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

the class OmEncoderv100 method createCategoryObservation.

private XmlObject createCategoryObservation(OmObservation sosObservation, EncodingContext additionalValues) throws EncodingException {
    CategoryObservationDocument xbCategoryObservationDoc = CategoryObservationDocument.Factory.newInstance(getXmlOptions());
    CategoryObservationType xbObs = xbCategoryObservationDoc.addNewCategoryObservation();
    addValuesToObservation(xbObs, sosObservation, additionalValues);
    addSingleObservationToResult(xbObs.addNewResult(), sosObservation);
    return xbCategoryObservationDoc;
}
Also used : CategoryObservationType(net.opengis.om.x10.CategoryObservationType) CategoryObservationDocument(net.opengis.om.x10.CategoryObservationDocument)

Aggregations

CategoryObservationDocument (net.opengis.om.x10.CategoryObservationDocument)1 CategoryObservationType (net.opengis.om.x10.CategoryObservationType)1