A method, electronic device and storage medium for automatically inheriting manual review records of spatial data quality inspection results
By introducing a batch number and MD5 code comparison mechanism in spatial data quality inspection, the verification records of the previous batch are automatically inherited, which solves the problem of difficult traceability of the relationship between different batches of data quality inspection in the same area unit, and realizes the analysis of changes in elements. Accurate positioning and review efficiency improvements.
Patent Information
- Application Number
- CN202011550867.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-24
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-12-24
AI Technical Summary
Existing spatial data quality inspection technology cannot trace the genealogical relationships of different batches of data in the same regional unit, making it difficult to determine the modified location of feature graphics or key attributes. When rectified data is resubmitted for quality inspection, full manual review is required, resulting in a large amount of repetitive work.
By introducing a batch number mechanism into the spatial data quality inspection, changes in elements are detected and the verification records of the previous batch are automatically inherited. Only the changed elements are reviewed, and MD5 codes are used to compare key attributes and graphic changes to realize the analysis between different batches. The verification results are inherited.
Accurately locate changes in elements and reduce repeated reviews. The more submissions are made, the fewer records will be manually reviewed in the final batch, significantly improving review efficiency.
Smart Images

Figure CN112613741B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of large-scale spatial data achievement quality inspection, and in particular to a method, electronic equipment and storage medium for automatically inheriting manual review records of spatial data quality inspection results. Background Art
[0002] The number of verification records generated by quality checks on large-scale spatial data is often considerable. For verification records that cannot be automatically judged correct, manual work is required to review them one by one and give a pass or fail conclusion. When the data of a regional unit is generally fed back as "failed", the entire batch of data needs to be sent back for rectification and the full amount of results needs to be resubmitted for inspection, which will also generate almost the same number of review records as the previous batch.
[0003] Existing spatial data quality inspection technical solutions often focus on the processing of a single quality inspection task, but fail to establish the relationship between different batches of data quality inspection tasks in the same regional unit, and the audit conclusions of unchanged elements cannot be inherited. The main problems are as follows:
[0004] (1) It is impossible to trace the “genealogy” relationship between different batches of data in the same regional unit, making it difficult to determine in which batch the element graphics or key attributes were modified;
[0005] (2) When the corrected data is resubmitted for quality inspection, the review records cannot distinguish whether the inspection results corresponding to the same elements and inspection items of the previous batch have been given a review conclusion. This batch still needs to be fully manually reviewed, and the review workload is equivalent to that of the previous batch. Summary of the invention
[0006] In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide a method for automatically inheriting manual review records of spatial data quality inspection results, so as to achieve accurate positioning of changes in elements between different batches, and the more submissions, the fewer the number of manual review records in the final batch, which effectively reduces the workload of repeated review and improves the review efficiency.
[0007] The present invention provides a method for automatically inheriting manual review records of spatial data quality inspection results, comprising the following steps:
[0008] Spatial data is stored in the database, and the spatial data submitted for quality inspection is organized according to the file directory;
[0009] Spatial data quality check: when receiving data to create a quality inspection task, check the organizational directory of the results to determine whether the organizational directory meets the requirements. Otherwise, it will not be accepted. In the process of creating a quality inspection task, establish a process and link task information record based on the unique code of the regional unit;
[0010] The verification records are stored in the table, the batch number of the regional unit is generated, the verification records generated by the execution of the quality inspection rules are saved in the database, and the administrative division code, process task code, link task code, and data batch are saved;
[0011] Manual verification record judgment: judging whether there is a manual verification record of the previous batch by the batch number, and if so, jumping to the element change detection step;
[0012] Feature change detection: compare the changes of the same spatial feature class in two batches of data, compare key attribute fields, filter non-key attribute fields, and determine whether the graphic changes are within the tolerance range;
[0013] Spatial data is associated with non-spatial manual review records. The review records in the manual review table of this batch are connected to the corresponding spatial feature class using the feature object ID as the unique identifier. The calculated map attribute information identifier is associated and updated to the map attribute information identifier field of the corresponding review record in the manual review table.
[0014] Manual review record inheritance: take out the previous batch of verification records of the regional unit from the manual review table and import them into the manual review temporary table. The records imported into the manual review temporary table only need to contain inheritance-related attributes. Use multiple fields as the unique attribute to connect the verification records of this batch in the manual review table with the verification records of the previous batch in the manual review temporary table. If there are records with exactly the same fields in the manual review table and the manual review temporary table, it means that there are elements in the same inspection item that have not really changed in the data submitted by different batches of the same regional unit. Use the verification status and verification results of the previous batch of verification records in the manual review temporary table to update the verification status and verification result values of the verification records of this batch in the manual review table, and set the record in the manual review table to the inherited state.
[0015] Furthermore, the field names of the manual review form include administrative division code, process task code, link task code, data batch, element name, element ID, geometric MD5 code, template identification code, rule code, verification content, error classification, error level, verification status, verification result, whether to inherit, verification time, and audit conclusion.
[0016] Furthermore, the field names of the manual review temporary table include process task code, link task code, data batch, geometric MD5 code, template identification code, rule code, verification content, error classification, verification status, and verification result.
[0017] Furthermore, the field names of the spatial feature class include object ID, feature code, land type code, ownership unit code, cultivated land type, cultivated land slope level, patch refinement code, planting attribute code, remarks, and geometry.
[0018] Furthermore, the unique code is the administrative division code.
[0019] Furthermore, in the step of checking and storing the records in the table, if the regional unit is creating a task for the first time, a starting batch number is generated; if the regional unit is not creating a task for the first time, the batch number of the current batch is generated incrementally based on the maximum batch number that has been generated.
[0020] Furthermore, in the element change detection step, the values of the geometric fields and several key fields of the objects in the database storing the spatial element class are merged into a comma-separated string, and the MD5 code is obtained by the MD5 function in the data storing the manual review table; the key attribute fields include land type code, ownership unit code, cultivated land type, cultivated land slope level, map refinement code, and planting attribute code; the non-key attribute fields include object ID and remarks.
[0021] Furthermore, in the step of associating the spatial data with the non-spatial manual review record, the graphic attribute information is identified as an MD5 value, and the calculated MD5 value is associated and updated to the geometry MD5 code field of the corresponding verification record in the manual review table;
[0022] In the manual review record inheritance step, the relevant attributes include process task ID, rule code, template identification code, geometry MD5 code, error classification, verification content, verification status, and verification result. The multiple fields include rule code, template identification code, geometry MD5 code, error classification, and verification content. If there are records in the manual review table and the manual review temporary table that are exactly the same in the rule code, template identification code, geometry MD5 code, error classification, and verification content fields, it means that there are elements in the same inspection item that have not really changed in the data submitted by different batches in the same area unit.
[0023] An electronic device, comprising: a processor;
[0024] A memory; and a program, wherein the program is stored in the memory and is configured to be executed by a processor, the program including a method for executing an automatic inheritance method for manual review records of spatial data quality inspection results.
[0025] A computer-readable storage medium stores a computer program, wherein the computer program is executed by a processor to provide a method for automatically inheriting manual review records of spatial data quality inspection results.
[0026] Compared with the prior art, the present invention has the following beneficial effects:
[0027] The present invention establishes batch numbers for tasks that submit different batches of quality inspections for the same regional unit. When the data is rectified and then submitted for inspection again, for situations where there are manual review records for the previous batch, firstly, the elements that have actually changed are quickly identified through spatial comparison, and then the review conclusions of the previous batch corresponding to the same inspection items that have not changed are inherited, and no repeated review is required, but only the newly generated review records of the changed elements need to be paid attention to. In this way, the precise positioning of the changes of elements between different batches is achieved, and the more times the submission is made, the fewer the number of manual review records in the final batch will be, which effectively reduces the workload of repeated review and improves the review efficiency.
[0028] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the present invention in conjunction with the accompanying drawings. The specific implementation of the present invention is given in detail by the following embodiments and their accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0030] Figure 1 It is a flow chart of a method for automatically inheriting manual review records of spatial data quality inspection results of the present invention;
[0031] Figure 2 This is a data flow diagram of a method for automatically inheriting manual review records of spatial data quality inspection results of the present invention. DETAILED DESCRIPTION
[0032] The present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form a new embodiment.
[0033] A method for automatically inheriting manual review records of spatial data quality inspection results, such as Figure 1 , Figure 2 As shown, the following steps are included:
[0034] Spatial data is stored in the database, and the spatial data submitted for quality inspection is organized according to the file directory;
[0035] Spatial data quality check: when receiving data to create a quality inspection task, check the organizational directory of the results to determine whether the organizational directory meets the requirements. Otherwise, it will not be accepted. In the process of creating a quality inspection task, the unique code of the regional unit, that is, the administrative division code, is used to establish a process and link task information record;
[0036] The verification records are stored in the table, and the batch number of the current batch of the regional unit is generated. The verification records generated by executing the quality inspection rules are saved in the database, and the administrative division code, process task code, link task code, and data batch are saved. In this embodiment, if the regional unit is creating a task for the first time, a starting batch number is generated. If the regional unit is not creating a task for the first time, the batch number of this batch is generated incrementally based on the maximum batch number that has been generated. The order of different batches can be determined by listing the batch numbers in ascending order. A quality inspection task has a unique process task code identifier.
[0037] Manual verification record judgment: determine whether there is a manual verification record of the previous batch by batch number. If yes, jump to the element change detection step;
[0038] Element change detection, changes in spatial data mainly include four situations: graphic changes, map attribute changes, all map attributes change, and map attribute unchanged. To compare the changes of the same spatial feature class of two batches of data, it is necessary to identify the differences in the patches between the two. For attribute changes, it is required to only compare key attribute fields (such as land type code, ownership unit code, cultivated land type, cultivated land slope level, patch refinement code, planting attribute code), and filter non-key attribute fields (such as object ID, remarks). For graphic changes, it is required to set a certain tolerance range (such as 0.01 meters), and changes within the tolerance range can be ignored.
[0039] In one embodiment, all changes are converted into MD5 values for comparison. The values of the geometry field and several key fields of the object in the SDE are combined into a comma-delimited string, and the MD5 function is customized in Oracle to obtain its MD5 code. The MD5 value identifies the corresponding attribute information of the unique spatial feature class. If the MD5 code is consistent, it means that the attribute information of the spatial feature is consistent, and it is an element that has not changed.
[0040] Spatial data is associated with non-spatial manual review records. The review records generated by the quality inspection rules are already in the manual review table. Each review record contains the spatial feature class name and feature object ID attributes. The review records in this batch of manual review tables are connected to the corresponding spatial feature class using the feature object ID as the unique identifier, and the calculated MD5 value is associated and updated to the geometry MD5 code field of the corresponding review record in the manual review table;
[0041] Manual review record inheritance: for data submitted in different batches of the same regional unit, for elements that have not changed between batches, the review conclusions of the previous batch corresponding to the same inspection items will be inherited.
[0042] Take out the previous batch of verification records of the regional unit in the manual review table and import them into the manual review temporary table. The records imported into the manual review temporary table only need to contain inheritance related attributes (process task ID, rule code, template identification code, geometry MD5 code, error classification, verification content, verification status, verification result). Use multiple fields (rule code, template identification code, geometry MD5 code, error classification, verification content) as the unique attribute to connect the verification records of this batch in the manual review table with the verification records of the previous batch in the manual review temporary table. If there is manual review, If there are exactly the same records in the fields (rule code, template identification code, geometry MD5 code, error classification, and verification content) between the manual review table and the temporary table for manual review, it means that there are elements in the same inspection item that have not really changed in the data submitted by different batches in the same area unit. The verification status and verification results of the previous batch of verification records in the temporary table for manual review are used to update the verification status and verification result values of the verification records of this batch in the manual review table, and the record in the manual review table is set to the inherited status, thereby realizing the automatic inheritance of the manual review records of the spatial data quality inspection results.
[0043] The manual review table T_RGFH is stored in the Oracle business database. The attribute structure (main fields) of the manual review table is shown in Table 1:
[0044] Table 1 Manual review attribute structure description table (part) (attribute table name: T_RGFH)
[0045]
[0046] The attribute structure (main fields) of the manual review temporary table (transaction-level temporary table) is as follows:
[0047] Table 2 Manual review temporary table attribute structure description table (part) (attribute table name: T_RGFH_TEMP)
[0048]
[0049] The spatial feature class DLTB is stored in the ArcGIS SDE spatial database. The spatial feature class attribute structure (main fields) is as follows:
[0050] Table 3 Land class patch attribute structure description table (part) (element class name: DLTB)
[0051] Serial number Field Name Field Code Field Type Field length Decimal Places Remark 1 Object ID OBJECTID Int 8 0 Not empty 2 Feature Code YSDM Int 6 0 3 Land type coding DLBM Int 8 0 4 Ownership unit code QSDWDM Int 1 5 Cultivated land type GDLX Char 32 0 6 Slope level of cultivated land GDPDJB NVARCHAR2 2 7 Spot thinning code TBXHDM Char 60 8 Planting attribute code ZZSXDM Char 60 9 Remark BZ Char 64 10 geometry SHAPE STGEOMETRY
[0052] An electronic device, comprising: a processor;
[0053] A memory; and a program, wherein the program is stored in the memory and is configured to be executed by a processor, the program including a method for executing an automatic inheritance method for manual review records of spatial data quality inspection results.
[0054] A computer-readable storage medium stores a computer program, wherein the computer program is executed by a processor to provide a method for automatically inheriting manual review records of spatial data quality inspection results.
[0055] The present invention establishes batch numbers for tasks that submit different batches of quality inspections for the same regional unit. When the data is rectified and then submitted for inspection again, for situations where there are manual review records for the previous batch, firstly, the elements that have actually changed are quickly identified through spatial comparison, and then the review conclusions of the previous batch corresponding to the same inspection items that have not changed are inherited, and no repeated review is required, but only the newly generated review records of the changed elements need to be paid attention to. In this way, the precise positioning of the changes of elements between different batches is achieved, and the more times the submission is made, the fewer the number of manual review records in the final batch will be, which effectively reduces the workload of repeated review and improves the review efficiency.
[0056] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in any form. Any ordinary technician in the industry can smoothly implement the present invention as shown in the drawings and above. However, any equivalent changes, modifications and evolutions made by technicians familiar with the profession without departing from the scope of the technical solution of the present invention using the technical content disclosed above are all equivalent embodiments of the present invention. At the same time, any equivalent changes, modifications and evolutions made to the above embodiments based on the essential technology of the present invention are still within the protection scope of the technical solution of the present invention.
Claims
1. A method for automatically inheriting manual review records of spatial data quality inspection results, characterized in that: The following steps are involved: Spatial data is stored in the database, and the spatial data submitted for quality inspection is organized according to the file directory; Spatial data quality check: when receiving data to create a quality inspection task, check the organizational directory of the results to determine whether the organizational directory meets the requirements. Otherwise, it will not be accepted. In the process of creating a quality inspection task, establish a process and link task information record based on the unique code of the regional unit; The verification records are stored in the table, the batch number of the regional unit is generated, the verification records generated by the execution of the quality inspection rules are saved in the database, and the administrative division code, process task code, link task code, and data batch are saved; Manual verification record judgment: judging whether there is a manual verification record of the previous batch by the batch number, and if so, jumping to the element change detection step; Feature change detection: compare the changes of the same spatial feature class in two batches of data, compare key attribute fields, filter non-key attribute fields, and determine whether the graphic changes are within the tolerance range; Spatial data is associated with non-spatial manual review records. The review records in the manual review table of this batch are connected to the corresponding spatial feature class using the feature object ID as the unique identifier. The calculated map attribute information identifier is associated and updated to the map attribute information identifier field of the corresponding review record in the manual review table. Manual review record inheritance: take out the previous batch of verification records of the regional unit from the manual review table and import them into the manual review temporary table. The records imported into the manual review temporary table only need to contain inheritance-related attributes. Use multiple fields as the unique attribute to connect the verification records of this batch in the manual review table with the verification records of the previous batch in the manual review temporary table. If there are records with exactly the same fields in the manual review table and the manual review temporary table, it means that there are elements in the same inspection item that have not really changed in the data submitted by different batches of the same regional unit. Use the verification status and verification results of the previous batch of verification records in the manual review temporary table to update the verification status and verification result values of the verification records of this batch in the manual review table, and set the record in the manual review table to the inherited state.
2. A method for automatically inheriting manual review records of spatial data quality inspection results according to claim 1, characterized in that: The field names of the manual review form include administrative division code, process task code, link task code, data batch, element name, element ID, geometric MD5 code, template identification code, rule code, verification content, error classification, error level, verification status, verification result, whether to inherit, verification time, and audit conclusion.
3. A method for automatically inheriting manual review records of spatial data quality inspection results as claimed in claim 2, characterized in that: The field names of the manual review temporary table include process task code, link task code, data batch, geometric MD5 code, template identification code, rule code, verification content, error classification, verification status, and verification result.
4. A method for automatically inheriting manual review records of spatial data quality inspection results as claimed in claim 2, characterized in that: The field names of the spatial feature class include object ID, feature code, land type code, ownership unit code, cultivated land type, cultivated land slope level, patch refinement code, planting attribute code, remarks, and geometry.
5. The method for automatically inheriting manual review records of spatial data quality inspection results according to claim 2, characterized in that: The unique code is the administrative division code.
6. The method for automatically inheriting manual review records of spatial data quality inspection results according to claim 1, characterized in that: In the step of checking the records and storing them in the table, if the regional unit is creating a task for the first time, a starting batch number is generated; if the regional unit is not creating a task for the first time, the batch number of the current batch is generated incrementally based on the maximum batch number that has been generated.
7. A method for automatically inheriting manual review records of spatial data quality inspection results as claimed in claim 4, characterized in that: In the element change detection step, the values of the geometric fields and several key fields of the objects in the database storing the spatial element class are combined into a string separated by commas, and the MD5 code thereof is obtained by using the MD5 function in the data storing the manual review table; The key attribute fields include land type code, ownership unit code, cultivated land type, cultivated land slope level, map refinement code, and planting attribute code; the non-key attribute fields include object ID and remarks.
8. A method for automatically inheriting manual review records of spatial data quality inspection results as claimed in claim 7, characterized in that: In the step of associating the spatial data with the non-spatial manual review record, the graphic attribute information is identified as an MD5 value, and the calculated MD5 value is associated and updated to the geometry MD5 code field of the corresponding verification record in the manual review table; In the manual review record inheritance step, the relevant attributes include process task ID, rule code, template identification code, geometry MD5 code, error classification, verification content, verification status, and verification result. The multiple fields include rule code, template identification code, geometry MD5 code, error classification, and verification content. If there are records in the manual review table and the manual review temporary table that are exactly the same in the rule code, template identification code, geometry MD5 code, error classification, and verification content fields, it means that there are elements in the same inspection item that have not really changed in the data submitted by different batches in the same area unit.
9. An electronic device, characterized in that include: processor; Memory; and a program, wherein the program is stored in the memory and configured to be executed by a processor, the program comprising instructions for executing the method according to any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program is executed by a processor to perform the method according to any one of claims 1 to 8.
