ポイントを含むrtreeがあります。つまり、左==右&&上==下です。
...
idx = index.Index()
....
*print list(idx.nearest((rand_point[0], rand_point[1], rand_point[0], rand_point[1])))
...
left, bottom, right, top = (newpoint[0], newpoint[1], newpoint[0], newpoint[1])
idx.insert(i, (left, bottom, right, top))
...
ドットの代わりに、'point'、'newpoint'、'i' およびループ内にあるすべてのものを定義する長いコードがあります。* でマークされた行は、次のようなものを返します。
[0L]
[0L]
[2L]
[2L]
[1L]
[4L]
[6L]
[5L].....
問題は、この出力を知っているポイント、つまり (左、下、右、上) を取得する方法です。