AnsweredAssumed Answered

Nearest points on two geometries

Question asked by spiskulaesriuk-esridist Employee on Oct 8, 2012
Latest reply on Oct 10, 2014 by

I have two geometries - a polyline and a polygon - and I want to find the two points (one on polyline and one on the polygon) that are the nearest.

According to documentation IProximityOperator has some methods that do return distance between two geometries, but there is no way to get the actual point, unless I am missing something. The only way seems to be query both point collections against the other geometry and then pick the resulting pair with smallest distance using QueryNearestPoint method. Isn't there a better way of doing it?