Package org.geoserver.wps.web.InputParameterValues

Examples of org.geoserver.wps.web.InputParameterValues.ParameterValue


    @Test
    public void testSubprocess() throws Exception {
        Name areaName = new NameImpl("JTS", "area");
       
        InputParameterValues areaGeomValues = new InputParameterValues(areaName, "geom");
        ParameterValue geom = areaGeomValues.values.get(0);
        geom.setType(ParameterType.SUBPROCESS);
        geom.setValue(getExecuteBuffer());
       
        OutputParameter bufferOutput = new OutputParameter(areaName, "result");
       
        ExecuteRequest executeArea = new ExecuteRequest(areaName.getURI(), Arrays.asList(
                areaGeomValues), Arrays.asList(bufferOutput));
View Full Code Here


    }

    private ExecuteRequest getExecuteBuffer() {
        Name bufferName = new NameImpl("JTS", "buffer");
        InputParameterValues bufferGeomValues = new InputParameterValues(bufferName, "geom");
        ParameterValue geom = bufferGeomValues.values.get(0);
        geom.setMime("application/wkt");
        geom.setType(ParameterType.TEXT);
        geom.setValue("POINT(0 0)");

        InputParameterValues bufferDistanceValues = new InputParameterValues(bufferName, "distance");
        ParameterValue distance = bufferDistanceValues.values.get(0);
        distance.setType(ParameterType.LITERAL);
        distance.setValue("10");

        OutputParameter bufferOutput = new OutputParameter(bufferName, "result");

        ExecuteRequest executeBuffer = new ExecuteRequest(bufferName.getURI(), Arrays.asList(
                bufferGeomValues, bufferDistanceValues), Arrays.asList(bufferOutput));
View Full Code Here

        InputParameterValues inputValues = new InputParameterValues(centroidName, "features");
       
        VectorLayerConfiguration layer = new VectorLayerConfiguration();
        layer.setLayerName("foo:myLayer");

        ParameterValue features = inputValues.values.get(0);
        features.setType(ParameterType.VECTOR_LAYER);
        features.setValue(layer);

        OutputParameter output = new OutputParameter(centroidName, "result");

        ExecuteRequest execute = new ExecuteRequest(centroidName.getURI(),
            Arrays.asList(inputValues), Arrays.asList(output));
View Full Code Here

        public void handleInputs(List<InputParameterValues> inputs) {
            start("wps:DataInputs");
            for (InputParameterValues pv : inputs) {
                for (int i = 0; i < pv.values.size(); i++) {
                    ParameterValue value = pv.values.get(i);
                    if (value == null || value.value == null) {
                        continue;
                    }

                    start("wps:Input");
View Full Code Here

        public void handleInputs(List<InputParameterValues> inputs) {
            start("wps:DataInputs");
            for (InputParameterValues pv : inputs) {
                for (int i = 0; i < pv.values.size(); i++) {
                    ParameterValue value = pv.values.get(i);
                    if (value == null || value.value == null) {
                        continue;
                    }

                    start("wps:Input");
View Full Code Here

   
    public void testSubprocess() throws Exception {
        Name areaName = new NameImpl("JTS", "area");
       
        InputParameterValues areaGeomValues = new InputParameterValues(areaName, "geom");
        ParameterValue geom = areaGeomValues.values.get(0);
        geom.setType(ParameterType.SUBPROCESS);
        geom.setValue(getExecuteBuffer());
       
        OutputParameter bufferOutput = new OutputParameter(areaName, "result");
       
        ExecuteRequest executeArea = new ExecuteRequest(areaName.getURI(), Arrays.asList(
                areaGeomValues), Arrays.asList(bufferOutput));
View Full Code Here

    }

    private ExecuteRequest getExecuteBuffer() {
        Name bufferName = new NameImpl("JTS", "buffer");
        InputParameterValues bufferGeomValues = new InputParameterValues(bufferName, "geom");
        ParameterValue geom = bufferGeomValues.values.get(0);
        geom.setMime("application/wkt");
        geom.setType(ParameterType.TEXT);
        geom.setValue("POINT(0 0)");

        InputParameterValues bufferDistanceValues = new InputParameterValues(bufferName, "distance");
        ParameterValue distance = bufferDistanceValues.values.get(0);
        distance.setType(ParameterType.LITERAL);
        distance.setValue("10");

        OutputParameter bufferOutput = new OutputParameter(bufferName, "result");

        ExecuteRequest executeBuffer = new ExecuteRequest(bufferName.getURI(), Arrays.asList(
                bufferGeomValues, bufferDistanceValues), Arrays.asList(bufferOutput));
View Full Code Here

TOP

Related Classes of org.geoserver.wps.web.InputParameterValues.ParameterValue

Copyright © 2018 www.massapicom. 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.