return tool;
}
@Override
public void mergeFrom(final Layer from) {
final MergeVisitor visitor = new MergeVisitor(data,
((OsmDataLayer) from).data);
for (final OsmPrimitive osm : ((OsmDataLayer) from).data
.allPrimitives()) {
// i++;
// if(i%100 == 0) {
// double perc = (((double)i) / ((double)max) * 100.0);
// System.out.format(" " + (int)perc + "%%");
// }
osm.visit(visitor);
}
visitor.fixReferences();
// System.out.println("");
Area a = data.getDataSourceArea();
// copy the merged layer's data source info;