Thank you, Howard, for giving some background. "Going deep" here is
beyond my skills, I think.
I now use a simple wrapper function/generator as workaround. It queries
the index with num_results set to powers of ten. Works for me so far:
def nearestObjects(ix, coord, lenIx):
n1 = min(lenIx, 10)
n2 = 0
while n1 > n2:
buffer = ix.nearest(coord, n1, objects=True)
for i in xrange(n2): buffer.next()
for x in buffer: yield x
n2 = n1
n1 = min(lenIx, 10 * n1)
Redoute
_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community