Package it.geosolutions.geobatch.unredd.script.model

Examples of it.geosolutions.geobatch.unredd.script.model.RasterizeConfig


        // ========================================
        LOGGER.info("Regenerating raster for " + NameUtils.buildLayerUpdateName(layername, year, month, day));

        File rasterFile = null;
        try {
            RasterizeConfig rasterizeConfig = conf.getRasterizeConfig();
            GDALRasterize rasterize = new GDALRasterize(rasterizeConfig, conf.getConfigDir(), this.getTempDir());
            rasterFile = rasterize.run(layer, layerUpdate, conf.getPostGisConfig());

        } catch(Exception e) {
            throw new ActionException(this, "Exception while rasterizing: " + e.getMessage(), e);
View Full Code Here


        pgc.setSchema("pgschema");
        pgc.setUsername("pguser");
        pgc.setPassword("pgpw");
        cfg.setPostGisConfig(pgc);

        RasterizeConfig rc = new RasterizeConfig();
        rc.setExecutable("gdal_rasterize");
        rc.setFreeMarkerTemplate("freemarkertemplate.xml");
        rc.setTaskExecutorXslFileName("taskexec.xsl");
        cfg.setRasterizeConfig(rc);

        GeotiffOverviewsEmbedderConfiguration goec = new GeotiffOverviewsEmbedderConfiguration("id","name","descr");
        goec.setNumSteps(42);
        goec.setTileH(512);
View Full Code Here

        pgc.setSchema("pgschema");
        pgc.setUsername("pguser");
        pgc.setPassword("pgpw");
        cfg.setPostGisConfig(pgc);

        RasterizeConfig rc = new RasterizeConfig();
        rc.setExecutable("gdal_rasterize");
        rc.setFreeMarkerTemplate("freemarkertemplate.xml");
        rc.setTaskExecutorXslFileName("taskexec.xsl");
        cfg.setRasterizeConfig(rc);

        GeotiffRetilerConfiguration grc = new GeotiffRetilerConfiguration("grcId", "grcN", "grcD");
        grc.setTileH(256);
        grc.setTileW(256);
View Full Code Here

TOP

Related Classes of it.geosolutions.geobatch.unredd.script.model.RasterizeConfig

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.