A Planning Result Data Encryption Method with Separation of Spatial and Attribute Information

The method separately encrypts GIS attribute and spatial information using database storage and coordinate-based offset encryption, addressing the lack of unified encryption solutions in existing technologies and ensuring secure data usage.

CN115758429BActive Publication Date: 2025-07-15JIANGSU INST OF URBAN PLANNING & DESIGN
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211562482.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-07
Publication Date
2025-07-15
Estimated Expiration
2042-12-07

AI Technical Summary

Technical Problem

The prior art lacks a method to simultaneously process GIS spatial information and attribute information separately or jointly encrypted, and cannot meet different data security needs.

Method used

A method of encryption of planning results for separation of spatial and attribute information is proposed. By establishing an associated field ID, GIS data is separated into spatial and attribute information, and different encryption algorithms are used to process it separately. After decryption, it is combined and displayed and analyzed in the memory layer.

Benefits of technology

It realizes security protection of GIS data, does not affect actual use, meets different encryption needs, and realizes data visualization and analysis in the software system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115758429B_ABST
    Figure CN115758429B_ABST
Patent Text Reader

Abstract

The present invention discloses a planning result data encryption method for separating spatial and attribute information, which relates to technical fields such as urban planning and geographic information systems. First, the GIS vector data to be encrypted is divided into two parts: spatial information and attribute information. Secondly, specific encryption processes are respectively performed on the spatial information and the attribute information. Then, decryption processes are respectively performed on the spatial information and the attribute information. Finally, the association between the spatial information and the attribute information is realized in a newly created inner layer. The present invention can respectively perform encryption processing on the attribute information and the spatial information of GIS without affecting the overall use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to technical fields such as urban planning and geographic information systems, and particularly to a method for encrypting planning result data with separated spatial and attribute information. Background Art

[0002] The security issue of GIS vector data with geographical locations is becoming increasingly important in current technical fields such as urban planning and geographic information systems, and it is an important technical research task to protect data intellectual property rights. In actual production and business environments, there are usually the following several application scenarios. The first scenario is that only the attribute information of GIS needs to be encrypted, and the spatial information of GIS does not need to be encrypted. The second scenario is that only the spatial information of GIS needs to be encrypted, and the attribute information of GIS does not need to be encrypted. The third scenario is that both the spatial information and the attribute information of GIS need to be encrypted.

[0003] In the prior art, there is still a lack of technical solutions that can handle these situations simultaneously. At the same time, by creating a new in-memory layer, the spatial and attribute re-generated planning result data is solved to achieve the protected use of encrypted data. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to overcome the deficiencies of the prior art and provide a method for encrypting planning result data with separated spatial and attribute information. The present invention can encrypt the attribute information and spatial information of GIS separately, and can also encrypt both the attribute information and spatial information of GIS simultaneously, without affecting the usage requirements after the actual attribute information and spatial information are combined.

[0005] The present invention adopts the following technical solutions to solve the above technical problems:

[0006] The present invention provides a method for encrypting planning result data with separated spatial and attribute information, which divides the GIS vector data to be encrypted into spatial information and attribute information, and establishes an association field Id for association processing in both the spatial information and the attribute information.

[0007] Step S1, select any one of the following two encryption methods for encryption operations:

[0008] (1) Only encrypt the attribute information: store the attribute information part in a database with an encryption password in the form of a database table;

[0009] (2) Encrypt both the spatial information and the attribute information:

[0010] Encrypt each piece of geospatial location data in the spatial information part. Specifically: according to the odd and even bit order of the coordinate points of each piece of geospatial location data, perform offset processing on the coordinate positions respectively, and store the generated offset processing value result table as a database table together in a database with an encryption password; convert each piece of encrypted geospatial location data into a WKT file, and name each WKT file with the associated field ID. At the same time, store the attribute information part in a database with an encryption password.

[0011] Step S2: Develop a software system. Before loading GIS vector data into this system, perform decryption processing on two parts, namely spatial information and attribute information, corresponding to the two encryption methods selected in Step S1, where

[0012] For the spatial information part, display and analyze the graphic data in the software system by creating a new in-memory layer.

[0013] For the attribute information part, according to the different encryption methods, the decryption steps are as follows:

[0014] The decryption step for the first encryption method is: by inputting the database username and password in the program, read the attribute information part in the database, and at the same time, decrypt the text information of the key fields in the attribute part in reverse.

[0015] The decryption step for the second encryption method is:

[0016] 201. Create a new in-memory layer and create an associated field Id for the new in-memory layer.

[0017] 202. By inputting the database username and password in the program, read the offset processing result table in the database.

