Sir William Galloway — Scottish consultant mining engineer and academic (1840–1927)