ArcGIS-based real estate house area calculation method
By establishing a file geodatabase and feature class in ArcGIS, and setting area calculation parameters using templates and Python language, the problem of time-consuming, labor-intensive and error-prone calculation of area for use of house space in the existing technology has been solved, and fast and accurate area calculation has been achieved. calculations, reducing the risk of errors and increasing efficiency.
Patent Information
- Application Number
- CN202310902151.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-21
- Publication Date
- 2025-01-21
AI Technical Summary
The prior art is time-consuming and labor-intensive in calculating the area of various housing spaces, and is prone to errors in area calculation due to large amount of data or negligence of staff.
The real estate house area calculation method based on ArcGIS is adopted. By establishing a file geodatabase, feature classes and corresponding fields in ArcGIS, the house space is classified into types according to its usage, and the area calculation parameters are set using templates and Python language to achieve fast and accurate area calculation. calculate.
It realizes the advantages of quickly and accurately identifying space usage and calculating the selected graphic area, reducing the risk of area calculation errors and improving the efficiency of graphic area calculation.
Smart Images

Figure FT_1
Abstract
Description
Technical Field
[0001] The present invention relates to the field of ArcGIS technology, and in particular to a method for calculating the area of real estate buildings based on ArcGIS. Background Art
[0002] In the conventional calculation of the area of various housing space uses, engineers create multiple layers in CAD software, draw graphics, place them in different layers, and then calculate the area of each type of graphics in EXCEL. Once there is a problem with the boundary of any graphic, it needs to be re-exported in CAD and re-calculated in EXCEL, which is time-consuming and labor-intensive. Summary of the invention
[0003] The purpose of the present invention is to provide a method for calculating the area of real estate buildings based on ArcGIS, which has the advantages of quickly and accurately identifying the use of space and calculating the area of selected graphics.
[0004] In order to achieve the above object, the present invention provides the following technical solutions:
[0005] A method for calculating the area of real estate housing based on ArcGIS, the specific steps are as follows:
[0006] S1: Create a file geodatabase, feature class, and corresponding fields for calculation in ArcGIS;
[0007] S2: According to the different uses of the house space, each element is divided into different types and marked in the field;
[0008] S3: Edit the feature class and add templates corresponding to each type according to the usage;
[0009] S4: Set area calculation parameters for different templates;
[0010] S5: Edit the feature class, select a template to draw the feature, or directly import the real estate database data to match the house space usage and number of floors;
[0011] S6: Use the selection box to select the elements whose area needs to be calculated. The selected elements will be highlighted in the attribute table. Then use the preset area calculation parameters to multiply the various types of uses and number of floors, and then sum them up to get the result of the area calculation.
[0012] The working principle and advantages of the present invention are: after the engineer has established the file geographic database, feature class, and corresponding fields, he can classify the uses of different house spaces, and then use the pre-written code to assign values to the calculation parameter fields. Finally, the feature class is edited, and the corresponding template is selected for graphic drawing, or real estate database data is imported. After matching the house space uses and the number of floors of each map spot, the area calculation of the framed element can be performed. The whole process is simple, convenient and fast, and the newly drawn graphics and area can be updated in a timely and fast manner.
[0013] In addition, the area calculation function of ArcGIS and Python language used in area calculation can quickly and accurately calculate the area of the selected graphics, reducing area calculation errors caused by large data volume or staff negligence, greatly improving the efficiency of graphic area calculation, and reducing the risk of area calculation errors.
[0014] Further, in step 1, the fields include usage purpose, area calculation parameters, number of floors, and area.
[0015] This setting makes it easy to gradually calculate the area calculation parameters and the final area according to the purpose of use.
[0016] Further, in step 2, the uses of the housing space include general housing, balconies, eaves corridors, colonnades, stairs, corridors, overhead corridors, etc.
[0017] This arrangement makes it easy to divide and classify the uses of various types of housing space and to calculate the area.
[0018] Further, in step 3, the template is in "New Template" in "Organize Element Templates" under the "Create Element" directory.
[0019] This setting makes it easy to directly assign usage attributes when drawing features without having to enter them again in the attribute table.
[0020] Furthermore, in step 4, the area calculation parameters are calculated by using the "Show Code Block" function in the "Field Calculator" and inputting the pre-written Python code into it, such as: the calculation parameter of a general house is assigned to 1, the calculation parameter of a fully calculated balcony is assigned to 1, and the calculation parameter of a half-calculated balcony is assigned to 0.5.
[0021] Python is a programming language embedded in ArcGIS. It is specially designed for ArcGIS secondary development. It is object-oriented, open source, and readable. It is easy to use, simple to implement, saves time, and improves efficiency. Code written in Python has a better fit with ArcGIS, and the overall method is more reliable and efficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 The present invention is a method flow chart of a first embodiment of a method for calculating the area of real estate buildings based on ArcGIS. DETAILED DESCRIPTION
[0023] The following is a further detailed description through specific implementation methods:
[0024] Embodiment 1:
[0025] The embodiment is basically as shown in the attached Figure 1 As shown: A method for calculating the area of real estate housing based on ArcGIS, comprising the following steps:
[0026] Step 1: Create a file geodatabase, feature class, and corresponding fields for calculation in ArcGIS. Specifically, the fields include usage, area calculation parameters, number of layers, and area.
[0027] Specifically, open ArcGIS, in the catalog panel on the right, select any directory - right-click - New - File geodatabase, select the newly created file geodatabase, right-click - New - Feature class - enter a name - select surface feature - Next - select the projection coordinates of the area where the graphics will be drawn - Next - Next - Next - Next - enter "Purpose", "Area calculation parameters", "Number of layers", "Area" in the field name column - select text, text, text, double precision for the corresponding data types respectively - completed.
[0028] Step 2: According to the different uses of the house space, classify each element into different types and mark them in the field. Specifically, the house space uses include general houses, balconies, eaves corridors, colonnades, stairs, corridors, overhead corridors, etc.
[0029] Specifically, select the feature class, right-click, edit the feature, start editing, create the feature, select a template, face, draw enough graphics, assign values to the "Use" field, assign values to general houses, balconies, eaves corridors, colonnades, etc., and ensure that each type of house space use is assigned a value, then save the edited content and stop editing. Then select the feature class, right-click, properties, symbol system, category, unique value, select "Use" in the value field, add all values, and confirm. The classification of the feature is completed.
[0030] Step 3: Edit the feature class and add templates corresponding to each type according to the usage. Specifically, the template is in the "Create Feature" directory, "Organize Feature Templates", and "New Template".
[0031] Specifically, select the feature class - right click - edit feature - start editing - create feature - organize templates - create new template - next - finish. The template is created.
[0032] Step 4: Set area calculation parameters for different templates. Specifically, the area calculation parameters are set by using the "Show Code Block" function in the "Field Calculator" to enter the pre-written code.
[0033] Specifically, open the feature attribute table, right-click "Calculate Parameters", select Field Calculator, check Python, check Show Code Block, and enter the code written in advance, such as: the calculation parameters of a general house, the value assigned in the code is 1, the calculation parameters of a fully calculated balcony are assigned in the code is 1, and the calculation parameters of a half-calculated balcony are assigned in the code is 0.5.
[0034] Step 5: Edit the feature class, select a template to draw the features, or directly import real estate database data to match the house space usage and number of floors.
[0035] Specifically, if you want to draw directly, select the feature class - right click - edit feature - start editing - create feature, select the required template in the create feature panel to draw, enter the number of layers, then save the edited content and stop editing.
[0036] If you import real estate database data directly, select the feature class in the catalog, right-click -- load -- load data -- select the data to be imported -- add -- next -- next -- target fields are "purpose" and "number of floors" and match the corresponding fields in "match source fields" -- next -- load all source data -- complete. Since real estate data is divided into house data and house accessory data, the "purpose" fields that need to be matched during import correspond to JZWMC and FSMC, and the "number of floors" fields that need to be matched correspond to ZCS and SZC.
[0037] For the processing of the SZC field of the building ancillary data, you need to use the field calculator to calculate it after importing the data. For example, if the SZC field in the real estate database is "1-3", enter the following formula "Right( [SZC],1 )-Left( [SZC],1 )+1" for calculation. If it is the "ceiling layer", directly assign a value of 1.
[0038] Step 6: Use the selection box to select the elements whose area needs to be calculated. The selected elements will be highlighted in the attribute table. Then use the preset area calculation parameters to multiply the various types of usage and number of floors, and then sum them up to get the result of the area calculation.
[0039] Specifically, select the feature class, right-click, open the attribute table, and use the mouse to select the feature. The selected feature will be highlighted in the attribute table. Then right-click "Calculate Parameters", select Field Calculator, and enter the code. Then right-click the "Area" field, select Field Calculator, and enter "[Purpose]*[Calculation Parameters]*[Number of Layers]". Finally, right-click the "Area" field and select the statistical function, and the areas of all selected features will be summarized.
[0040] The present embodiment provides a method for calculating the area of real estate houses based on ArcGIS, which is based on the classification function, template function, field calculator function, area calculation function and Python language of ArcGIS. By establishing a file geographic database, feature class and field, different house space uses can be classified, and then the calculation parameter fields are assigned using the pre-written code. Finally, the feature class is edited, and the corresponding template is selected for graphic drawing, or real estate database data is imported. After matching the house space use of each map spot, the area calculation of the framed element can be performed. The whole process is simple, convenient and fast, and the newly drawn graphics and area can be updated in a timely and fast manner. The area calculation errors caused by large data volume or negligence of staff are reduced, the efficiency of graphic area calculation is greatly improved, and the risk of area calculation errors is reduced.
Claims
1. A method for calculating the area of real estate based on ArcGIS, characterized in that: The specific steps are as follows: Step 1: Create a file geodatabase, feature class, and corresponding fields for calculation in ArcGIS; Step 2: Classify each element into different types according to the different uses of the house space and mark them in the field; Step 3: Edit the feature class and add templates corresponding to each type according to the usage; Step 4: Set the area calculation parameters for different templates; Step 5: Edit the feature class, select a template to draw the feature, or directly import the real estate database data to match the house space usage and number of floors; Step 6: Use the selection box to select the elements whose area needs to be calculated. The selected elements will be highlighted in the attribute table. Then use the preset area calculation parameters to multiply the various types of usage and number of floors, and then sum them up to get the result of the area calculation.
2. The method for calculating the area of real estate based on ArcGIS according to claim 1, characterized in that: In step 1, the fields include usage, area calculation parameters, number of floors, and area.
3. The method for calculating the area of real estate based on ArcGIS according to claim 1, characterized in that: In step 2, the uses of the housing space include general housing, balconies, eaves corridors, colonnades, stairs, corridors, overhead corridors, etc.
4. The method for calculating the area of real estate based on ArcGIS according to claim 1, characterized in that: In step 3, the template is in the "Create Elements" directory, in the "Organize Element Templates" and in the "New Template".
5. The method for calculating the area of real estate based on ArcGIS according to claim 1, characterized in that: In step 4, the area calculation parameters are calculated by using the "Show Code Block" function in the "Field Calculator" and entering the pre-written code into it, such as: the calculation parameter of a general house is assigned to 1, the calculation parameter of a fully calculated balcony is assigned to 1, and the calculation parameter of a half-calculated balcony is assigned to 0.5.