Search in sources :

Example 1 with GetObservationByIdType

use of net.opengis.sos.x20.GetObservationByIdType in project arctic-sea by 52North.

the class SosDecoderv20 method parseGetObservationById.

private OwsServiceRequest parseGetObservationById(final GetObservationByIdDocument getObsByIdDoc) throws DecodingException {
    final GetObservationByIdRequest getObsByIdRequest = new GetObservationByIdRequest();
    final GetObservationByIdType getObsByIdType = getObsByIdDoc.getGetObservationById();
    getObsByIdRequest.setService(getObsByIdType.getService());
    getObsByIdRequest.setVersion(getObsByIdType.getVersion());
    getObsByIdRequest.setObservationIdentifier(Arrays.asList(getObsByIdType.getObservationArray()));
    getObsByIdRequest.setExtensions(parseExtensibleRequest(getObsByIdType));
    return getObsByIdRequest;
}
Also used : GetObservationByIdType(net.opengis.sos.x20.GetObservationByIdType) GetObservationByIdRequest(org.n52.shetland.ogc.sos.request.GetObservationByIdRequest)

Example 2 with GetObservationByIdType

use of net.opengis.sos.x20.GetObservationByIdType in project arctic-sea by 52North.

the class GetObservationByIdRequestEncoder method create.

@Override
protected XmlObject create(GetObservationByIdRequest request) throws EncodingException {
    GetObservationByIdDocument doc = GetObservationByIdDocument.Factory.newInstance(getXmlOptions());
    GetObservationByIdType gobit = doc.addNewGetObservationById();
    addService(gobit, request);
    addVersion(gobit, request);
    addExtension(gobit, request);
    addObservationIds(gobit, request);
    return doc;
}
Also used : GetObservationByIdDocument(net.opengis.sos.x20.GetObservationByIdDocument) GetObservationByIdType(net.opengis.sos.x20.GetObservationByIdType)

Aggregations

GetObservationByIdType (net.opengis.sos.x20.GetObservationByIdType)2 GetObservationByIdDocument (net.opengis.sos.x20.GetObservationByIdDocument)1 GetObservationByIdRequest (org.n52.shetland.ogc.sos.request.GetObservationByIdRequest)1