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)."
Screenshot
How to fix it?
Or is there another way to save the edited osm file?
I'm getting an exception:
Screenshot
How to fix it?
Or is there another way to save the edited osm file?