Examples of ExtensionItemType


Examples of net.opengis.wcs20.ExtensionItemType

            Node child = (Node) o;
            String name = child.getComponent().getName();
            String namespace = child.getComponent().getNamespace();
            Object v = child.getValue();
           
            ExtensionItemType item = Wcs20Factory.eINSTANCE.createExtensionItemType();
            item.setName(name);
            item.setNamespace(namespace);
            if(v instanceof String) {
                item.setSimpleContent((String) v);
            } else {
                item.setObjectContent(v);
            }
           
            contents.add(item);
        }
       
View Full Code Here

Examples of net.opengis.wcs20.ExtensionItemType

    private void parseSimpleContentList(GetCoverageType gc, Map kvp, List<String> geoTiffParams,
            String namespace) {
        for (String param : geoTiffParams) {
            String value = KvpUtils.firstValue(kvp, param);
            if (value != null) {
                ExtensionItemType item = WCS20_FACTORY.createExtensionItemType();
                item.setNamespace(namespace);
                item.setName(param);
                item.setSimpleContent(value);

                gc.getExtension().getContents().add(item);
            }
        }
    }
View Full Code Here

Examples of net.opengis.wcs20.ExtensionItemType

        }

        // if we found at least one, put it in the extension map (it's the duty of
        // GetCoverage to complain about multiple scaling constructs)
        if (found == true) {
            ExtensionItemType item = WCS20_FACTORY.createExtensionItemType();
            item.setNamespace(Scaling.NAMESPACE);
            item.setName("Scaling");
            item.setObjectContent(scaling);
            gc.getExtension().getContents().add(item);
        }
    }
View Full Code Here

Examples of net.opengis.wcs20.ExtensionItemType

        }
    }

    private void parseRangeSubsetExtension(GetCoverageType gc, Map kvp) {
        if (kvp.containsKey("rangesubset")) {
            ExtensionItemType item = WCS20_FACTORY.createExtensionItemType();
            item.setNamespace(RangeSubset.NAMESPACE);
            item.setName("RangeSubset");
            item.setObjectContent(kvp.get("rangesubset"));
            gc.getExtension().getContents().add(item);
        }
    }
View Full Code Here

Examples of net.opengis.wcs20.ExtensionItemType

        }
    }

    private void parseInterpolationExtension(GetCoverageType gc, Map kvp) {
        if (kvp.containsKey("interpolation")) {
            ExtensionItemType item = WCS20_FACTORY.createExtensionItemType();
            item.setNamespace(Interpolation.NAMESPACE);
            item.setName("Interpolation");
            item.setObjectContent(kvp.get("interpolation"));
            gc.getExtension().getContents().add(item);
        }
    }
View Full Code Here

Examples of net.opengis.wcs20.ExtensionItemType

    @Override
    public Object parse(String value) throws Exception {
        // clean up extra space
        value = value.trim();

        ExtensionItemType se = Wcs20Factory.eINSTANCE.createExtensionItemType();
        se.setName(WCS20Const.OVERVIEW_POLICY_EXTENSION);
        se.setNamespace(WCS20Const.OVERVIEW_POLICY_EXTENSION_NAMESPACE);
        se.setSimpleContent(value);
        return se;

    }
View Full Code Here

Examples of net.opengis.wcs20.ExtensionItemType

    private ScalingType extractScaling(Map<String, ExtensionItemType> extensions) {
        ScalingType scaling = null;
        // look for a scaling extension
        if (!(extensions == null || extensions.size() == 0 || !extensions.containsKey("Scaling"))) {
            final ExtensionItemType extensionItem = extensions.get("Scaling");
            assert extensionItem != null;

            // get scaling
            scaling = (ScalingType) extensionItem.getObjectContent();
            if (scaling == null) {
                throw new IllegalStateException("Scaling extension contained a null ScalingType");
            }
        }
        return scaling;
View Full Code Here

Examples of net.opengis.wcs20.ExtensionItemType

            // NO extension at hand
            return null;
        }

        // look for an overviewPolicy extension
        final ExtensionItemType extensionItem = extensions.get(WCS20Const.OVERVIEW_POLICY_EXTENSION);
        if (extensionItem.getName().equals(WCS20Const.OVERVIEW_POLICY_EXTENSION)) {
            String overviewPolicy = extensionItem.getSimpleContent();

            // checks
            if (overviewPolicy == null) {
                throw new WCS20Exception(WCS20Const.OVERVIEW_POLICY_EXTENSION + " was null", WCS20ExceptionCode.MissingParameterValue,
                        "null");
View Full Code Here

Examples of net.opengis.wcs20.ExtensionItemType

             // NO extension at hand
            return defaultCRS;
        }
       
        // look for an crs extension
        final ExtensionItemType extensionItem=extensions.get(identifier);
        if (extensionItem.getName().equals(identifier)) {
            // get URI
            String crsName = extensionItem.getSimpleContent();

            // checks
            if (crsName == null) {
                throw new WCS20Exception(identifier+" was null",
                        WCS20ExceptionCode.NotACrs, "null");
View Full Code Here

Examples of net.opengis.wcs20.ExtensionItemType

             // NO INTERPOLATION
            return returnValue;
        }
           
        // look for an interpolation extension
        final ExtensionItemType extensionItem=extensions.get("Interpolation");
        // get interpolationType
        InterpolationType interpolationType = (InterpolationType) extensionItem
                .getObjectContent();
        // which type
        if (interpolationType.getInterpolationMethod() != null) {
            InterpolationMethodType method = interpolationType.getInterpolationMethod();
            InterpolationPolicy policy = InterpolationPolicy.getPolicy(method);
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.