CLIArgumentsGroup argumentsGroup)
throws IOException {
long start = System.currentTimeMillis();
ConversionFacade cf = new ConversionFacade();
PerformanceListener perfListener =
new PerformanceListener(argumentsGroup.getRepresentative());
cf.addProgressListener(perfListener);
String interpolatorType = config.getString("terrainInterpolator");
if ("ZeroInterpolator".equals(interpolatorType)) {
cf.setTerrainEleInterpolatorFactory(
new DefaultFactory<TerrainInterpolator>(ZeroInterpolator.class));
} else if ("LeastSquaresInterpolator".equals(interpolatorType)) {
cf.setTerrainEleInterpolatorFactory(
new DefaultFactory<TerrainInterpolator>(LeastSquaresInterpolator.class));
} else if ("NaturalNeighborInterpolator".equals(interpolatorType)) {
cf.setTerrainEleInterpolatorFactory(
new DefaultFactory<TerrainInterpolator>(NaturalNeighborInterpolator.class));
}
String enforcerType = config.getString("eleConstraintEnforcer");
if ("NoneEleConstraintEnforcer".equals(enforcerType)) {
cf.setEleConstraintEnforcerFactory(
new DefaultFactory<EleConstraintEnforcer>(NoneEleConstraintEnforcer.class));
} else if ("SimpleEleConstraintEnforcer".equals(enforcerType)) {
cf.setEleConstraintEnforcerFactory(
new DefaultFactory<EleConstraintEnforcer>(SimpleEleConstraintEnforcer.class));
} else if ("LPEleConstraintEnforcer".equals(enforcerType)) {
cf.setEleConstraintEnforcerFactory(
new DefaultFactory<EleConstraintEnforcer>(LPEleConstraintEnforcer.class));
}
Results results = cf.createRepresentations(
argumentsGroup.getRepresentative().getInput(), null, config, null);
ImageExporter exporter = null;
for (CLIArguments args : argumentsGroup.getCLIArgumentsList()) {