Class: GeoRuby::Rtree
- Inherits:
-
Object
- Object
- GeoRuby::Rtree
- Defined in:
- lib/georuby-ext/georuby/rtree.rb
Defined Under Namespace
Classes: Node, STRBuilder
Instance Attribute Summary collapse
-
#root ⇒ Object
Returns the value of attribute root.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(root) ⇒ Rtree
constructor
A new instance of Rtree.
Constructor Details
Instance Attribute Details
#root ⇒ Object
Returns the value of attribute root.
3 4 5 |
# File 'lib/georuby-ext/georuby/rtree.rb', line 3 def root @root end |
Class Method Details
.bulk_loading(elements, options = {}) ⇒ Object
9 10 11 12 |
# File 'lib/georuby-ext/georuby/rtree.rb', line 9 def self.bulk_loading(elements, = {}) = { :node_size => 2 }.merge() STRBuilder.new(elements, [:node_size]).to_rtree end |