how to measure building height for planning