Package org.openstreetmap.josm.data.osm.visitor

Examples of org.openstreetmap.josm.data.osm.visitor.MergeVisitor


    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;
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.data.osm.visitor.MergeVisitor

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.