[0018] 203. According to the odd and even bit order of the coordinate points of the geospatial location data, decrypt the geospatial location data in each WKT file in reverse.

[0019] 204. Add each WKT data to the new in-memory layer. At the same time, for each decrypted WKT data, store the name of the corresponding WKT file in the associated field Id.

[0020] 205. Decrypt the text information of the key fields in the attribute part in reverse and store the text information in memory.

[0021] Step S3: In the developed software system, associate the decrypted spatial information part and attribute information part, and load the associated result into the map control for display and analysis.

[0022] Furthermore, for a planning result data encryption method with separated spatial and attribute information proposed by the present invention, when the developed software system is closed, the newly created in-memory layer is automatically cancelled, and the newly created inner layer is not allowed to be exported to a computer medium.

[0023] Furthermore, for a planning result data encryption method with separated spatial and attribute information proposed by the present invention, in the second encryption method of step S1, the offset processing values are two offset values randomly generated in advance for offset processing according to the different values in the associated field Id corresponding to each piece of geospatial location data; among them, one offset value is used for offset processing of the coordinate points of the geospatial location data with odd digits, and the other offset value is used for offset processing of the coordinate points of the geospatial location data with even digits.

[0024] Furthermore, for a planning result data encryption method with separated spatial and attribute information proposed by the present invention, both the spatial information and the attribute information construct a field with the same name, and the attribute values contained in this field have the characteristic of uniqueness.

[0025] Furthermore, for a planning result data encryption method with separated spatial and attribute information proposed by the present invention, in step S1, the text information of the key fields in the attribute information part is processed by an encryption algorithm, and the encryption algorithms include the MD5 message digest algorithm, DES encryption algorithm, RSA encryption algorithm, Base64 encoding algorithm, and AES encryption algorithm.

[0026] Furthermore, for a planning result data encryption method with separated spatial and attribute information proposed by the present invention, in the decryption step for the first encryption method, the text information is stored in the memory in tabular form.

[0027] Furthermore, for a planning result data encryption method with separated spatial and attribute information proposed by the present invention, in the decryption steps for the first and second encryption methods, when decrypting the text information of the key fields in the decrypted attribute part, the decryption algorithms include the MD5 message digest decryption algorithm, DES decryption algorithm, RSA decryption algorithm, Base64 encoding decryption algorithm, and AES decryption algorithm.

[0028] Furthermore, for a planning result data encryption method with separated spatial and attribute information proposed by the present invention, in step S3, the associated decrypted spatial information part and attribute information part are associated through the associated field Id to realize the association between the spatial information part and the attribute information part.

[0029] Furthermore, for a planning result data encryption method with separated spatial and attribute information proposed by the present invention, in step S3, the associated result is loaded into a map control for display and analysis, and the visualization of a thematical map and the layer annotation operation are implemented for a newly created in-memory layer through a program.

[0030] Compared with the prior art by adopting the above technical solution, the present invention has the following technical effects:

[0031] (1) The present invention provides a planning result data encryption method with separated spatial and attribute information, achieving the purpose of separately encrypting the attribute information and spatial information of GIS without affecting the overall use;

[0032] (2) Based on the internal correlation between the attribute information and spatial information of GIS, the present invention proposes a planning result data encryption method with separated spatial and attribute information. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a schematic diagram of the overall process of the present invention.

[0034] Figure 2 It is a schematic diagram of the composition of GIS vector data.

[0035] Figure 3 It is a schematic diagram of the process of associating spatial information and attribute information in GIS vector data through an association field.

[0036] Figure 4 It is a schematic diagram of different offset values corresponding to coordinates in the odd-even bit order.

[0037] Figure 5 It is a schematic diagram of the process of converting spatial information in GIS vector data into a WKT file.

[0038] Figure 6 It is a schematic diagram of the naming rule of the WKT file.

[0039] Figure 7 It is a schematic diagram of the process of converting the WKT file into spatial information.

[0040] Figure 8 It is a schematic diagram of the process of merging spatial information and attribute information by creating a new inner layer.

[0041] Figure 9 It is a schematic diagram of the layer annotation of the newly created inner layer in the bold font.

[0042] Figure 10 It is a schematic diagram of the layer annotation of the newly created inner layer in the regular script font. DETAILED DESCRIPTION OF THE INVENTION

[0043] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings:

[0044] The present invention proposes a planning result data encryption method for separating spatial and attribute information, which can encrypt only the attribute information of GIS according to requirements, or only encrypt the spatial information of GIS, or encrypt both the attribute information and spatial information of GIS at the same time.

