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
Implement the option to mark a location in a source stream and the option to return to that location if the stream can be reset. An example of a possible API could be:
OsmStreamSource.NewHook() : Returns an object containing the information needed for the source to reset to the current location.
OsmStreamSource.MoveToHook(Hook h) : Seeks the stream to hook create in the call above.
OsmStreamSource.CanSeek : Returns true when the stream is seekable.
This allows OsmSharp to move to specific objects in source streams or to move to the first Node, Way or Relation in a stream without going over the entire stream again. Optionally, in sorted streams we can automatically create default hooks for the start of ways and relations, automatically exposing this functionality to any sorted stream.
These calls should throw exceptions when used on a non-seekable stream.
The text was updated successfully, but these errors were encountered:
Implement the option to mark a location in a source stream and the option to return to that location if the stream can be reset. An example of a possible API could be:
This allows OsmSharp to move to specific objects in source streams or to move to the first Node, Way or Relation in a stream without going over the entire stream again. Optionally, in sorted streams we can automatically create default hooks for the start of ways and relations, automatically exposing this functionality to any sorted stream.
These calls should throw exceptions when used on a non-seekable stream.
The text was updated successfully, but these errors were encountered: