Calculate the Hilbert value of a point for use in a Hilbert R-Tree?

后端 未结 8 1453
北恋
北恋 2020-12-13 05:15

I have an application where a Hilbert R-Tree (wikipedia) (citeseer) would seem to be an appropriate data structure. Specifically, it requires reasonably fast spatial querie

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-13 05:29

    Fun question!

    I did a bit of googling, and the good news is, I've found an implementation of Hilbert Value.

    The potentially bad news is, it's in Haskell...

    http://www.serpentine.com/blog/2007/01/11/two-dimensional-spatial-hashing-with-space-filling-curves/

    It also proposes a Lebesgue distance metric you might be able to compute more easily.

提交回复
热议问题