internal void UpdateDistance(IGeometry geometry) { var polyline = geometry as IPolyline; if (polyline == null) return; Distance = GetGeodeticLengthFromPolyline(polyline); }