Package org.geotools.coverage.io.CoverageSource

Examples of org.geotools.coverage.io.CoverageSource.AdditionalDomain


                }
            }
        } else if (domain instanceof AdditionalDomain) {
           
            // Vertical domain management
            AdditionalDomain additionalDomain = (AdditionalDomain) domain;
            if (name.endsWith("domain")) {
                Set<Object> elements = additionalDomain.getElements(false, null);
                return buildElementsList(elements);
            } else {
                // min or max requests
                Set<Object> elements = additionalDomain.getElements(true, null);
                NumberRange<Double> range = (NumberRange<Double>) elements.iterator().next();
                if (name.endsWith("maximum")) {
                    return Double.toString(range.getMaximum());
                } else if (name.endsWith("minimum")) {
                    return Double.toString(range.getMinimum());
View Full Code Here


            // cloud_phase
            CoverageSourceDescriptor cd = reader.getCoverageDescriptor(new NameImpl("cloud_phase"));
            final List<AdditionalDomain> additionalDomains = cd.getAdditionalDomains();
            assertTrue(!additionalDomains.isEmpty());
            final AdditionalDomain ad = additionalDomains.get(0);
            assertTrue(ad.getType().equals(DomainType.NUMBER));
            assertEquals("cloud_phase", ad.getName());

        } finally {
            if (reader != null) {
                try {
                    reader.dispose();
View Full Code Here

TOP

Related Classes of org.geotools.coverage.io.CoverageSource.AdditionalDomain

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.