[0045] The present invention provides a separate encryption processing scheme for the attribute information and spatial information of GIS. When GIS vector data needs to be used, the decrypted attribute information and spatial information of GIS are merged into an integral data in the inner layer. Since it is inner layer data, the merged integral data is not saved to the computer medium after use, thus realizing data protection and not affecting actual use. The specific steps are as follows:

[0046] Step 1) Refer to Attachments Figure 1 and Attachments Figure 2 , first divide the GIS vector data to be encrypted into two parts: spatial information and attribute information, and establish an association field Id for association processing in both the spatial information and attribute information parts. Refer to Attachments Figure 3 , where, both the spatial information and attribute information construct a field with the same name, and the attribute values contained in this field have the characteristic of uniqueness.

[0047] Step 2) The first encryption method:

[0048] Do not encrypt the spatial information part, and store the attribute information part in a database with an encryption password in the form of a database table. In this step, the text information of the key fields in the attribute information part is processed by an encryption algorithm. The encryption algorithms include MD5 message digest algorithm, DES encryption algorithm, RSA encryption algorithm, Base64 encoding algorithm, AES encryption algorithm, etc.

[0049] Step 3) The second encryption method:

[0050] Encrypt each geographical spatial position data in the spatial information part. The encryption algorithm is: perform offset processing on the coordinate positions respectively according to the odd and even bit order of the coordinate points of each geographical spatial position data. The offset processing values are two offset values randomly generated in advance according to the different values in the corresponding association field Id of each geographical spatial position data for offset processing.

[0051] Refer to Attachments Figure 4, where one offset value is used for offset processing of the coordinate points with odd positions of the geospatial location data, and the other offset value is used for offset processing of the coordinate points with even positions of the geospatial location data. The generated offset processing value result table is also stored in the database with an encrypted password as a database table. Further, each piece of encrypted geospatial location data is converted into a WKT file, and each WKT file is named with the associated field ID. At the same time, the attribute information part is stored in the database with an encrypted password.

[0052] See Appendix Figure 5 and Appendix Figure 6 , further, each piece of encrypted geospatial location data is converted into a WKT file, and each WKT file is named with the associated field ID. At the same time, the attribute information part is stored in the database with an encrypted password. In this step, the text information of the key fields in the attribute information part is processed by an encryption algorithm. The encryption algorithms include the MD5 message digest algorithm, DES encryption algorithm, RSA encryption algorithm, Base64 encoding algorithm, AES encryption algorithm, etc.

[0053] Step 4) Develop a software system. Before loading GIS vector data into this system, perform decryption processing on two parts: spatial information and attribute information for two encryption methods. Among them, the spatial information part is realized by creating a new in-memory layer to display and analyze graphic data in the software system.

[0054] Step 4.1) For the first encryption method:

[0055] Read the attribute information part in the database through the input of the database username and password in the program. At the same time, decrypt the text information of the key fields in the attribute part.

[0056] Step 4.2) For the second encryption method:

[0057] First, create a new in-memory layer and create an associated field Id for the new in-memory layer;

[0058] Second, see Appendix Figure 7 , read the offset processing result table in the database through the input of the database username and password in the program;

[0059] Third, decrypt each piece of geospatial location data in each WKT file according to the odd and even positions of the coordinate points of the geospatial location data;

[0060] Further, add each piece of WKT data to the new in-memory layer. At the same time, for each decrypted WKT data, store the name of the corresponding WKT file in the associated field Id;

[0061] Finally, decrypt the text information of the key fields in the decryption attribute section and store the text information in memory.

[0062] When decrypting the text information of the key fields in the decryption attribute section in Steps 4.1 and 4.2, the decryption algorithms include MD5 message digest decryption algorithm, DES decryption algorithm, RSA decryption algorithm, Base64 encoding decryption algorithm, AES decryption algorithm, etc.

[0063] Step 5) Refer to the appendix Figure 8 , in the developed software system, associate the decrypted spatial information part and attribute information part, and load the associated result into the map control for display and analysis. Among them, implement thematic map visualization and layer annotation operations on the newly created memory layer through the program.

[0064] For example, Figure 9 is a schematic diagram of layer annotation for creating an inner layer in the way of bold font. Figure 10 is a schematic diagram of layer annotation for creating an inner layer in the way of regular script font. That is, through the program, the newly created inner layer can meet different visualization requirements. The advantage of such processing is that the newly created inner layer is processed through the program, reducing the user's control over the newly created inner layer, so as to protect the confidential data as much as possible while meeting the specific needs of the user.

[0065] Step 6) When the developed software system is closed, the newly created memory layer is automatically cancelled, and the newly created inner layer is not allowed to be exported to computer media.

