Optional<OSMReport> report = cli.getGeogig().command(OSMImportOp.class)
.setDataSource(importFile.getAbsolutePath()).setMapping(mapping)
.setMessage(message).setNoRaw(noRaw).setAdd(add)
.setProgressListener(cli.getProgressListener()).call();
if (report.isPresent()) {
OSMReport rep = report.get();
String msg;
if (rep.getUnpprocessedCount() > 0) {
msg = String
.format("\nSome elements returned by the specified filter could not be processed.\n"
+ "Processed entities: %,d.\nWrong or uncomplete elements: %,d.\nNodes: %,d.\nWays: %,d.\n",
rep.getCount(), rep.getUnpprocessedCount(), rep.getNodeCount(),
rep.getWayCount());
} else {
msg = String.format("\nProcessed entities: %,d.\n Nodes: %,d.\n Ways: %,d\n",
rep.getCount(), rep.getNodeCount(), rep.getWayCount());
}
cli.getConsole().println(msg);
}
} catch (EmptyOSMDownloadException e) {