## 1 Introduction
The study found that 36,312 m\({}^{2}\) of the 1,243,540 m\({}^{2}\) of roofs have ideal characteristics for roof agriculture construction, which can produce about 600 tons of tomatoes annually, accounting for 50% of the total population of Rubi [8]. In the roof inventory of a certain block in Tianjin, [PERSON] considered 12 evaluation indicators, such as sunlight obstruction, roof materials, roof bearing capacity, slope, building location, building function, and height. Through inventory screening and spatial information data overlay analysis, [PERSON] finally obtained a roof suitability score and ranking that can be used for agricultural planting [14]. This method is more suitable for small-scale roof inventory or secondary inventory of agricultural potential on selected roofs. In summary, the current roof inventory standards mainly include roof area size, slope, height, building function, load capacity, lighting, and other aspects. The inventory standards in different regions are related to local building regulations, building characteristics, and residents' lifestyles. Therefore, it is necessary to conduct in-depth research on urban building roof inventory in different regions. The inventory of urban agricultural land in China started relatively late, and there is currently a lack of research on methods for the inventory and potential assessment of roofs and more types of spaces at the urban, county, and district levels. However, rooftop agriculture has obvious advantages in various development models of urban agriculture and has developed rapidly. Therefore, it is necessary to continue conducting building rooftop agriculture inventory and agricultural production potential research at the county and district levels. This article takes the rooftop space in the Shibei District of Qingdao as an example for conducting inventory and analysis of agricultural production potential. Here, agricultural production refers only to agricultural cultivation, and the planting varieties are mainly vegetables. Firstly, we established and selected inventory standards. Based on this, we collected rooftop spatial information data using satellite remote sensing maps,urban related data, on-site research, and other methods. With the help of the ArcGIS platform and combined with a comprehensive interpretation method, we constructed a spatial information database. Next, taking into account various inventory standards, we used GIS for overlay analysis, assisted by tools such as Excel ([[https://www.microsoft.com/zh-cn/microsoft-365/excel](https://www.microsoft.com/zh-cn/microsoft-365/excel)]([https://www.microsoft.com/zh-cn/microsoft-365/excel](https://www.microsoft.com/zh-cn/microsoft-365/excel)), accessed on 13 August 2023) and Photoshop ([[http://www.adobe.com/](http://www.adobe.com/)]([http://www.adobe.com/](http://www.adobe.com/)), accessed on 13 August 2023), to collect data and draw a spatial distribution map of agricultural potential. Subsequently, combined with design and technical strategies, based on different spatial attribute characteristics, agricultural production mode selection and potential evaluation calculations were carried out. The calculation was based on the annual crop yield per unit area and per capita annual consumption standards under different production methods, and objective data were used to achieve empirical analysis of the production potential of rooftop agriculture. Based on the above research, formulas for calculating the agricultural production potential of rooftops and urban spaces were derived, and we summarized the process and methods of roof space inventory and potential assessment and drew a framework diagram. The above research fills the gap in large-scale roof space inventory in China, improves the theoretical research related to urban space inventory, and provides a practical and convenient calculation basis and method reference for inventory and potential assessment work.