Land space planning data verification method and device, terminal equipment and storage medium

By using CRC and SM3 algorithms to generate verification code comparison in the land space planning change data review, the problems of high operating environment requirements and low verification efficiency in the existing technology are solved, and data without relying on GIS software is realized Checksum tamper detection.

CN118981804AActive Publication Date: 2024-11-19广东省土地调查规划院
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411463892.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-21
Publication Date
2024-11-19
Estimated Expiration
2044-10-21

AI Technical Summary

Technical Problem

The existing quality inspection software needs to load a variety of GIS software during the review of the data of land space planning changes, resulting in excessive requirements in the operating environment and low efficiency. It is impossible to perform data verification without relying on GIS software, and it is impossible to determine file transfer. Whether it has been tampered with or deleted during the process.

Method used

By obtaining the modified data compression package, decompressing and generating sub-data packets and verification code record files, using CRC cyclic redundancy verification algorithm and SM3 algorithm to generate verification codes, perform verification code comparison, and determine whether the data packet has been tampered with or Delete to realize verification without relying on GIS software.

Benefits of technology

It reduces the requirements of the system operating environment, improves verification efficiency, and can determine whether the file has been tampered with or deleted during the transmission process, simplifying the application process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118981804A_ABST
    Figure CN118981804A_ABST
Patent Text Reader

Abstract

The invention discloses a territorial space planning data verification method and device, terminal equipment and a storage medium, and the method comprises the steps: decompressing a change data compression package when the change data compression package is received, and generating a sub-data compression package of territorial space planning change data, a plurality of inspection result files and a verification code recording file; and generating a first verification code of the sub-package and the check result file, generating a second verification code corresponding to the number of the check result file, comparing the first verification code and the second verification code with the check code in the check code record file, and determining whether the change data package is tampered or deleted in the transmission process. Therefore, on one hand, the method can complete the verification of the land space planning change data and the inspection result under the condition of not depending on GIS (Geographic Information System) software; on the other hand, the verification efficiency is improved, whether the file is deleted in the transmission process or not can be determined, and whether the file content is tampered or not can also be determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data security technology, and in particular to a land space planning data verification method, device, terminal equipment and storage medium. Background Art

[0002] National land space planning change data (hereinafter referred to as "change data") is a type of data used to partially update the results of the national land space planning database. It generally contains geographic information data (geographic space database format) used to directly update the national land space planning database and business handling materials (file format) required for the change business. In the process of data quality inspection of national land space planning change data, the inspection results are generally generated by the quality inspection tool software after the quality inspection of the national land space planning change data and manual adjustment and improvement (such as exception description processing, supplementary supporting materials, etc.), quality inspection reports, error details, etc.

[0003] The land and space planning change data and its corresponding inspection results usually need to be submitted to the planning change review departments at all levels for review. At present, the quality inspection tool software is used to conduct quality inspection and review of the land and space planning change data. Generally, the quality inspection software extracts the key feature information of the spatial data from the land and space planning change data and matches it with the key information in the inspection result content, and generates verification information for the data content. Then the change data, test results and verification information are encrypted and packaged into independent data packets again. After obtaining the data packet, the reviewer uses the same quality inspection software to decrypt and release the data packet, generate content verification information, and compare the publicly released verification information to confirm whether the data has been tampered with during transmission.

[0004] In the process of reviewing the land space planning change data and inspection results, many links only need to review the relevant materials of the inspection results, and do not need to review the geographic information data. However, after receiving the data packet, the quality inspection software needs to open the geographic information data, and there are many types of storage formats for geographic information data. Different manufacturers' geographic information basic software (hereinafter referred to as "GIS software") has its own unique data format standards. Not only are most data formats not public, but there are also different versions of the same type of data format from the same manufacturer. The low-version basic software is incompatible with the high-version data format. This requires the user's computer to be loaded with several versions of GIS software, otherwise quality inspection cannot be performed. Therefore, the quality inspection software currently used has too many requirements for the running software and hardware environment, causing inconvenience in actual application and low efficiency of quality inspection review. Summary of the invention

[0005] The embodiment of the present invention provides a national land space planning data verification method, device, terminal device and storage medium, which can verify the national land space planning change data and inspection results without relying on GIS software. On the one hand, there are no excessive requirements for the system operating environment and it is easy to apply. On the other hand, the verification efficiency is also improved, which can not only determine whether the file is deleted during the transmission process, but also determine whether the file content has been tampered with.

