Search in sources :

Example 11 with OMObservationType

use of net.opengis.om.x20.OMObservationType in project arctic-sea by 52North.

the class OmEncoderv20 method addNilPhenomenonTime.

private void addNilPhenomenonTime(OMObservationType xbObservationTemplate) {
    TimeObjectPropertyType xbPhenomenonTime = xbObservationTemplate.addNewPhenomenonTime();
    xbPhenomenonTime.setNilReason(NIL_REASON_TEMPLATE);
}
Also used : TimeObjectPropertyType(net.opengis.om.x20.TimeObjectPropertyType)

Example 12 with OMObservationType

use of net.opengis.om.x20.OMObservationType in project arctic-sea by 52North.

the class OmEncoderv20 method encodeObservationTemplate.

private OMObservationType encodeObservationTemplate(OmObservationConstellation observationTemplate) throws EncodingException {
    validateInput(observationTemplate);
    OMObservationType xbObservationTemplate = createOmObservationType();
    addGmlId(xbObservationTemplate);
    addObservationType(xbObservationTemplate, observationTemplate.getObservationType());
    addNilPhenomenonTime(xbObservationTemplate);
    addNilResultTime(xbObservationTemplate);
    addProcedure(xbObservationTemplate, observationTemplate.getNillableProcedure());
    addObservedProperty(xbObservationTemplate, observationTemplate.getObservablePropertyIdentifier());
    addFeature(xbObservationTemplate, observationTemplate.getNillableFeatureOfInterest());
    addResult(xbObservationTemplate);
    return xbObservationTemplate;
}
Also used : OMObservationType(net.opengis.om.x20.OMObservationType)

Aggregations

OMObservationType (net.opengis.om.x20.OMObservationType)7 Test (org.junit.Test)5 OmObservableProperty (org.n52.shetland.ogc.om.OmObservableProperty)4 OmObservationConstellation (org.n52.shetland.ogc.om.OmObservationConstellation)4 XmlObject (org.apache.xmlbeans.XmlObject)3 Matchers.containsString (org.hamcrest.Matchers.containsString)3 TimeObjectPropertyType (net.opengis.om.x20.TimeObjectPropertyType)2 SFSamplingFeatureDocument (net.opengis.sampling.x20.SFSamplingFeatureDocument)2 SFSamplingFeatureType (net.opengis.sampling.x20.SFSamplingFeatureType)2 XmlString (org.apache.xmlbeans.XmlString)2 OMObservationDocument (net.opengis.om.x20.OMObservationDocument)1 OMObservationPropertyType (net.opengis.om.x20.OMObservationPropertyType)1 OMProcessPropertyType (net.opengis.om.x20.OMProcessPropertyType)1 InsertResultTemplateDocument (net.opengis.sos.x20.InsertResultTemplateDocument)1 InsertResultTemplateType (net.opengis.sos.x20.InsertResultTemplateType)1 ResultTemplateType (net.opengis.sos.x20.ResultTemplateType)1 ObservationTemplate (net.opengis.sos.x20.ResultTemplateType.ObservationTemplate)1 CodeType (org.n52.shetland.ogc.gml.CodeType)1 CodeWithAuthority (org.n52.shetland.ogc.gml.CodeWithAuthority)1 Time (org.n52.shetland.ogc.gml.time.Time)1