Package it.geosolutions.unredd.stats.impl

Examples of it.geosolutions.unredd.stats.impl.RasterClassifiedStatistics.execute()


       
        RasterClassifiedStatistics rcs = new RasterClassifiedStatistics();
        try {
            File dataFile = new File(getClass().getResource("landcover_2000.tiff").toURI());
            File classificatorFile = new File(getClass().getResource("zambia_provinces_canvas.tiff").toURI());
            Map<MultiKey, List<Result>> result = rcs.execute(true, new DataFile(dataFile), Arrays.asList(new DataFile[] { new DataFile(classificatorFile) }), Arrays
                    .asList(new Statistic[] { Statistic.SUM }));
            LOGGER.info("Stat System test: OK");
        } catch (IOException e) {
            if("true".equals(System.getenv("forceExecution"))){
                LOGGER.warn("The preliminary tests for executing stats are failed but has been configured the forceExecution, so move on with ingestion action expecting a failure when computing stats (just if they are defined of course)");
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.