[0006] An embodiment of the present invention provides a method for verifying land space planning data, including: Get the compressed package of the change data to be reviewed; Decompressing the change data compressed package to obtain a sub-data compressed package of the land space planning change data, a plurality of inspection result files, and a first verification code record file; Generate first file verification information according to the sub-data compression package, and generate a plurality of second file verification information according to the plurality of inspection result files; generating a plurality of first verification codes according to the first file verification information and each second file verification information, and generating a second verification code according to the number of the inspection result files; Generate a second verification code record file according to each first verification code and second verification code; The first verification code record file is compared with the second verification code record file. When it is determined that the verification code stored in the first verification code record file is completely consistent with the verification code in the second verification code record file, it is determined that the changed data compression package has not been tampered with.

[0007] Furthermore, before obtaining the compressed package of the change data to be reviewed, it also includes: Obtain national land space planning change data and its corresponding test result files; Compressing the land space planning change data to generate a sub-data compression package; generating third file verification information according to the sub-data compression package, and generating a plurality of fourth file verification information according to the plurality of inspection result files; generating a plurality of third verification codes according to the third file verification information and the fourth file verification information, and generating a fourth verification code according to the number of the inspection result files; Generate a first verification code record file according to the third verification codes and the fourth verification code; The sub-data compression package, the plurality of the detection result files, and the first verification code record file are packaged and compressed to generate a change data compression package.

[0008] Further, the generating of first file verification information according to the sub-data compression package and the generating of a plurality of second file verification information according to a plurality of the inspection result files include: Using a CRC cyclic redundancy check algorithm to generate a first CRC code corresponding to the sub-data compression package, and using the first CRC code as the first file verification information; A CRC cyclic redundancy check algorithm is adopted to generate a second CRC code for each detection result file, and the second CRC code is used as the second file verification information of each detection result file.

[0009] Further, the generating of a plurality of first verification codes according to the first file verification information and each second file verification information, and the generating of a second verification code according to the number of the inspection result files, comprises: Combining each of the second file verification information with the first file verification information to generate combined verification information corresponding to each of the second file verification information; Using the SM3 algorithm, generating a plurality of the first verification codes according to the combined verification information; The SM3 algorithm is used to generate a second verification code according to the number of the inspection result files.

[0010] Furthermore, after comparing the first verification code record file with the second verification code record file, the method further includes: When it is determined that the fourth check code does not match the second check code, or the number of third check codes in the first check code record file is inconsistent with the number of first check codes in the second check code record file, it is determined that the data of the change data compression package is incomplete, and a first alarm information is generated; When it is determined that any of the first verification codes does not match all of the third verification codes, it is determined that the data in the changed data compression package does not match, and a second alarm message is generated.

[0011] Another embodiment of the present invention provides a national land space planning data verification device, including: The data acquisition module is used to obtain the compressed package of the change data to be reviewed; A data decompression module is used to decompress the change data compression package to obtain a sub-compression package of the land space planning change data, a plurality of inspection result files, and a first verification code record file; A verification information generation module, used to generate first file verification information according to the sub-compression package, and to generate a plurality of second file verification information according to the plurality of inspection result files; A verification code generation module, used to generate a plurality of first verification codes according to the first file verification information and each second file verification information, and to generate a second verification code according to the number of the inspection result files; A verification code file generation module, used to generate a second verification code record file according to each first verification code and second verification code; The verification result generation module is used to compare the first verification code record file with the second verification code record file, and determine that the changed data compression package has not been tampered with when it is determined that the verification code stored in the first verification code record file is completely consistent with the verification code in the second verification code record file.

[0012] Further, the verification information generation module generates first file verification information according to the data compression package, and generates a plurality of second file verification information according to a plurality of the inspection result files, including: Using a CRC cyclic redundancy check algorithm to generate a CRC code corresponding to the data compression package as the first file verification information; A CRC cyclic redundancy check algorithm is adopted to generate a CRC code for each detection result file as the second file verification information of each detection result file.

[0013] Furthermore, the verification code generation module generates a plurality of first verification codes according to the first file verification information and each second file verification information, and generates a second verification code according to the number of the inspection result files, including: Combining each of the second file verification information with the first file verification information to generate combined verification information corresponding to each of the second file verification information; Using the SM3 algorithm, generating a plurality of the first verification codes according to the combined verification information; The SM3 algorithm is used to generate a second verification code according to the number of the inspection result files.

