Building extraction using a 'planar patch' approach