Search in sources :

Example 1 with ObservationDocument

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

the class OmEncoderv100 method createOmObservation.

private XmlObject createOmObservation(OmObservation sosObservation, EncodingContext additionalValues) throws EncodingException {
    ObservationDocument xbObservationDoc = ObservationDocument.Factory.newInstance(getXmlOptions());
    ObservationType xbObs = xbObservationDoc.addNewObservation();
    List<OmObservableProperty> phenComponents = addValuesToObservation(xbObs, sosObservation, additionalValues);
    addResultToObservation(xbObs.addNewResult(), sosObservation, phenComponents);
    return xbObservationDoc;
}
Also used : TruthObservationType(net.opengis.om.x10.TruthObservationType) ObservationType(net.opengis.om.x10.ObservationType) CategoryObservationType(net.opengis.om.x10.CategoryObservationType) CountObservationType(net.opengis.om.x10.CountObservationType) GeometryObservationType(net.opengis.om.x10.GeometryObservationType) GeometryObservationDocument(net.opengis.om.x10.GeometryObservationDocument) CountObservationDocument(net.opengis.om.x10.CountObservationDocument) TruthObservationDocument(net.opengis.om.x10.TruthObservationDocument) ObservationDocument(net.opengis.om.x10.ObservationDocument) CategoryObservationDocument(net.opengis.om.x10.CategoryObservationDocument) OmObservableProperty(org.n52.shetland.ogc.om.OmObservableProperty)

Aggregations

CategoryObservationDocument (net.opengis.om.x10.CategoryObservationDocument)1 CategoryObservationType (net.opengis.om.x10.CategoryObservationType)1 CountObservationDocument (net.opengis.om.x10.CountObservationDocument)1 CountObservationType (net.opengis.om.x10.CountObservationType)1 GeometryObservationDocument (net.opengis.om.x10.GeometryObservationDocument)1 GeometryObservationType (net.opengis.om.x10.GeometryObservationType)1 ObservationDocument (net.opengis.om.x10.ObservationDocument)1 ObservationType (net.opengis.om.x10.ObservationType)1 TruthObservationDocument (net.opengis.om.x10.TruthObservationDocument)1 TruthObservationType (net.opengis.om.x10.TruthObservationType)1 OmObservableProperty (org.n52.shetland.ogc.om.OmObservableProperty)1