Method: RTree.bsrt_read

Defined in:
lib/rtree.rb

.bsrt_read(io_arg) ⇒ RTree

Create a new RTree instance from BSRT (binary serialised R-tree) path or stream

Examples:

Read from path

rtree = RTree.bsrt_read('rtree.bsrt')

Parameters:

  • io_arg (String|IO)

    a path or readable stream

Returns:

  • (RTree)

    the newly instantiated RTree

See Also:



188
189
190
191
192
# File 'lib/rtree.rb', line 188

def bsrt_read(io_arg)
  RTree::IOUtil.io_with_mode(io_arg, 'rb') do |io|
    super(io)
  end
end