He was responsible for numerous surveys from the 1870s to the 1890s, mainly in the Prairie Provinces. From 1887 to 1889, Ogilvie was involved in George Mercer Dawson's exploration and survey expedition in what later became the Yukon Territory. He surveyed the Chilkoot Pass, the Yukon and Porcupine rivers. Ogilvie established the location of the boundary between the Yukon and Alaska on the 141st meridian west.