Package it.geosolutions.geobatch.unredd.script.reprocess

Examples of it.geosolutions.geobatch.unredd.script.reprocess.ReprocessConfiguration


    public ConfigurationTest() {
    }
   
    @Test
    public void testReprocessConfigFile() throws Exception {
        ReprocessConfiguration cfg = (ReprocessConfiguration)loadActionConfig("configuration/file/reprocessConfigTest.xml");
        assertNotNull(cfg);

        assertEquals("ReprocessGeneratorService", cfg.getServiceID());
       
        assertEquals("cfgId", cfg.getId());
        assertNotNull(cfg.getGeoStoreConfig());
        assertEquals("url0", cfg.getGeoStoreConfig().getUrl());

        assertNotNull(cfg.getPostGisConfig());
        assertEquals("pghost", cfg.getPostGisConfig().getHost());
        assertEquals(42, cfg.getPostGisConfig().getPort());

        assertNotNull(cfg.getRasterizeConfig());

        assertNotNull(cfg.getOverviewsEmbedderConfiguration());
        assertEquals(42, cfg.getOverviewsEmbedderConfiguration().getNumSteps());
    }
View Full Code Here


    }

    @Test
    public void testDump() {
   
        ReprocessConfiguration reprocessCfg = createReprocessConfiguration();
        dumpActionConfig(reprocessCfg);

        IngestionConfiguration ingestionCfg = createIngestionConfiguration();
        dumpActionConfig(ingestionCfg);
    }
View Full Code Here

        dumpActionConfig(ingestionCfg);
    }
   
   
    protected ReprocessConfiguration createReprocessConfiguration() {
        ReprocessConfiguration cfg = new ReprocessConfiguration("cfgId", "cfgName", "cfgDesc");

        GeoStoreConfig gsc = new GeoStoreConfig();
        gsc.setUrl("url0");
        gsc.setUsername("un0");
        gsc.setPassword("pw0");
        cfg.setGeoStoreConfig(gsc);

        PostGisConfig pgc = new PostGisConfig();
        pgc.setHost("pghost");
        pgc.setPort(42);
        pgc.setDatabase("pgdb");
        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);
        goec.setTileW(512);
        cfg.setOverviewsEmbedderConfiguration(goec);

        return cfg;
    }
View Full Code Here

//        LOGGER.info("-------------------------< End Before:  Reprocess Action Test <-----------------------------");
    }

    protected ReprocessAction builReprocessAction() {
        reprocessCfg = new ReprocessConfiguration("id","name","description");
        reprocessCfg.setGeoStoreConfig(geoStoreConfig);

        ReprocessAction a  = new ReprocessAction(reprocessCfg);
        a.setTempDir(getTempDir());
        a.setConfigDir(getConfigDir());
View Full Code Here

TOP

Related Classes of it.geosolutions.geobatch.unredd.script.reprocess.ReprocessConfiguration

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.