How are the elevations and height of obstacles determined?

How are the elevations and height of obstacles determined?

This can be achieved through and inclinometer which can be physically used to determine height via trigonometric formulas. Additionally, for larger buildings, it is possible to utilize estimation and extrapolation techniques (such as counting the number of floors) to determine the height from ground to top.