Skip to content

Commit

Permalink
Prevent simplification to building=yes
Browse files Browse the repository at this point in the history
  • Loading branch information
praszuk committed Sep 7, 2024
1 parent fad7a80 commit bac0c52
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,14 @@ public static boolean isBuildingValueSimplification(@Nonnull OsmPrimitive curren
if (newValue == null) {
return true;
}
if (newValue.equals(currentValue)) {
return false;
}

if (newValue.equals("house") && HOUSE_DETAILS.contains(currentValue)) {
if (newValue.equals("yes") && !currentValue.equals("construction")) {
return true;
}
else if (newValue.equals("house") && HOUSE_DETAILS.contains(currentValue)) {
return true;
}
else if (newValue.equals("residential") && LIVING_BUILDINGS.contains(currentValue)) {
Expand Down

0 comments on commit bac0c52

Please sign in to comment.