Hello,
I'm using GetFeaturesNearestTo to retrieve the nearest features to a point within a layer to do a type of basic reverse geocoding.
But, since my layer is big and there a lot of features within it, if the point is far away from any feature, the search time increases without bound. I would like to limit the cost of this search. As far I am aware currently there is no way to do this.
What about a maximum search distance parameter ? This way I could have some control over the search.
First I would call it with a search radius of let's say 50 meters and if I'm not satisfied with the result I could widen the radius. Then I would know that it is not trying find a nearest feature 15 kilometers away from the point.
If I don't want to limit the search, I could just give a very big number and be done with it.
In short, I would like a cross between GetFeaturesNearestTo and GetFeaturesWithinDistanceOf.
What do you think about this, is this possible in short while ?
Regards,
Hakan Çelik