Class: Geospatial::HilbertIndex

Inherits:
Index
  • Object
show all
Defined in:
lib/geospatial/index.rb

Overview

Represents an index on the hilbert curve.

Instance Attribute Summary

Attributes inherited from Index

#axes, #bits

Instance Method Summary collapse

Methods inherited from Index

#&, #bit_length, #eql?, from_integral, #hash, #initialize, #inspect, #to_i

Constructor Details

This class inherits a constructor from Geospatial::Index

Instance Method Details

#to_ordinalObject



69
70
71
# File 'lib/geospatial/index.rb', line 69

def to_ordinal
	OrdinalIndex.new(Hilbert.unmap(@axes, @bits), @bits)
end