Skip to content

Commit

Permalink
Don't change addr:housenumber from 22b to 22B if casing is only dif…
Browse files Browse the repository at this point in the history
…ference
  • Loading branch information
DavidKarlas committed Nov 26, 2023
1 parent e77cac9 commit 1de80c0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions OsmGursBuildingImport/OsmBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ private static bool UpdateAttribute(TagsCollectionBase attributes, string attrib
{
return false;
}

if (attributeName == "addr:housenumber" && attributes[attributeName].Equals(newValue, StringComparison.OrdinalIgnoreCase))
{
return false;
}

attributes[attributeName] = newValue;

// Don't emit fixme for change from 128A to 128a.
if (!attributes[attributeName].Equals(newValue, StringComparison.OrdinalIgnoreCase))
{
AddFixmeAttribute(attributes,
$"\"{attributeName}\" changed from {attributes[attributeName]} to {newValue}.");
}
AddFixmeAttribute(attributes,
$"\"{attributeName}\" changed from {attributes[attributeName]} to {newValue}.");
return true;
}
else
Expand Down

0 comments on commit 1de80c0

Please sign in to comment.