Bug fix for 'Fetch closest feature' tool.

This commit is contained in:
Guruprasad Anada
2009-09-10 17:35:21 -04:00
parent 4186a549de
commit 140b458dbb
+1 -1
View File
@@ -129,7 +129,7 @@ def proximal_region_finder(readers, region, comments=True):
map(outfields.append, result_down[-1].other) #The last element of result_down will be the closest element to the given interval
elif result_up:
map(outfields.append, result_up[res_ind].other)
else:
elif result_down:
map(outfields.append, result_down[-1].other) #The last element of result_down will be the closest element to the given interval
yield outfields