Join GitHub today
Find nearest neighbors even if no bbox intersection is found #3
Be careful about this one! Even though you may find a bbox intersection, it doesn't necessarily have to be the closest feature. See lines 4 and 7 in the picture below.
The correct steps to be taken: