Package it.geosolutions.geobatch.unredd.script.util

Examples of it.geosolutions.geobatch.unredd.script.util.FlowUtil.processStatistics()


                String rasterPath = layer.getAttribute(Attributes.MOSAICPATH);
                String rasterFile = NameUtils.buildTifFileName(layerName, year, month, day);
                String rasterFullPath = new File(rasterPath, rasterFile).getAbsolutePath();

                Map<Tokens, String> tokens = FlowUtil.fillTokens(rasterFullPath, layerName, year, month, null);
                flowUtil.processStatistics(geoStoreUtil, statsDefRes, year, month, day, tokens);
            }
        }

        LOGGER.info("Reprocessing completed on StatsDef '" + statsDefName+ "'");
        this.listenerForwarder.progressing(max, "Reprocessing completed on StatsDef '" + statsDefName+ "'");
View Full Code Here


        // repeat run twice:
        // first time stats will be INSERTed
        // second time stats will be UPDATEd
        for (int i = 0; i < 2; i++) {
            String statsOut = flowUtil.processStatistics(getGeoStoreUtil(), statsDef, YEAR, MONTH, DAY, tok);
    //        LOGGER.info(statsOut);
            long outlen = statsOut.length();

            assertTrue("Empty output", outlen>0);
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.