Changes for tools/FixBaseMapRoads

This commit is contained in:
madwasp79 2019-08-09 14:48:43 +03:00
parent aee1ab9f87
commit 3f950ab57a
2 changed files with 9 additions and 5 deletions

View file

@ -127,14 +127,18 @@ public abstract class Entity implements Serializable {
public Entity(Entity copy, long id) {
this.id = id;
for (String t : copy.getTagKeySet()) {
putTagNoLC(t, copy.getTag(t));
}
copyTags(copy);
this.dataLoaded = copy.dataLoaded;
this.latitude = copy.latitude;
this.longitude = copy.longitude;
}
public void copyTags(Entity copy) {
for (String t : copy.getTagKeySet()) {
putTagNoLC(t, copy.getTag(t));
}
}
public Set<String> getChangedTags() {
return changedTags;
}

View file

@ -21,8 +21,8 @@ public class Way extends Entity {
super(id);
}
public Way(Way w) {
super(w.getId());
public Way(Way w, long id) {
super(w, id);
if (w.nodeIds != null) {
nodeIds = new TLongArrayList(w.nodeIds);
}