Search in sources :

Example 1 with GetResultTemplateRequest

use of org.n52.shetland.ogc.sos.request.GetResultTemplateRequest in project arctic-sea by 52North.

the class SosDecoderv20 method parseGetResultTemplate.

private OwsServiceRequest parseGetResultTemplate(final GetResultTemplateDocument getResultTemplateDoc) throws DecodingException {
    final GetResultTemplateType getResultTemplate = getResultTemplateDoc.getGetResultTemplate();
    final GetResultTemplateRequest sosGetResultTemplateRequest = new GetResultTemplateRequest();
    sosGetResultTemplateRequest.setService(getResultTemplate.getService());
    sosGetResultTemplateRequest.setVersion(getResultTemplate.getVersion());
    sosGetResultTemplateRequest.setOffering(getResultTemplate.getOffering());
    sosGetResultTemplateRequest.setObservedProperty(getResultTemplate.getObservedProperty());
    sosGetResultTemplateRequest.setExtensions(parseExtensibleRequest(getResultTemplate));
    return sosGetResultTemplateRequest;
}
Also used : GetResultTemplateType(net.opengis.sos.x20.GetResultTemplateType) GetResultTemplateRequest(org.n52.shetland.ogc.sos.request.GetResultTemplateRequest)

Example 2 with GetResultTemplateRequest

use of org.n52.shetland.ogc.sos.request.GetResultTemplateRequest in project arctic-sea by 52North.

the class GetResultTemplateRequestDecoder method decodeRequest.

@Override
protected GetResultTemplateRequest decodeRequest(JsonNode node) {
    GetResultTemplateRequest req = new GetResultTemplateRequest();
    req.setObservedProperty(node.path(JSONConstants.OBSERVED_PROPERTY).textValue());
    req.setOffering(node.path(JSONConstants.OFFERING).textValue());
    return req;
}
Also used : GetResultTemplateRequest(org.n52.shetland.ogc.sos.request.GetResultTemplateRequest)

Aggregations

GetResultTemplateRequest (org.n52.shetland.ogc.sos.request.GetResultTemplateRequest)2 GetResultTemplateType (net.opengis.sos.x20.GetResultTemplateType)1