Extracting polygonal building footprints from digital surface models: A fully-automatic global optimization framework