Examples of OutputDefinitionType


Examples of net.opengis.wps10.OutputDefinitionType

            if(literal != null) {
                // literals are encoded as plain strings
                return "text/plain";
            } else {
                // Execute should have properly setup the mime type
                OutputDefinitionType definition = (OutputDefinitionType) response
                    .getOutputDefinitions().getOutput().get(0);
                return definition.getMimeType();
            }
        }

    }
View Full Code Here

Examples of net.opengis.wps10.OutputDefinitionType

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetRawDataOutput(OutputDefinitionType newRawDataOutput, NotificationChain msgs) {
        OutputDefinitionType oldRawDataOutput = rawDataOutput;
        rawDataOutput = newRawDataOutput;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wps10Package.RESPONSE_FORM_TYPE__RAW_DATA_OUTPUT, oldRawDataOutput, newRawDataOutput);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

Examples of net.opengis.wps10.OutputDefinitionType

    public OutputDefinitionType createOutputDefinitionType(String identifier)
    {
        CodeType inputType = Ows11Factory.eINSTANCE.createCodeType();
        inputType.setValue(identifier);

        OutputDefinitionType rawOutput = wpsFactory.createOutputDefinitionType();
        rawOutput.setIdentifier(inputType);

        return rawOutput;
    }
View Full Code Here

Examples of net.opengis.wps10.OutputDefinitionType

                    "EPSG:4326", 2, Arrays.asList(-180.0, -90.0), Arrays.asList(-180.0, -90.0))));


        ResponseDocumentType respDoc = wps.createResponseDocumentType(false, true, true, "result");

        OutputDefinitionType rawOutput = wps.createOutputDefinitionType("test");

        ResponseFormType responseForm = wps.createResponseForm(respDoc, rawOutput);

        responseForm.setResponseDocument(respDoc);
        execRequest.setResponseForm(responseForm);
View Full Code Here

Examples of net.opengis.wps10.OutputDefinitionType

        ExecuteProcessRequest exeRequest = wps.createExecuteProcessRequest();
        exeRequest.setIdentifier(processIdenLocal);
        exeRequest.addInput("envelope", Arrays.asList(wps.createBoundingBoxInputValue("EPSG:4326", 2, Arrays.asList(-180d, -90d), Arrays.asList(180d, 90d))));
        exeRequest.addInput("width", Arrays.asList(wps.createLiteralInputValue("2")));
        exeRequest.addInput("height", Arrays.asList(wps.createLiteralInputValue("1")));
        OutputDefinitionType rawOutput = wps.createOutputDefinitionType("result");
        rawOutput.setMimeType("application/arcgrid");
        ResponseFormType responseForm = wps.createResponseForm(null, rawOutput);
        exeRequest.setResponseForm(responseForm);

        // send the request
        ExecuteProcessResponse response = wps.issueRequest(exeRequest);
View Full Code Here

Examples of net.opengis.wps10.OutputDefinitionType

        exeRequest.setIdentifier(processIdenLocal);
        exeRequest.addInput("envelope", Arrays.asList(wps.createBoundingBoxInputValue("EPSG:4326", 2, Arrays.asList(-180d, -90d), Arrays.asList(180d, 90d))));
        // don't set the width, height required params
        //        exeRequest.addInput("width", Arrays.asList(wps.createLiteralInputValue("abc")));
        //        exeRequest.addInput("height", Arrays.asList(wps.createLiteralInputValue("def")));
        OutputDefinitionType rawOutput = wps.createOutputDefinitionType("result");
        rawOutput.setMimeType("application/arcgrid");
        ResponseFormType responseForm = wps.createResponseForm(null, rawOutput);
        exeRequest.setResponseForm(responseForm);

        // send the request
        ExecuteProcessResponse response = wps.issueRequest(exeRequest);
View Full Code Here

Examples of net.opengis.wps10.OutputDefinitionType

        // based on the describeprocess, setup the execute
        ExecuteProcessRequest exeRequest = wps.createExecuteProcessRequest();
        exeRequest.setIdentifier(processIdenLocal);
        // don't send over the inputs
        OutputDefinitionType rawOutput = wps.createOutputDefinitionType("result");
        rawOutput.setMimeType("application/arcgrid");
        ResponseFormType responseForm = wps.createResponseForm(null, rawOutput);
        exeRequest.setResponseForm(responseForm);

        // send the request
        ExecuteProcessResponse response = wps.issueRequest(exeRequest);
View Full Code Here

Examples of net.opengis.wps10.OutputDefinitionType

            IOParam ioParam, boolean inDocument) {
        if(!outputs.containsKey(ioParam.id)) {
            throw new WPSException("Unknown output " + ioParam.id);
        }
       
        OutputDefinitionType odt;
        if(inDocument) {
            odt = factory.createDocumentOutputDefinitionType();
        } else {
            odt = factory.createOutputDefinitionType();
        }
        odt.setIdentifier(Ows11Util.code(ioParam.id));
        odt.setEncoding(ioParam.attributes.get("encoding"));
        odt.setMimeType(ioParam.attributes.get("mimetype"));
        odt.setSchema(ioParam.attributes.get("schema"));
        odt.setUom(ioParam.attributes.get("uom"));
       
        return odt;
    }
View Full Code Here

Examples of net.opengis.wps10.OutputDefinitionType

        // and create a direct map between required outputs and
        // the gt process outputs
        Map<String, ProcessOutput> outputMap = new HashMap<String, ProcessOutput>();
        if (request.getResponseForm().getRawDataOutput() != null) {
            // only one output in raw form
            OutputDefinitionType od = request.getResponseForm().getRawDataOutput();
            String outputName = od.getIdentifier().getValue();
            outputMap.put(outputName, new ProcessOutput(od, result.get(outputName)));
        } else {
            for (Iterator it = request.getResponseForm().getResponseDocument().getOutput()
                    .iterator(); it.hasNext();) {
                OutputDefinitionType od = (OutputDefinitionType) it.next();
                String outputName = od.getIdentifier().getValue();
                outputMap.put(outputName, new ProcessOutput(od, result.get(outputName)));
            }
        }

        return outputMap;
View Full Code Here

Examples of net.opengis.wps10.OutputDefinitionType

     * @param key
     * @return
     */
    private String getOutputMimeType(String key) {
        // lookup for the OutputDefinitionType
        OutputDefinitionType odt = request.getResponseForm().getRawDataOutput();
        ResponseDocumentType responseDocument = request.getResponseForm().getResponseDocument();
        if (responseDocument != null && odt == null) {
            Iterator it = responseDocument.getOutput().iterator();
            while (it.hasNext()) {
                OutputDefinitionType curr = (OutputDefinitionType) it.next();
                if (curr.getIdentifier().getValue().equals(key)) {
                    odt = curr;
                    break;
                }
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.