I have a rtree, which contains points, i.e. where left == right && top == bottom:
...
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))
...
Instead of dots there is some long code which defines 'point', 'newpoint', 'i' and all that is in the loop. A line marked with * returns smth like:
[0L]
[0L]
[2L]
[2L]
[1L]
[4L]
[6L]
[5L].....
The question is how to get a point, i.e. (left, bottom, right, top) knowing this output?