Beispiel #1
0
 public static MemoryDataSource CreateFromPBFStream(Stream stream)
 {
     return(MemoryDataSource.CreateFrom((OsmStreamSource) new PBFOsmStreamSource(stream)));
 }
 /// <summary>
 /// Creates a new memory data source from all the data in the given osm pbf stream.
 /// </summary>
 /// <param name="stream"></param>
 /// <returns></returns>
 public static MemoryDataSource CreateFromPBFStream(Stream stream)
 {
     return(MemoryDataSource.CreateFrom(new PBF.Processor.PBFOsmStreamSource(stream)));
 }
Beispiel #3
0
 /// <summary>
 /// Creates a new memory data source from all the data in the given osm pbf stream.
 /// </summary>
 /// <param name="stream"></param>
 /// <returns></returns>
 public static MemoryDataSource CreateFromPBFStream(Stream stream)
 {
     return(MemoryDataSource.CreateFrom(new OsmSharp.Osm.PBF.Streams.PBFOsmStreamSource(stream)));
 }
 /// <summary>
 /// Creates a new memory data source from all the data in the given osm xml stream.
 /// </summary>
 /// <param name="stream"></param>
 /// <returns></returns>
 public static MemoryDataSource CreateFromXmlStream(Stream stream)
 {
     return(MemoryDataSource.CreateFrom(new Xml.Processor.XmlOsmStreamSource(stream)));
 }
Beispiel #5
0
 /// <summary>
 /// Creates a new memory data source from all the data in the given osm xml stream.
 /// </summary>
 /// <param name="stream"></param>
 /// <returns></returns>
 public static MemoryDataSource CreateFromXmlStream(Stream stream)
 {
     return(MemoryDataSource.CreateFrom(new OsmSharp.Osm.Xml.Streams.XmlOsmStreamSource(stream)));
 }