With the fast development of city,to acquire and update urban fundamental data is more and more important.After the high-resolution satellite systems were put into operation,people attach more importance to the real-time,precise and authentic aerial imagery.The high-resolution aerial photographs are applied in more and more fields,and detecting buildings information from these photographs will be the important means of acquiring and updating urban fundamental information.Based on the relationship between the buildings shadow and the buildings real height of aerial imagery,the methods to extract the buildings height from their cast shadow are described in this article and the computer technology of detecting automatically buildings information from aerial imagery is realized.Taking the aerial imagery of Baoshan District of Shanghai as example,the autoptical data was compared with the computational data,and the result shows that the high-resolution imaging has a whopping potential of acquiring urban fundamental data.