[0066] The above content is a further detailed description of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is only limited to these descriptions. For those of ordinary skill in the technical field to which the present invention belongs, without departing from the concept of the present invention, several simple deductions or substitutions can still be made, which should all be regarded as belonging to the protection scope of the present invention.

Claims

1. A planning result data encryption method with separated spatial and attribute information, characterized in that The GIS vector data to be encrypted is divided into spatial information and attribute information, and an association field Id for association processing is established for both the spatial information and the attribute information. Step S1: Select any one of the following two encryption methods for encryption operations: (1) Encrypt only the attribute information: Store the attribute information part in the form of a database table in a database with an encryption password. (2) Encrypt both the spatial information and the attribute information: Encrypt each piece of geospatial location data in the spatial information part. Specifically, perform offset processing on the coordinate positions according to the odd and even bit order of the coordinate points of each piece of geospatial location data, and store the generated offset processing value result table as a database table in a database with an encryption password together; convert each piece of encrypted geospatial location data into a WKT file, and name each WKT file with the association field ID. At the same time, store the attribute information part in a database with an encryption password. Step S2: Develop a software system. Before loading the GIS vector data into this system, perform decryption processing on the two parts of the spatial information and the attribute information corresponding to the two encryption methods selected in step S1, where For the spatial information part, display and analyze the graphic data in the software system by creating a new in-memory layer. For the attribute information part, according to the different encryption methods, the decryption steps are as follows: The decryption step for the first encryption method is: Read the attribute information part in the database by inputting the database username and password in the program, and at the same time, decrypt the text information of the key fields in the attribute part. The decryption step for the second encryption method is:

201. Create a new in-memory layer and create an association field Id for the new in-memory layer.

202. Read the offset processing result table in the database by inputting the database username and password in the program.

203. Decrypt the geospatial location data in each WKT file according to the odd and even bit order of the coordinate points of the geospatial location data.

204. Add each piece of WKT data to the new in-memory layer. At the same time, for each decrypted WKT data, store the name of the corresponding WKT file in the association field Id.

205. Decrypt the text information of the key fields in the attribute part and store the text information in memory. Step S3: In the developed software system, associate the decrypted spatial information part and the attribute information part, and load the associated result into the map control for display and analysis.

2. The encryption method for planning result data with separated spatial and attribute information according to claim 1, characterized in that, When the developed software system is closed, the new in-memory layer is automatically cancelled, and the new inner layer is not allowed to be exported to a computer medium.

3. A planning result data encryption method for separating spatial and attribute information according to claim 1, characterized in that, In the second encryption method of step S1, the offset processing values are two offset values randomly generated in advance according to the different values in the association field Id corresponding to each piece of geospatial location data; one offset value is used for the offset processing of the coordinate points of the geospatial location data with odd bits, and the other offset value is used for the offset processing of the coordinate points of the geospatial location data with even bits.

4. A planning result data encryption method for separating spatial and attribute information according to claim 1, characterized in that, Both the spatial information and the attribute information construct a field with the same name, and the attribute values contained in this field have the characteristic of uniqueness.

5. A planning result data encryption method for separating spatial and attribute information according to claim 1, characterized in that In step S1, the text information of the key fields in the attribute information part is processed by an encryption algorithm, and the encryption algorithms include the MD5 message digest algorithm, the DES encryption algorithm, the RSA encryption algorithm, the Base64 encoding algorithm, and the AES encryption algorithm.

6. A planning result data encryption method for separating spatial and attribute information according to claim 1, characterized in that, In the decryption step for the first encryption method, the text information is stored in the memory in tabular form.

7. A planning result data encryption method for separating spatial and attribute information according to claim 1, characterized in that, In the decryption steps for the first and second encryption methods, when decrypting the text information of the key fields in the anti-decryption attribute part, the decryption algorithms include the MD5 message digest decryption algorithm, the DES decryption algorithm, the RSA decryption algorithm, the Base64 encoding decryption algorithm, and the AES decryption algorithm.

8. A planning result data encryption method for separating spatial and attribute information according to claim 1, characterized in that, Step S3 associates the decrypted spatial information part and the attribute information part by using the association field Id to realize the association between the spatial information part and the attribute information part.

9. A planning result data encryption method for separating spatial and attribute information according to claim 1, characterized in that, Step S3 loads the associated result into the map control for display and analysis by implementing the thematic map visualization and layer annotation operations on the newly created memory layer through the program.

Citation Information

Patent Citations

  • Real estate registration data desensitization and spatialization method based on internet map geocoding engine

    CN110851463A

  • Vector geographic data encryption and decryption method and system

    CN112989394A