Add nearest feature functionality to Runtime SDK

296
0
08-25-2016 06:05 PM
Status: Open
MichaelDavis3
Occasional Contributor III

Any chance we could get an additional capability in the SDK to return the closest feature in a AGSGDBFeatureTable for a given point?

 

Right now the only way I can figure out to do this is to do a measure to every feature and find the shortest distance.  This is rather expensive, especially if you are working with a large address point layer or roadway stations.  

 

Things can be more efficient by first creating a buffer of X distance from your location, selecting all points within the buffer, then calculating the closest feature from that subset... but it's still a rather complex undertaking for something that is pretty standard fare for GIS.