Building detection and roof extraction in laser scanning data