[0014] Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, a method for verifying land space planning data as described in any one of the embodiments is implemented.

[0015] Another embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute a land space planning data verification method as described in any one of the above embodiments.

[0016] The following beneficial effects are achieved by implementing the present invention: The present invention discloses a method, device, terminal equipment and storage medium for verifying land and space planning data. The method generates a sub-data compressed package of land and space planning change data, a plurality of inspection result files and a verification code record file by decompressing the change data compressed package upon receiving the change data compressed package, and generates a first verification code for the sub-compressed package and the inspection result file, and generates a second verification code corresponding to the number of inspection result files, and then compares the first verification code and the second verification code with the verification code in the verification code record file to determine whether the change data compressed package is tampered with or deleted during the transmission process. Therefore, the present invention can verify the land and space planning change data and the inspection result without relying on GIS software. On the one hand, the present invention does not have too many requirements on the system operating environment and is easy to apply. On the other hand, the verification efficiency is also improved, and it can not only determine whether the file is deleted during the transmission process, but also determine whether the file content is modified. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a flow chart of a method for verifying land space planning data provided by one embodiment of the present invention.

[0018] Figure 2 It is a structural schematic diagram of a national land space planning data verification device provided by one embodiment of the present invention.

[0019] Figure 3 It is another flow chart of a method for verifying land space planning data provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0022] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0023] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0024] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0025] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).

[0026] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, technical terms such as "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.

[0027] See also Figure 1 , is a flow chart of a method for verifying land space planning data provided by an embodiment of the present invention, comprising: S1. Obtain the compressed package of the change data to be reviewed; Preferably, before obtaining the compressed package of the change data to be reviewed, the process further includes: S01. Obtain national land space planning change data and its corresponding test result files; S02, compressing the land space planning change data to generate a sub-data compression package; S03, generating third file verification information according to the sub-data compression package, and generating a plurality of fourth file verification information according to the plurality of inspection result files; S04, generating a plurality of third verification codes according to the third file verification information and the fourth file verification information, and generating a fourth verification code according to the number of the inspection result files; S05. Generate a first verification code record file according to the third verification codes and the fourth verification code; S06. Pack and compress the sub-data compression package, the plurality of detection result files, and the first verification code record file to generate a change data compression package.

[0028] In a preferred embodiment of the present invention, Figure 3 As shown, when the land space planning change data and inspection results to be reviewed are obtained, the land space planning change data is first compressed as a whole into a ZIP file, that is, a sub-data compression package, and the third file verification information of the sub-data compression package is generated. Then, the inspection result corresponding to the land space planning change data is generated as a single file unit, and the fourth file verification information of the file itself is generated, and then the third verification code corresponding to each inspection result file is regenerated after the file verification information of the sub-data compression package is combined. Further, all the verification codes are saved in a text file recording the verification code in a one-code-one-line manner, that is, the first verification code record file. A verification code is also generated for the total number of all inspection result files, and is also written into the text file of the verification code record. Finally, the sub-data compression package, several test result files, and the first verification code record file are packaged and compressed to form a complete change data compression package of the land space planning change data, and the change data compression package is transmitted to the planning change review departments at all levels for approval and review at each level.

[0029] It should be noted that the geographic information data contained in the land and space planning change data is stored in the form of a geospatial database file. The geospatial database is generally implemented by modeling on the basis of some mainstream commercial database engines on the market. Therefore, when the database management program or GIS software loads and accesses these spatial data, since the database engine will directly record some operation log information in the data file, even if the geospatial data information is not modified, the data file will still change, causing the CRC check information to change. Therefore, it is impossible to simply confirm the uniqueness of the file by comparing the CRC check information of the file. Therefore, this embodiment utilizes the logical connection between the land and space planning change data and the inspection results, compresses the land and space planning change data into a ZIP file, and protects it as a whole to avoid accidental opening operations during the data transmission process, which causes the data to change.

