Search in sources :

Example 1 with LiteralOutputType

use of net.opengis.wps10.LiteralOutputType in project sldeditor by robward-scisys.

the class GeoServerWPSClient method getOutputParameter.

/**
 * Gets the output parameter.
 *
 * @param typeOfData the type of data
 * @param processOutputs the process outputs
 * @return the output parameter
 */
private boolean getOutputParameter(DataTypeEnum typeOfData, ProcessOutputsType processOutputs) {
    for (Object o : processOutputs.getOutput()) {
        if (o instanceof OutputDescriptionType) {
            OutputDescriptionType oo = (OutputDescriptionType) o;
            LiteralOutputType literal = oo.getLiteralOutput();
            if (literal != null) {
                DomainMetadataType dataType = literal.getDataType();
                if (dataType != null) {
                // System.out.println(dataType.getValue() + "/" + dataType.getReference());
                }
            } else {
                SupportedCRSsType bbox = oo.getBoundingBoxOutput();
                if (bbox != null) {
                // System.out.println(bbox);
                } else {
                    SupportedComplexDataType complex = oo.getComplexOutput();
                    if (complex != null) {
                        ComplexDataCombinationsType parameterDataType = complex.getSupported();
                        if (isGeometry(typeOfData, parameterDataType)) {
                            return true;
                        }
                    }
                }
            }
        }
    }
    return false;
}
Also used : DomainMetadataType(net.opengis.ows11.DomainMetadataType) SupportedCRSsType(net.opengis.wps10.SupportedCRSsType) OutputDescriptionType(net.opengis.wps10.OutputDescriptionType) SupportedComplexDataType(net.opengis.wps10.SupportedComplexDataType) LiteralOutputType(net.opengis.wps10.LiteralOutputType) ComplexDataCombinationsType(net.opengis.wps10.ComplexDataCombinationsType)

Aggregations

DomainMetadataType (net.opengis.ows11.DomainMetadataType)1 ComplexDataCombinationsType (net.opengis.wps10.ComplexDataCombinationsType)1 LiteralOutputType (net.opengis.wps10.LiteralOutputType)1 OutputDescriptionType (net.opengis.wps10.OutputDescriptionType)1 SupportedCRSsType (net.opengis.wps10.SupportedCRSsType)1 SupportedComplexDataType (net.opengis.wps10.SupportedComplexDataType)1