Search in sources :

Example 1 with DeleteSensorRequest

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

the class DeleteSensorRequestDecoder method decodeRequest.

@Override
protected DeleteSensorRequest decodeRequest(JsonNode node) {
    DeleteSensorRequest req = new DeleteSensorRequest();
    req.setProcedureIdentifier(node.path(JSONConstants.PROCEDURE).textValue());
    return req;
}
Also used : DeleteSensorRequest(org.n52.shetland.ogc.sos.request.DeleteSensorRequest)

Example 2 with DeleteSensorRequest

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

the class SwesDecoderv20 method parseDeleteSensor.

private OwsServiceRequest parseDeleteSensor(final DeleteSensorDocument xbDelSenDoc) throws DecodingException {
    final DeleteSensorRequest request = new DeleteSensorRequest();
    DeleteSensorType deleteSensor = xbDelSenDoc.getDeleteSensor();
    request.setService(deleteSensor.getService());
    request.setVersion(deleteSensor.getVersion());
    request.setProcedureIdentifier(deleteSensor.getProcedure());
    // extensions
    request.setExtensions(parseExtensibleRequest(deleteSensor));
    return request;
}
Also used : DeleteSensorRequest(org.n52.shetland.ogc.sos.request.DeleteSensorRequest) DeleteSensorType(net.opengis.swes.x20.DeleteSensorType)

Aggregations

DeleteSensorRequest (org.n52.shetland.ogc.sos.request.DeleteSensorRequest)2 DeleteSensorType (net.opengis.swes.x20.DeleteSensorType)1