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
using var new_stream = new FileInfo("f:\\Downloads\\east.osm").OpenRead();
OsmStreamSource new_map = new XmlOsmStreamSource(new_stream);
// Some actions
var osm = new_map.SerializeToXml();
I'm getting an exception:
System.InvalidOperationException: "To be XML serializable, types which inherit from IEnumerable must have an implementation of Add(System.Object) at all levels of their inheritance hierarchy. OsmSharp.Streams.OsmStreamSource does not implement Add(System.Object)."
I'm getting an exception:
Screenshot
How to fix it?
Or is there another way to save the edited osm file?
The text was updated successfully, but these errors were encountered: