A batch processing method for verifying and assigning urban building data
Through the batch processing method of GIS development technology, the automated verification of urban building data and batch attribute assignment are realized, and the labor time and error problems in the data correction and assignment process in the existing technology are solved, and the efficiency of three-dimensional modeling management is improved.
Patent Information
- Application Number
- CN202111282086.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-01
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2041-11-01
AI Technical Summary
In the prior art, the annotation classification and assignment process of urban building data requires a lot of manpower and time, and there are problems such as data errors and high correction difficulty when converting two-dimensional GIS data into three-dimensional models.
Using a batch processing method based on GIS development technology, the annotation verification and attribute assignment is performed through configuration file data, including the annotation verification and attribute assignment configuration template, and the self-built method is used to verify and assign values to achieve automation of urban building data. Verification and batch attribute assignment.
It greatly reduces the time and difficulty of data processing, improves the efficiency of three-dimensional modeling and management of urban building data, and supports rapid data correction and assignment of smart city construction.
Smart Images

Figure CN114119938B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of GIS development, and in particular to a batch processing method for verifying and assigning urban building data. Background Art
[0002] The verification of urban building data annotations is part of the optimization of the data model refinement in smart city construction. Annotations refer to various words and numbers that have an explanatory function. Urban building data annotations are mainly explanatory annotations that explain the categories of building models. The display and statistical distribution of the category annotations of urban building data play a vital role in smart city construction and urban governance. The sources of urban building data are as follows:
[0003] According to the classification of architectural reconstruction methods, they are divided into the following three categories: map-based methods, image-based methods, and point group-based methods. Image based modeling and rendering (IBMR) is a new visual modeling method that better solves the contradiction between model complexity and rendering realism and real-time performance in the 3D modeling process. It can obtain highly realistic scene expressions without the need for complex geometric models. It is increasingly used in the establishment of various virtual environments, especially the two modeling technologies based on graphics and images are used in combination to create highly realistic 3D landscape models.
[0004] According to the data source, it can be divided into three types: data acquired from a long distance (satellite images, aerial images, airborne laser scanning, etc.), data acquired from a close distance (close-range photography, close-range laser scanning, manual measurement) and GIS / CAD exported data.
[0005] At present, many cities use existing two-dimensional GIS data for simple modeling, which is low-cost and highly automated. It is also widely used in some fields that require rapid establishment of three-dimensional models. The human-computer interactive modeling method based on CAD is widely used for full three-dimensional realistic reconstruction of complex artificial targets. However, it often takes a lot of manpower and a long time to correct and check the annotations of these two-dimensional data accurately and precisely. It is time-consuming and laborious to find annotation errors in urban building data and assign values to data.
[0006] Based on this, the present invention proposes a batch processing method for verifying and assigning values to urban building data. Summary of the invention
[0007] In order to make up for the defects of the prior art, the present invention provides a simple and efficient batch processing method for verifying and assigning values of urban building data.
[0008] The present invention is achieved through the following technical solutions:
[0009] A batch processing method for verifying and assigning urban building data, characterized in that it comprises the following steps:
[0010] The first step is to configure the file data based on GIS development technology, including the configuration files related to annotation verification and the configuration files related to attribute assignment, and stipulate the corresponding relationship between the classification codes of urban building data and urban building annotation data;
[0011] Step 2: Select the urban building data layer and enter the name of the urban building annotation layer to be generated and the name of the error table identification file to realize batch processing of urban building data annotation verification and batch attribute assignment of urban building data.
[0012] In the first step, the annotation verification related configuration file includes two aspects of inspection. One is to filter the annotations by urban buildings, and check whether the number and content of the annotations on the current urban buildings are legal, including the urban building annotation verification configuration template and the urban building annotation verification; the second is to check whether the annotations are on the correct surface, including the annotation urban building verification configuration template and the annotation urban building verification.
[0013] In the first step, the attribute assignment related configuration file includes an attribute assignment configuration template and attribute assignment.
[0014] In the second step, the layers are loaded based on the configuration files and the layer attribute verification data and the attribute assignment batch processing of the urban building data are filtered and screened;
[0015] Among them, the batch processing method for urban building data annotation verification is to open the workspaces of the two and read the relevant feature classes after reading the urban building data and the annotation verification layer, and implement the verification function through the self-built class method ClassAnnotationCheck.fwAnnotationCheck() verification annotation method, and feedback the error results in the specified file;
[0016] The batch attribute assignment of urban building data refers to matching the urban building data that have undergone annotation verification, and implementing the batch attribute assignment function of the urban building data related to the annotation verification through the self-built class method ClassSplitAnnotation.fwPropertyGetValues() attribute assignment method.
[0017] The urban building data annotation verification batch processing method comprises the following steps:
[0018] (1) Load urban building data, read in urban building annotation data, and use IQueryFilter to determine whether the annotation intersects with urban buildings;
[0019] (2) The number of annotations on the surface is retrieved through ISpatialFilter, and the attribute value is used to determine whether the annotation is empty, thereby realizing batch processing of urban building data verification.
[0020] In the step (1), the urban building Shp data is loaded through IFeatureWorkspace, and its attribute values are filtered to correspond to the annotation configuration file, so as to verify whether the annotation is correct and whether the annotation falls on the surface.
[0021] The method for batch attribute assignment of urban building data first selects annotation layer data, inputs the name of the annotation layer file to be generated, then selects the error identification file and the output folder, selects and corrects the layer elements with errors in the annotation verification by creating the error identification file, and assigns attributes to the verified urban building data.
[0022] The specific steps include:
[0023] (1) Create a new Shp file for the feature class IFeatureClass, and add new feature attributes including but not limited to error status, error ID, and error text;
[0024] (2) Start editing the file with IWorkspaceEdit.StartEditing(true);
[0025] (3) Apply the urban building data verification process to find the IFeature element corresponding to the erroneous annotation in the urban building data;
[0026] (4) Generate new elements in the new Shp file according to the corresponding error situation and assign values to enter error information;
[0027] (5) Stop editing the IWorkspaceEdit.StopEditing(true) file to implement batch processing of city building attribute assignment.
[0028] The beneficial effects of the present invention are as follows: the batch processing method for verifying and assigning urban building data can not only batch process the urban building data required in the process of smart city construction, avoiding the correction and verification of data attributes when creating and generating three-dimensional urban building data, greatly reducing the data processing time and difficulty, but also contributes to the rapid three-dimensional modeling management of smart city building data. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0030] Attached Figure 1 Schematic diagram of the batch processing method for verifying and assigning values to urban building data according to the present invention.
[0031] Attached Figure 2 This is the model intention of the urban building data verification method of the present invention. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0033] The method of quickly building a three-dimensional model by using existing two-dimensional GIS data for simple modeling of urban building data requires annotation of the building category, which has a positive role in promoting smart city governance. However, in the actual production process, due to the large management scope and large data scale of urban building data, it is inevitable that there are some errors in the data. The method of finding errors and assigning attributes through human one-to-one correspondence is not advisable.
[0034] The batch processing method for verifying and assigning urban building data comprises the following steps:
[0035] The first step is to configure the file data based on GIS development technology, including the configuration files related to annotation verification and the configuration files related to attribute assignment, and stipulate the corresponding relationship between the classification codes of urban building data and urban building annotation data;
[0036] Step 2: Select the urban building data layer and enter the name of the urban building annotation layer to be generated and the name of the error table identification file to realize batch processing of urban building data annotation verification and batch attribute assignment of urban building data.
[0037] In the first step, the annotation verification related configuration file includes two aspects of inspection: one is to filter annotations by urban buildings, and check whether the number and content of annotations on the current urban buildings are legal, including urban building annotation verification configuration template and urban building annotation verification; the second is to check whether the annotations are on the correct surface, including annotation urban building verification configuration template and annotation urban building verification;
[0038] The configuration files related to attribute assignment include attribute assignment configuration template and attribute assignment.
[0039] Table 1 Urban building annotation verification template
[0040] Urban building classification code Annotation Classification Code Annotation text Is it nullable? 3108000500 3100971220 / 1 3103011500 3100971220 number 0 3103013500 3100951220 simple 1 3103020500 3100951220 establish 1 3107000500 3100951220 break 1 3103011500 3100951220 Animal*Toilet*Brick 0
[0041] The corresponding configuration file for checking annotations on urban buildings is: Urban Building Annotation Verification Configuration Template (see Table 1, field filling requirements see Table 2).
[0042] Table 2 Requirements for filling in the verification of urban building annotations
[0043]
[0044]
[0045] The corresponding configuration file for whether the annotation falls on the correct surface is: Annotation City Building Verification Configuration Template (see Table 3, field filling requirements see Table 4).
[0046] Table 3 Annotation of urban building verification template
[0047] Annotation Classification Code Annotation text Annotation separator Urban building classification code 3100971220 / yes 3108000500 3100971220 number no 3103011500 3100951220 simple no 3103013500 3100951220 establish no 3103020500 3100951220 break no 3107000500 3100951220 Sacrifice no 3103011500 3100951220 toilet no 3103011500 3100951220 brick no 3103011500
[0048] Table 4 Notes on filling requirements for urban building verification
[0049]
[0050]
[0051] The configuration files included in the attribute assignment are: attribute assignment configuration template (see Table 5, field filling requirements see Table 6).
[0052] Table 5 Attribute assignment configuration template
[0053]
[0054] Table 6 Requirements for filling in attribute assignment configuration
[0055]
[0056] In the second step, the layers are loaded based on the configuration files and the layer attribute verification data and the attribute assignment batch processing of the urban building data are filtered and screened;
[0057] Among them, the batch processing method for urban building data annotation verification is to open the workspaces of the two and read the relevant feature classes after reading the urban building data and the annotation verification layer, and implement the verification function through the self-built class method ClassAnnotationCheck.fwAnnotationCheck() verification annotation method, and feedback the error results in the specified file;
[0058] The batch attribute assignment of urban building data refers to matching the urban building data that have undergone annotation verification, and implementing the batch attribute assignment function of the urban building data related to the annotation verification through the self-built class method ClassSplitAnnotation.fwPropertyGetValues() attribute assignment method.
[0059] The urban building data annotation verification batch processing method comprises the following steps:
[0060] (1) Load urban building data, read in urban building annotation data, and use IQueryFilter to determine whether the annotation intersects with urban buildings;
[0061] (2) The number of annotations on the surface is retrieved through ISpatialFilter, and the attribute value is used to determine whether the annotation is empty, thereby realizing batch processing of urban building data verification.
[0062] In the step (1), the urban building Shp data is loaded through IFeatureWorkspace, and its attribute values are filtered to correspond to the annotation configuration file, so as to verify whether the annotation is correct and whether the annotation falls on the surface.
[0063] The method for batch attribute assignment of urban building data first selects annotation layer data and inputs the name of the annotation layer file to be generated; then selects the error identification file and the output folder, selects and corrects the layer elements with errors in the annotation verification by creating the error identification file, and assigns attributes to the verified urban building data.
[0064] The specific steps include:
[0065] (1) Create a new Shp file for the feature class IFeatureClass, and add new feature attributes including but not limited to error status, error ID, and error text;
[0066] (2) Start editing the file with IWorkspaceEdit.StartEditing(true);
[0067] (3) Apply the urban building data verification process to find the IFeature element corresponding to the erroneous annotation in the urban building data;
[0068] (4) Generate new elements in the new Shp file according to the corresponding error situation and assign values to enter error information;
[0069] (5) Stop editing the IWorkspaceEdit.StopEditing(true) file to implement batch processing of city building attribute assignment.
[0070] The embodiment described above is only one specific implementation of the present invention. Common changes and substitutions made by those skilled in the art within the scope of the technical solution of the present invention should be included in the protection scope of the present invention.
Claims
1. A batch processing method for verifying and assigning urban building data, characterized in that: The following steps are involved: The first step is to configure the file data based on GIS development technology, including the configuration files related to annotation verification and the configuration files related to attribute assignment, and stipulate the corresponding relationship between the classification codes of urban building data and urban building annotation data; The configuration files related to annotation verification include two aspects of inspection: one is to filter annotations by urban buildings, and check whether the number and content of annotations on the current urban buildings are legal, including urban building annotation verification configuration template and urban building annotation verification; the other is to check whether the annotations are on the correct surface, including annotation urban building verification configuration template and annotation urban building verification; Step 2: Select the urban building data layer and enter the name of the urban building annotation layer to be generated and the name of the error table identification file to realize batch processing of urban building data annotation verification and batch attribute assignment of urban building data.
2. The batch processing method for verifying and assigning urban building data according to claim 1 is characterized in that: In the first step, the attribute assignment related configuration file includes an attribute assignment configuration template and attribute assignment.
3. The batch processing method for verifying and assigning urban building data according to claim 2 is characterized in that: In the second step, the layers are loaded based on the configuration files and the layer attribute verification data and the attribute assignment batch processing of the urban building data are filtered and screened; Among them, the batch processing method for urban building data annotation verification is to open the workspaces of the two and read the relevant feature classes after reading the urban building data and the annotation verification layer, and realize the verification function through the self-built class method ClassAnnotationCheck.fwAnnotationCheck () verification annotation method, and feedback the error results in the specified file; The batch attribute assignment of urban building data refers to matching the urban building data that have undergone annotation verification, and implementing the batch attribute assignment function of the urban building data related to the annotation verification through the self-built class method ClassSplitAnnotation.fwPropertyGetValues() attribute assignment method.
4. The batch processing method for verifying and assigning urban building data according to claim 3 is characterized in that: The urban building data annotation verification batch processing method comprises the following steps: (1) Load urban building data, read in urban building annotation data, and use IQueryFilter to determine whether the annotation intersects with urban buildings; (2) The number of annotations on the surface is retrieved through ISpatialFilter, and the attribute value is used to determine whether the annotation is empty, thereby realizing batch processing of urban building data verification.
5. The batch processing method for verifying and assigning urban building data according to claim 4 is characterized in that: In the step (1), the urban building Shp data is loaded through IFeatureWorkspace, and its attribute values are filtered to correspond to the annotation configuration file, so as to verify whether the annotation is correct and whether the annotation falls on the surface.
6. The batch processing method for verifying and assigning urban building data according to claim 3 is characterized in that: The method for batch attribute assignment of urban building data first selects annotation layer data, inputs the name of the annotation layer file to be generated, then selects the error identification file and the output folder, selects and corrects the layer elements with errors in the annotation verification by creating the error identification file, and assigns attributes to the verified urban building data.
7. The batch processing method for verifying and assigning urban building data according to claim 6 is characterized in that: The method for assigning attributes to urban building data in batches comprises the following steps: (1) Create a new Shp file for the feature class IFeatureClass, and add new feature attributes including but not limited to error status, error ID and error text; (2) Start editing the file with IWorkspaceEdit.StartEditing(true); (3) Apply the urban building data verification process to find the IFeature element corresponding to the erroneous annotation in the urban building data; (4) Generate new elements in the new Shp file according to the corresponding error situation and assign values to enter error information; (5) Stop editing the IWorkspaceEdit.StopEditing(true) file to implement batch processing of city building attribute assignment.
