adapt building height to ground resolution