Package it.geosolutions.geobatch.unredd.script.ingestion

Examples of it.geosolutions.geobatch.unredd.script.ingestion.IngestionConfiguration


        assertEquals(42, cfg.getOverviewsEmbedderConfiguration().getNumSteps());
    }

    @Test
    public void testIngestionConfigFile() throws Exception {
        IngestionConfiguration cfg = (IngestionConfiguration)loadActionConfig("ingestion/ingestionCfg.xml");
        assertNotNull(cfg);

        assertEquals("unredd", cfg.getGeoServerConfig().getWorkspace());

        assertNotNull(cfg.getRetilerConfiguration());
    }
View Full Code Here


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

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

        return cfg;
    }

    protected IngestionConfiguration createIngestionConfiguration() {
        IngestionConfiguration cfg = new IngestionConfiguration("ingestionId", "IngestionName", "IngestionDesc");

        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);

        GeotiffRetilerConfiguration grc = new GeotiffRetilerConfiguration("grcId", "grcN", "grcD");
        grc.setTileH(256);
        grc.setTileW(256);
        cfg.setRetilerConfiguration(grc);

        GeotiffOverviewsEmbedderConfiguration goec = new GeotiffOverviewsEmbedderConfiguration("id","name","descr");
        goec.setNumSteps(42);
        goec.setTileH(512);
        goec.setTileW(512);
        cfg.setOverviewsEmbedderConfiguration(goec);

        GeoServerBasicConfig gsac = new GeoServerBasicConfig("gsacId", "gsacName", "gsacDesc");
        gsac.setGeoserverURL("http://it.is/here");
        gsac.setGeoserverUID("it's");
        gsac.setGeoserverPWD("tmpfc");
        gsac.setWorkspace("unredd");
        cfg.setGeoServerConfig(gsac);

        cfg.setOriginalDataTargetDir(new File("/tmp/OriginalDataTarget"));

        return cfg;
    }
View Full Code Here

TOP

Related Classes of it.geosolutions.geobatch.unredd.script.ingestion.IngestionConfiguration

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.