Merge pull request #7398 from osmandapp/basemap_fix

Changes for tools/FixBaseMapRoads
This commit is contained in:
vshcherb 2019-08-09 14:50:22 +03:00 committed by GitHub
commit 8579573a02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);
}