Search in sources :

Example 1 with OMProcessPropertyType

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());
    }
}
Also used : OMProcessPropertyType(net.opengis.om.x20.OMProcessPropertyType)

Example 2 with OMProcessPropertyType

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;
}
Also used : OMProcessPropertyType(net.opengis.om.x20.OMProcessPropertyType)

Aggregations

OMProcessPropertyType (net.opengis.om.x20.OMProcessPropertyType)2