use of net.opengis.om.x20.OMProcessPropertyType in project arctic-sea by 52North.
the class OmEncoderv20 method addProcedure.
private void addProcedure(OMObservationType xbObservationTemplate, Nillable<AbstractFeature> procedure) {
OMProcessPropertyType xbProcedure = xbObservationTemplate.addNewProcedure();
if (procedure.isNil() || procedure.isAbsent() || !procedure.get().isSetIdentifier()) {
xbProcedure.setNil();
xbProcedure.setNilReason(NIL_REASON_TEMPLATE);
} else {
xbProcedure.setHref(procedure.get().getIdentifier());
}
}
use of net.opengis.om.x20.OMProcessPropertyType in project arctic-sea by 52North.
the class AbstractOmEncoderv20 method encodeProcedureDescription.
private XmlObject encodeProcedureDescription(SosProcedureDescription<?> procedureDescription) throws EncodingException {
OMProcessPropertyType procedure = OMProcessPropertyType.Factory.newInstance();
addProcedure(procedure, procedureDescription);
return procedure;
}
Aggregations