[0030] S2. Decompress the change data compressed package to obtain a sub-data compressed package of the land space planning change data, a plurality of inspection result files, and a first verification code record file; S3, generating first file verification information according to the sub-data compression package, and generating a plurality of second file verification information according to the plurality of inspection result files; Preferably, generating first file verification information according to the sub-data compression package, and generating a plurality of second file verification information according to a plurality of the inspection result files, comprises: S31, using a CRC cyclic redundancy check algorithm to generate a first CRC code corresponding to the sub-data compression package, and using the first CRC code as the first file verification information; S32. Use a CRC cyclic redundancy check algorithm to generate a second CRC code for each test result file, and use the second CRC code as second file verification information for each test result file.

[0031] In a preferred embodiment of the present invention, the CRC cyclic redundancy check technology is used to obtain the first CRC code of the ZIP file of the land space planning change data as the first file verification information. Then all the files in the inspection result are traversed, and the CRC cyclic redundancy check technology is used for each file to obtain the second CRC code of all the files in the inspection result, and the second CRC code set of the inspection result file is obtained as the second file verification information.

[0032] S4, generating a plurality of first verification codes according to the first file verification information and each second file verification information, and generating a second verification code according to the number of the inspection result files; Preferably, the generating of a plurality of first verification codes according to the first file verification information and each second file verification information, and the generating of a second verification code according to the number of the inspection result files, comprises: S41, combining each of the second file verification information with the first file verification information respectively to generate combined verification information corresponding to each of the second file verification information; S42, using the SM3 algorithm to generate a plurality of first verification codes according to the combined verification information; S43. Using the SM3 algorithm, generate a second verification code according to the number of the inspection result files.

[0033] In a preferred embodiment of the present invention, the second CRC code of the inspection result file is combined with the first CRC code of the sub-data compression package to obtain the combined file verification information, i.e., the combined verification information. The CRC code of the combined verification information is respectively subjected to SM3 calculation to obtain the first verification code corresponding to the combined verification information. The number of inspection result files is counted, and the total number of files is subjected to SM3 calculation to obtain the second verification code.

[0034] It can be understood that this embodiment utilizes the first file verification information obtained from the sub-data compression package and the second file verification information of a single inspection result file to generate a first verification code for each inspection result file and a second verification code generated by the total number of inspection result files. Through this method, in subsequent data verification, the problem of matching and verifying the land space planning change data with the inspection results can still be solved without using GIS software to open the geographic information data to obtain spatial data features. On the one hand, the software environment requirements for verification are greatly reduced, and it is easy to apply. On the other hand, it also improves the inspection effect. The verification result can not only tell whether the file has been modified as a whole, but also determine which files have been modified in the inspection results.

[0035] S5. Generate a second verification code record file according to the first verification code and the second verification code; S6. Compare the first verification code record file with the second verification code record file, and when it is determined that the verification code stored in the first verification code record file is completely consistent with the verification code in the second verification code record file, determine that the changed data compression package has not been tampered with.

[0036] Preferably, after comparing the first verification code record file with the second verification code record file, the method further includes: S7. When it is determined that the fourth check code does not match the second check code, or the number of third check codes in the first check code record file is inconsistent with the number of first check codes in the second check code record file, determine that the data of the change data compression package is incomplete, and generate a first alarm information; S8. When it is determined that any of the first verification codes does not match all of the third verification codes, determine that the data in the changed data compression package does not match, and generate a second alarm message.

[0037] In a preferred embodiment of the present invention, by verifying the fourth check code and the second check code, and the number of the third check code and the number of the first check code, it is possible to double-verify whether the number of files in the change data compression package has changed. When the fourth check code does not match the second check code, it can be directly determined that the number of files has changed. When the fourth check code matches the second check code, but the number of the third check code is inconsistent with the number of the first check code, it can be determined that the number of files has changed and the fourth check code has been tampered with. When there is any of the first check codes that do not match all of the third check codes, it can be determined that the inspection result file corresponding to this first check code has been tampered with. Therefore, this embodiment reduces the dependence on a specific operating environment by improving the method for generating file verification information. It can support direct use of data in the original data format for manual verification without the need for corresponding customized development software, thereby reducing the cost of use. The verification method is improved, which can not only find out whether the data has changed, but also specifically locate which files have changed or are missing.

[0038] It should be noted that the method disclosed in this embodiment mainly relies on mature computer public algorithms (ZIP, SM4, CRC) and is simple to implement. There is no need to use third-party commercial components such as electronic signatures, GIS software, etc. It has low requirements for the operating environment, especially in the trust creation environment, the adaptation difficulty of software and hardware is low, and it can be easily applied to various types of land space planning change data inspection and approval systems. And the scheme of this embodiment is not only suitable for online transmission, but also for offline transmission. For scenarios involving sensitive information that must be transmitted offline when the business involves, further, the pairing verification algorithm used in this embodiment has good compatibility, and there is no need to consider the changes in the data format, data structure, data organization, etc. of the land space planning change data and inspection result data due to the planning change review policy requirements.

[0039] The present invention discloses a method for verifying land and space planning data. When receiving a change data compression package, the change data compression package is decompressed to generate a sub-data compression package of land and space planning change data, a plurality of inspection result files, and a verification code record file, and a first verification code of the sub-compression package and the inspection result file is generated, and a second verification code corresponding to the number of inspection result files is generated, and then the first verification code and the second verification code are compared with the verification code in the verification code record file to determine whether the change data compression package is tampered with or deleted during the transmission process. Therefore, the present invention can verify the land and space planning change data and the inspection results without relying on GIS software. On the one hand, the present invention does not have too many requirements on the system operating environment and is easy to apply. On the other hand, the verification efficiency is also improved, and it can not only determine whether the file is deleted during the transmission process, but also determine whether the file content is modified.

[0040] See also Figure 2 , is a schematic diagram of the structure of a national land space planning data verification device provided by an embodiment of the present invention, comprising: The data acquisition module is used to obtain the compressed package of the change data to be reviewed; A data decompression module is used to decompress the change data compression package to obtain a sub-compression package of the land space planning change data, a plurality of inspection result files, and a first verification code record file; A verification information generation module, used to generate first file verification information according to the sub-compression package, and to generate a plurality of second file verification information according to the plurality of inspection result files; A verification code generation module, used to generate a plurality of first verification codes according to the first file verification information and each second file verification information, and to generate a second verification code according to the number of the inspection result files; A verification code file generation module, used to generate a second verification code record file according to each first verification code and second verification code; The verification result generation module is used to compare the first verification code record file with the second verification code record file, and determine that the changed data compression package has not been tampered with when it is determined that the verification code stored in the first verification code record file is completely consistent with the verification code in the second verification code record file.

[0041] Preferably, the verification information generation module generates first file verification information according to the data compression package, and generates a plurality of second file verification information according to a plurality of the inspection result files, including: Using a CRC cyclic redundancy check algorithm to generate a CRC code corresponding to the data compression package as the first file verification information; A CRC cyclic redundancy check algorithm is adopted to generate a CRC code for each detection result file as the second file verification information of each detection result file.

[0042] Preferably, the verification code generation module generates a plurality of first verification codes according to the first file verification information and each second file verification information, and generates a second verification code according to the number of the inspection result files, including: Combining each of the second file verification information with the first file verification information to generate combined verification information corresponding to each of the second file verification information; Using the SM3 algorithm, generating a plurality of the first verification codes according to the combined verification information; The SM3 algorithm is used to generate a second verification code according to the number of the inspection result files.

[0043] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0044] Those skilled in the art can clearly understand that for the sake of convenience and brevity, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0045] Another preferred embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, it implements a method for verifying land space planning data as described in any one of the above embodiments.

[0046] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0047] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.

[0048] The memory can be used to store the computer program, and the processor realizes various functions of the terminal device by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0049] Another preferred embodiment of the present invention provides a storage medium, the storage medium is a computer-readable storage medium, the computer program is stored in the computer-readable storage medium, and the computer program, when executed by the processor, can implement the steps of the above-mentioned various method embodiments. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.

[0050] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for verifying land space planning data, characterized in that: include: Get the compressed package of the change data to be reviewed; Decompressing the change data compressed package to obtain a sub-data compressed package of the land space planning change data, a plurality of inspection result files, and a first verification code record file; Generate first file verification information according to the sub-data compression package, and generate a plurality of second file verification information according to the plurality of inspection result files; generating a plurality of first verification codes according to the first file verification information and each second file verification information, and generating a second verification code according to the number of the inspection result files; Generate a second verification code record file according to each first verification code and second verification code; The first verification code record file is compared with the second verification code record file. When it is determined that the verification code stored in the first verification code record file is completely consistent with the verification code in the second verification code record file, it is determined that the changed data compression package has not been tampered with.

2. A national land space planning data verification method as claimed in claim 1, characterized in that: Before obtaining the compressed package of the change data to be reviewed, it also includes: Obtain national land space planning change data and its corresponding test result files; Compressing the land space planning change data to generate a sub-data compression package; generating third file verification information according to the sub-data compression package, and generating a plurality of fourth file verification information according to the plurality of inspection result files; generating a plurality of third verification codes according to the third file verification information and the fourth file verification information, and generating a fourth verification code according to the number of the inspection result files; Generate a first verification code record file according to the third verification codes and the fourth verification code; The sub-data compression package, the plurality of the detection result files, and the first verification code record file are packaged and compressed to generate a change data compression package.

3. A national land space planning data verification method as claimed in claim 1, characterized in that: The step of generating first file verification information according to the sub-data compression package and generating a plurality of second file verification information according to the plurality of inspection result files comprises: Using a CRC cyclic redundancy check algorithm to generate a first CRC code corresponding to the sub-data compression package, and using the first CRC code as the first file verification information; A CRC cyclic redundancy check algorithm is adopted to generate a second CRC code for each detection result file, and the second CRC code is used as the second file verification information of each detection result file.

4. A national land space planning data verification method as claimed in claim 3, characterized in that: The step of generating a plurality of first verification codes according to the first file verification information and each second file verification information, and generating a second verification code according to the number of the inspection result files, comprises: Combining each of the second file verification information with the first file verification information to generate combined verification information corresponding to each of the second file verification information; Using the SM3 algorithm, generating a plurality of the first verification codes according to the combined verification information; The SM3 algorithm is used to generate a second verification code according to the number of the inspection result files.

5. A national land space planning data verification method as claimed in claim 2, characterized in that: After comparing the first verification code record file with the second verification code record file, the method further includes: When it is determined that the fourth check code does not match the second check code, or the number of third check codes in the first check code record file is inconsistent with the number of first check codes in the second check code record file, it is determined that the data of the change data compression package is incomplete, and a first alarm information is generated; When it is determined that any of the first verification codes does not match all of the third verification codes, it is determined that the data in the changed data compression package does not match, and a second alarm message is generated.

6. A national land space planning data verification device, characterized in that: include: The data acquisition module is used to obtain the compressed package of the change data to be reviewed; A data decompression module is used to decompress the change data compression package to obtain a sub-compression package of the land space planning change data, a plurality of inspection result files, and a first verification code record file; A verification information generation module, used to generate first file verification information according to the sub-compression package, and to generate a plurality of second file verification information according to the plurality of inspection result files; A verification code generation module, used to generate a plurality of first verification codes according to the first file verification information and each second file verification information, and to generate a second verification code according to the number of the inspection result files; A verification code file generation module, used to generate a second verification code record file according to each first verification code and second verification code; The verification result generation module is used to compare the first verification code record file with the second verification code record file, and determine that the changed data compression package has not been tampered with when it is determined that the verification code stored in the first verification code record file is completely consistent with the verification code in the second verification code record file.

7. A national land space planning data verification device as claimed in claim 6, characterized in that: The verification information generation module generates first file verification information according to the data compression package, and generates a plurality of second file verification information according to the plurality of inspection result files, including: Using a CRC cyclic redundancy check algorithm to generate a CRC code corresponding to the data compression package as the first file verification information; A CRC cyclic redundancy check algorithm is adopted to generate a CRC code for each detection result file as the second file verification information of each detection result file.

8. A national land space planning data verification device as claimed in claim 7, characterized in that: The verification code generation module generates a plurality of first verification codes according to the first file verification information and each second file verification information, and generates a second verification code according to the number of the inspection result files, including: Combining each of the second file verification information with the first file verification information to generate combined verification information corresponding to each of the second file verification information; Using the SM3 algorithm, generating a plurality of the first verification codes according to the combined verification information; The SM3 algorithm is used to generate a second verification code according to the number of the inspection result files.

9. A terminal device, characterized in that: It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a land space planning data verification method as described in any one of claims 1 to 5.

10. A storage medium, characterized in that: The storage medium includes a stored computer program, wherein, when the computer program is running, the device where the storage medium is located is controlled to execute a national land space planning data verification method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • File comparison method and device for HDFS (Hadoop Distributed File System)

    CN103377251A

  • Android system security verification method and verification device thereof

    CN104408370A

  • Land change survey data achievement quality control method and device and storage medium

    CN115618393A

  • Land change investigation data transmission method and device based on national cryptographic algorithm

    CN116155496A