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);
}
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;
}
Aggregations