You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privatestaticAttributesTableTagsAndIdToAttributes(ICompleteOsmGeoosmObject){varattr=osmObject.Tags.ToAttributeTable();attr.Add("id",osmObject.Id);// Yes, this linereturnattr;}
The problem is: what if we already have id tag? It will simply throw ArgumentException from here and your data consumption is broken.
My proposal is to check whether AttributeTable already contains id tag, instead of precipitately adding it.
The text was updated successfully, but these errors were encountered:
Look at this line: https://github.com/OsmSharp/core/blob/develop/src/OsmSharp.Geo/DefaultFeatureInterpreter.cs#L524
The problem is: what if we already have
id
tag? It will simply throwArgumentException
from here and your data consumption is broken.My proposal is to check whether
AttributeTable
already containsid
tag, instead of precipitately adding it.The text was updated successfully, but these errors were encountered: