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