Search in sources :

Example 6 with InsertResultType

use of net.opengis.cat.csw.v_2_0_2.InsertResultType in project arctic-sea by 52North.

the class SosDecoderv20 method parseInsertResult.

private OwsServiceRequest parseInsertResult(final InsertResultDocument insertResultDoc) throws DecodingException {
    final InsertResultType insertResult = insertResultDoc.getInsertResult();
    final InsertResultRequest sosInsertResultRequest = new InsertResultRequest();
    sosInsertResultRequest.setService(insertResult.getService());
    sosInsertResultRequest.setVersion(insertResult.getVersion());
    sosInsertResultRequest.setTemplateIdentifier(insertResult.getTemplate());
    sosInsertResultRequest.setResultValues(parseResultValues(insertResult.getResultValues()));
    sosInsertResultRequest.setExtensions(parseExtensibleRequest(insertResult));
    return sosInsertResultRequest;
}
Also used : InsertResultRequest(org.n52.shetland.ogc.sos.request.InsertResultRequest) InsertResultType(net.opengis.sos.x20.InsertResultType)

Aggregations

Metacard (ddf.catalog.data.Metacard)3 SimpleLiteral (net.opengis.cat.csw.v_2_0_2.dc.elements.SimpleLiteral)3 InsertResultType (net.opengis.sos.x20.InsertResultType)3 BriefRecordType (net.opengis.cat.csw.v_2_0_2.BriefRecordType)2 InsertResultType (net.opengis.cat.csw.v_2_0_2.InsertResultType)2 TransactionResponseType (net.opengis.cat.csw.v_2_0_2.TransactionResponseType)2 InsertResultDocument (net.opengis.sos.x20.InsertResultDocument)2 Csw (org.codice.ddf.spatial.ogc.csw.catalog.common.Csw)2 Test (org.junit.Test)2 InsertResultRequest (org.n52.shetland.ogc.sos.request.InsertResultRequest)2 ResultImpl (ddf.catalog.data.impl.ResultImpl)1 CreateRequest (ddf.catalog.operation.CreateRequest)1 CreateResponse (ddf.catalog.operation.CreateResponse)1 ProcessingDetails (ddf.catalog.operation.ProcessingDetails)1 CreateRequestImpl (ddf.catalog.operation.impl.CreateRequestImpl)1 CreateResponseImpl (ddf.catalog.operation.impl.CreateResponseImpl)1 ProcessingDetailsImpl (ddf.catalog.operation.impl.ProcessingDetailsImpl)1 IngestException (ddf.catalog.source.IngestException)1 UnsupportedQueryException (ddf.catalog.source.UnsupportedQueryException)1 Subject (ddf.security.Subject)1