Package org.geotools.coverage.grid.io

Examples of org.geotools.coverage.grid.io.DefaultHarvestedSource


        HarvestedResource resource = HarvestedResource.getResourceFromObject(source);

        // Check if the source object can be accepted
        final List<HarvestedSource> result = new ArrayList<HarvestedSource>();
        if (resource == null) {
            result.add(new DefaultHarvestedSource(source, false, "Unrecognized source type"));
            return result;
        } else if (source instanceof File && !((File) source).exists() || singleFileList(source)) {
            result.add(new DefaultHarvestedSource(source, false,
                    "Specified file path does not exist"));
            return result;
        }
        // Harvesting of the input source
        resource.harvest(defaultCoverage, source, hints, result, this);
View Full Code Here

TOP

Related Classes of org.geotools.coverage.grid.io.DefaultHarvestedSource

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.