use of ch.ehi.ili2db.gui.Config in project ili2db by claeis.
the class SimpleFgdbTest method exportXtf.
@Test
public void exportXtf() throws Exception {
importXtf();
EhiLogger.getInstance().setTraceFilter(false);
File fgdbFile = new File(fgdbFileName);
// Fgdb4j.deleteFileGdb(fgdbFile);
Class driverClass = Class.forName(FgdbDriver.class.getName());
File data = new File("test/data/Simple/Simple23a-out.xtf");
Config config = initConfig(data.getPath(), data.getPath() + ".log");
config.setFunction(Config.FC_EXPORT);
config.setModels("Simple23");
Ili2db.readSettingsFromDb(config);
try {
Ili2db.run(config, null);
} catch (Exception ex) {
EhiLogger.logError(ex);
Assert.fail();
}
}
use of ch.ehi.ili2db.gui.Config in project ili2db by claeis.
the class SimpleFgdbTest method importXtf.
@Test
public void importXtf() throws Exception {
EhiLogger.getInstance().setTraceFilter(false);
File fgdbFile = new File(fgdbFileName);
Fgdb4j.deleteFileGdb(fgdbFile);
Class driverClass = Class.forName(FgdbDriver.class.getName());
File data = new File("test/data/Simple/Simple23a.xtf");
Config config = initConfig(data.getPath(), data.getPath() + ".log");
config.setFunction(Config.FC_IMPORT);
config.setCreateFk(config.CREATE_FK_YES);
config.setCreateNumChecks(true);
config.setTidHandling(Config.TID_HANDLING_PROPERTY);
config.setBasketHandling(config.BASKET_HANDLING_READWRITE);
config.setCatalogueRefTrafo(null);
config.setMultiSurfaceTrafo(null);
config.setMultilingualTrafo(null);
config.setInheritanceTrafo(null);
// Ili2db.readSettingsFromDb(config);
try {
Ili2db.run(config, null);
} catch (Exception ex) {
EhiLogger.logError(ex);
Assert.fail();
}
}
use of ch.ehi.ili2db.gui.Config in project ili2db by claeis.
the class SimpleFgdbTest method importXtfWithDelete.
@Test
public void importXtfWithDelete() throws Exception {
EhiLogger.getInstance().setTraceFilter(false);
File fgdbFile = new File(fgdbFileName);
// Fgdb4j.deleteFileGdb(fgdbFile);
Class driverClass = Class.forName(FgdbDriver.class.getName());
File data = new File("test/data/Simple/Simple23a.xtf");
Config config = initConfig(data.getPath(), data.getPath() + ".log");
config.setFunction(Config.FC_IMPORT);
config.setDatasetName("importXtfWithDelete");
config.setCreateFk(config.CREATE_FK_YES);
config.setCreateNumChecks(true);
config.setTidHandling(Config.TID_HANDLING_PROPERTY);
config.setBasketHandling(config.BASKET_HANDLING_READWRITE);
config.setDeleteMode(Config.DELETE_DATA);
config.setCatalogueRefTrafo(null);
config.setMultiSurfaceTrafo(null);
config.setMultilingualTrafo(null);
config.setInheritanceTrafo(null);
// Ili2db.readSettingsFromDb(config);
try {
Ili2db.run(config, null);
} catch (Exception ex) {
EhiLogger.logError(ex);
Assert.fail();
}
}
use of ch.ehi.ili2db.gui.Config in project ili2db by claeis.
the class SimpleFgdbTest method exportXtfCoord.
@Test
public void exportXtfCoord() throws Exception {
importXtfCoord();
EhiLogger.getInstance().setTraceFilter(false);
File fgdbFile = new File(fgdbFileName);
// Fgdb4j.deleteFileGdb(fgdbFile);
Class driverClass = Class.forName(FgdbDriver.class.getName());
File data = new File("test/data/Simple/SimpleCoord23a-out.xtf");
Config config = initConfig(data.getPath(), data.getPath() + ".log");
config.setFunction(Config.FC_EXPORT);
config.setModels("SimpleCoord23");
Ili2db.readSettingsFromDb(config);
try {
Ili2db.run(config, null);
} catch (Exception ex) {
EhiLogger.logError(ex);
Assert.fail();
}
}
use of ch.ehi.ili2db.gui.Config in project ili2db by claeis.
the class SimpleFgdbTest method importXtfInheritanceSmart1.
@Test
public void importXtfInheritanceSmart1() throws Exception {
EhiLogger.getInstance().setTraceFilter(false);
File fgdbFile = new File(fgdbFileName);
Fgdb4j.deleteFileGdb(fgdbFile);
Class driverClass = Class.forName(FgdbDriver.class.getName());
File data = new File("test/data/Simple/SimpleInheritance23a.xtf");
Config config = initConfig(data.getPath(), data.getPath() + ".log");
config.setFunction(Config.FC_IMPORT);
config.setCreateFk(config.CREATE_FK_YES);
config.setCreateNumChecks(true);
config.setTidHandling(Config.TID_HANDLING_PROPERTY);
config.setBasketHandling(config.BASKET_HANDLING_READWRITE);
config.setCatalogueRefTrafo(null);
config.setMultiSurfaceTrafo(null);
config.setMultilingualTrafo(null);
config.setInheritanceTrafo(Config.INHERITANCE_TRAFO_SMART1);
// Ili2db.readSettingsFromDb(config);
try {
Ili2db.run(config, null);
} catch (Exception ex) {
EhiLogger.logError(ex);
Assert.fail();
}
}
Aggregations