Search in sources :

Example 1 with GetResultTemplateResponseType

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

the class SosDecoderv20 method parseGetResultTemplateResponse.

private OwsServiceResponse parseGetResultTemplateResponse(final GetResultTemplateResponseDocument getResultTemplateResponseDoc) throws DecodingException {
    final GetResultTemplateResponse sosGetResultTemplateResponse = new GetResultTemplateResponse();
    final GetResultTemplateResponseType getResultTemplateResponse = getResultTemplateResponseDoc.getGetResultTemplateResponse();
    final SosResultEncoding resultEncoding = parseResultEncoding(getResultTemplateResponse.getResultEncoding().getAbstractEncoding());
    final SosResultStructure resultStructure = parseResultStructure(getResultTemplateResponse.getResultStructure().getAbstractDataComponent());
    sosGetResultTemplateResponse.setResultEncoding(resultEncoding);
    sosGetResultTemplateResponse.setResultStructure(resultStructure);
    return sosGetResultTemplateResponse;
}
Also used : GetResultTemplateResponseType(net.opengis.sos.x20.GetResultTemplateResponseType) GetResultTemplateResponse(org.n52.shetland.ogc.sos.response.GetResultTemplateResponse) SosResultEncoding(org.n52.shetland.ogc.sos.SosResultEncoding) SosResultStructure(org.n52.shetland.ogc.sos.SosResultStructure)

Example 2 with GetResultTemplateResponseType

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

the class GetResultTemplateResponseEncoder method create.

@Override
protected XmlObject create(GetResultTemplateResponse response) throws EncodingException {
    GetResultTemplateResponseDocument doc = GetResultTemplateResponseDocument.Factory.newInstance(getXmlOptions());
    GetResultTemplateResponseType xbResponse = doc.addNewGetResultTemplateResponse();
    xbResponse.setResultEncoding(createResultEncoding(response.getResultEncoding()));
    xbResponse.setResultStructure(createResultStructure(response.getResultStructure()));
    return doc;
}
Also used : GetResultTemplateResponseType(net.opengis.sos.x20.GetResultTemplateResponseType) GetResultTemplateResponseDocument(net.opengis.sos.x20.GetResultTemplateResponseDocument)

Aggregations

GetResultTemplateResponseType (net.opengis.sos.x20.GetResultTemplateResponseType)2 GetResultTemplateResponseDocument (net.opengis.sos.x20.GetResultTemplateResponseDocument)1 SosResultEncoding (org.n52.shetland.ogc.sos.SosResultEncoding)1 SosResultStructure (org.n52.shetland.ogc.sos.SosResultStructure)1 GetResultTemplateResponse (org.n52.shetland.ogc.sos.response.GetResultTemplateResponse)1