A method and apparatus for generating spatial codes

Through the automatic matching technology of generating space codes and information platforms, the problem of time-consuming and data leakage in calling land and space business data has been solved, and efficient and accurate business processing and data transfer have been achieved.

CN113656522BActive Publication Date: 2024-10-15SOUTHEAST UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110943082.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-17
Publication Date
2024-10-15
Estimated Expiration
2041-08-17

AI Technical Summary

Technical Problem

The existing method of calling land and space business data is time-consuming, involves too many departments and personnel, lacks efficiency and scientificity, and can easily lead to data leaks.

Method used

By generating spatial codes, we obtain land and space business data for coding, build an information platform to store business data and administrative boundary information, extract image contours to form vector contour data to match with administrative boundaries, embed coding, generate QR codes, and implement it through permission codes. Automatic matching and delivery.

Benefits of technology

Significantly shorten business processing time, improve efficiency, reduce the risk of data leakage, and achieve portable delivery and accurate data retrieval.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113656522B_ABST
    Figure CN113656522B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for generating a spatial code, which belongs to the field of land and space planning. It includes land and space business data collection, data encoding according to business type, data input into an information platform, data encoding according to a multi-scale spatial range, generation of spatial codes and data call. The method optimizes the data sorting and calling procedures by building an information platform, using artificial intelligence, contour extraction and graphic matching technology to encode land and space business data. The present invention can cope with the business handling needs in the field of land and space planning and management, realize the encoding based on the business type and multi-scale spatial range involved in the data, use the two-dimensional code as the transmission medium, automatically match the required data for business handling, and improve the work efficiency of sorting, calling, managing and displaying land and space data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of national land space planning, and in particular to a method and device for generating a spatial code. Background Art

[0002] The most common method for accessing data when handling land and space business is to hold a joint working meeting of multiple departments. The business handling unit submits a request to start work and lists a request for accessing data. Then, a joint working meeting is held under the organization of the superior management department, attended by personnel from various relevant departments. The department that holds the data to be accessed is determined one by one, and the department determines whether the business has the authority to access the data, and finally assists the business handling unit in obtaining the data. This method is extremely time-consuming, involves too many departments and personnel, is highly subjective, and lacks efficiency and scientificity. For smaller businesses, there is also a method of directly submitting data access requests to specific departments, and the relevant departments package the data they have and send it to the business handling unit. This method is not accurate, and the data provided is often far greater than the needs of the business, resulting in unnecessary disclosure of land and space data, increasing the risk of data leakage, and making it difficult to trace the source of the leakage. Summary of the Invention

[0003] In view of the deficiencies in the prior art, the present invention proposes a method and device for generating a spatial code.

[0004] The purpose of the present invention can be achieved through the following technical solutions:

[0005] A method for generating a spatial code comprises the following steps:

[0006] Obtain land and space business data and encode them;

[0007] Build an information platform to store the land space business data and administrative boundary information;

[0008] Extracting contour lines of an image in the land and space business data to form vector contour data, matching the vector contour data with the administrative boundary information, embedding a code into the land and space business data, and establishing a link association with the administrative boundary;

[0009] The code is translated to generate a spatial code, and the spatial code is embedded in the attributes of the land space business data.

[0010] Optionally, the method for extracting the contour lines of images in the land and space business data includes: randomly extracting image data of the land and space business data in the information platform and training a neural network model; extracting feature information of the target image, mapping it to the neural network for image recognition and classification, and screening out images containing spatial range boundaries in the information platform.

[0011] Optionally, the matching of the vector contour data with the administrative boundary information includes the following steps: by graphically matching the vector contour of the spatial range involved in the national land and space business data with the administrative boundary, the matching order is performed from top to bottom according to the scale; when the vector contour partially overlaps with an administrative boundary, you can continue to try to match the above-mentioned vector contour with the combined contour of the administrative boundary and its adjacent administrative boundary. If it does not match, then use the administrative boundary of the next level of the administrative boundary to match until the combined contour of the administrative boundary completely overlaps with the vector contour, and record the administrative division information of the combined contour; if the national land and space business data does not contain an image of the spatial range boundary, then the administrative division information that cannot be merged involved in the national land and space business data is supplemented by text information.

[0012] Optionally, the step of generating a spatial code includes: reading the digital code in the attributes of the land and space business information, each copy of the land and space business information contains at least one group of codes related to the business type and at least one group of codes related to the spatial range, converting all the codes in each copy of the land and space business information into binary, connecting all the binary codes, adding padding codes, and forming a data code; forming an error correction code, and then adding positioning pattern data, formatting data, and version information data, and drawing together to generate the spatial code.

[0013] Optionally, the method further comprises the steps of:

[0014] Generate an authorization code containing the business type, the spatial scope involved in the business, and the ID information of the business handler; the information platform provides the spatial code of the land and space business information based on the authorization code, calls the land and space business information after scanning the spatial code, and leaves an authorization trace.

[0015] Optionally, the characteristic information of the target image includes boundaries, colors, shadows and topological relationships.

[0016] Optionally, the error correction code is formed by a Reed-Solomon error correction algorithm.

[0017] Optionally, the information platform includes a front end for storing the administrative boundary information and a back end for storing the land space business data.

[0018] Optionally, the administrative boundaries include national scale, provincial scale, municipal scale, district and county scale, and village and town scale.

[0019] A computer-readable storage medium stores instructions, which, when executed, can implement any of the above-mentioned spatial code generation methods.

[0020] Beneficial effects of the present invention:

[0021] 1. Through the unified collection and coding of land and space business data, it is possible to avoid holding multi-departmental data communication meetings when handling business, saving a lot of manpower and material resources and greatly shortening the time for business handling;

[0022] 2. By building an information platform consisting of a geographic information front-end and a data storage back-end, it is possible to link land and space business data with multi-scale electronic maps, thereby enabling intuitive display and query of business data;

[0023] 3. By using artificial intelligence, contour extraction, and pattern matching technologies to identify the spatial scope of business data, the workload of identifying and classifying business data can be greatly reduced, improving work efficiency and promoting paperless office.

[0024] 4. Using the authority space code and data space code as the medium, it can realize the automatic matching of business processing and required data, greatly improving the speed of data retrieval;

[0025] 5. Through the production and use of permission space code cards, portable data transmission can be achieved while reducing data duplication. By scanning the permission space code to log in to the information system, traces of login and data download are left, further limiting the possibility of data leakage. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The present invention will be further described below with reference to the accompanying drawings.

[0027] Figure 1 Flowcharts of some exemplary spatial code generation methods of the present application. DETAILED DESCRIPTION

[0028] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present invention.

[0029] like Figure 1 As shown, in some examples of the present invention, a method for generating a spatial code is disclosed, comprising the following steps:

[0030] Collection and coding of land and space business data, obtaining the data required for business handling by the three departments under the Department of Natural Resources of the target province, namely the Land and Space Planning Bureau, the Land and Space Use Control Office, and the Land and Space Ecological Restoration Office, coding the data according to the business type involved, marking the code on the cover of the electronic data through a watermark, and stamping the code on the cover of the paper data through an adjustable rotary number stamp, and digitizing the data through a scanner, and embedding the coding information into the attributes of the data.

[0031] Among them, the information required for handling the business includes various geographic and spatial surveying and mapping data (such as satellite images, land use CAD surveying maps, building outline CAD surveying maps, drone oblique photography data, national land space geographic information data, etc.), various survey and registration statistical data (such as census data, real estate registration data, business license registration data, economic and industrial statistics, land carrying capacity data, etc.), various types of planning documents from various periods (such as urban master plans, land use plans, national economic and social development plans, forest and farmland protection plans, comprehensive transportation plans, water resources plans, etc.), various types of policy documents from various periods (such as various laws, regulations, rules, specifications, opinions, notices, announcements, and communiqués formulated and issued by the government), various documentary materials (such as local historical records, yearbooks, books, newspapers and magazines, interview records, etc.), and other business information data (such as contracts, application forms, information forms, certificate copies, invoice copies, meeting minutes, etc.).

[0032] The data encoding mentioned above refers to encoding the data in the form of 6 digits, the first digit represents the coding type (divided into business type code, space type code and handler ID type code, where the business type code is "1", the space type code is "2", and the handler ID type code is "3"), the 2nd to 3rd digits represent the business department (accurate to the specific department for coding), and the 4th to 6th digits represent the business type (accurate to each business of each department). Data involving multiple business types will be encoded in multiple groups.

[0033] The embedding of coded information into the attributes of data refers to creating an Excel data list, recording the name, source, time, number and other information of each data item, and creating a hyperlink between the Excel cell and the file / folder through the "Insert-Hyperlink" function.

[0034] The data input information platform uses a cloud computing workstation (processor with more than 32 cores and total storage capacity of more than 2EB) to establish an information platform. The information platform consists of a geographic information front-end and a data storage back-end. The geographic information front-end includes administrative boundary information of various scales (national scale, provincial scale, municipal scale, district and county scale, and village and town scale). The data storage back-end is used to store the land and space business data input in real time through the above steps.

[0035] Among them, the storage of land and space business information data input in real time through the above steps refers to storing electronic land and space business information through cloud disk technology, and linking it with the data storage backend of the information platform in real time; editing Excel data lists through cloud office technology, and linking it with the data storage backend of the information platform in real time.

[0036] The data is encoded according to the multi-scale spatial range, and the artificial intelligence algorithm is used to read and filter out the images containing the spatial range boundaries in the data, extract the spatial range contour lines in the image, and form vector contour data.

[0037] Among them, the said reading and screening out images containing spatial range boundaries in the data through artificial intelligence algorithms refers to randomly extracting a certain number of image data of land and space business data from the information platform, and dividing them into training sets, test sets and verification sets in a ratio of 3:1:1. By extracting the features of the boundary, color, shadow, and topological relationship of the target image, mapping them to the neural network for image recognition and classification, thereby forming intelligent rules and screening out all images containing spatial range boundaries on the information platform.

[0038] Among them, the random extraction of a certain number of image data of land and space business information in the information platform refers to the batch extraction of images contained in all files in the information platform. The images in PDF format text can be exported to JPG format files in batches through the "View-Tools-Document Processing-Export All Images" function of Adobe.Acrobat.X.Pro software, and Doc or Docx files can be exported to JPG format files in batches through the "Save As-Keep Type-Web Page (*.htm; *.html)" function, and then a part of all the extracted images is randomly extracted as samples for artificial intelligence training, testing and verification.

[0039] The extraction of spatial range contour lines in an image refers to extracting contour lines through image processing software. This is a conventional operation of image processing and can be implemented by a variety of software, for example, using the "Contour Tracing - Line Drawing" function of CorelDRAW software.

[0040] Graphically match the data vector outline with the administrative boundaries in the geographic information front end, and encode the data according to the complete administrative divisions contained in the data. If the data involves multiple administrative divisions that cannot be merged (for example, two adjacent provinces, or one province plus multiple adjacent cities), the number of codes is equal to the number of administrative divisions that cannot be merged; the code is marked on the data cover through a watermark and embedded in the data attributes to establish a link with the administrative boundary graphics of the geographic information front end.

[0041] Among them, the method for obtaining the complete administrative division information contained in the data refers to graphically matching the vector outline of the spatial range involved in the data with the administrative boundaries in the geographic information front end (which can be done through the outline matching algorithm of OpenCV software), and the matching order is performed from top to bottom according to the scale; when the data vector outline partially overlaps with a certain administrative boundary, you can continue to try to see if the data vector outline matches the combined outline of the administrative boundary and its adjacent administrative boundaries. If they do not match, the administrative boundary of the next level of the administrative boundary is used for matching until the combined outline of the administrative boundary completely overlaps with the data vector outline, and the administrative division information of the combined outline is recorded; if the data does not contain an image of the spatial range boundary, the administrative division information that cannot be merged involved in the data is supplemented by text information.

[0042] The so-called non-mergeable administrative divisions refer to the situation where the data involves multiple administrative divisions and these administrative divisions cannot be merged into higher-level administrative divisions. In this case, the information of these non-mergeable administrative divisions should be identified; for example, the "Plan for a Certain Metropolitan Area" involves 9 complete prefecture-level cities, 1 complete county-level city and 1 complete urban district, then the 11 administrative division information of the metropolitan area should be identified, and the data should be coded for 11 groups of spaces.

[0043] The coding of data according to the complete administrative divisions contained in the data means that the data number at the national scale uses a 2-digit code, the provincial scale uses a 4-digit code, the municipal scale uses a 6-digit code, the district and county scale uses an 8-digit code, and the village and town scale uses an 11-digit code.

[0044] Generate a spatial code, use binary method to summarize and translate all the codes of the data, generate a two-dimensional spatial code for the data, add a new cover page for the electronic data, mark the QR code on the new data cover, and embed the QR code into the attributes of the data.

[0045] Among them, the two-dimensional spatial code of the generated data refers to reading the digital code in the data attributes. Each document contains at least one group of codes related to the business type and at least one group of codes related to the spatial range. All codes in each document are converted into binary respectively, all binary codes are connected, and padding codes are added to form the data code of the two-dimensional code; the error correction code is formed by the Reed-Solomon error correction algorithm, and then after adding positioning pattern data, formatting data and version information data, a two-dimensional code diagram is drawn together.

[0046] According to the information retrieval requirements for business processing, and in accordance with the rules of the above steps, generate an authority space code containing the business type, the spatial scope involved in the business, and the ID information of the business handler; use a card printer to print the authority space code, business type, and business handler ID on a prefabricated PVC white card to produce an authority space code card.

[0047] To call data, use a terminal computer connected to a QR code scanning device to scan the permission space code card, log in to the information platform system, view the spatial scope involved in the business on the geographic information front end, click the corresponding administrative area at different scales, and obtain the data space code with overlapping coding information; scan the data space code, view the information contained in the data space code, call the required data, and leave a trace of permission.

[0048] Among them, the said clicking on the corresponding administrative district at different scales refers to establishing a connection between the front-end and the back-end in the information platform system. At different zoom scales, the outlines of each administrative district on the front-end can be clicked. When clicking, it can be associated with the QR code of the back-end information containing the administrative district code and the business code that can be viewed under the user's authority.

[0049] In a specific example of the present invention, the technical solution of the present invention is described in detail by taking the construction of the spatial code system of a provincial natural resources department and the business data retrieval program compiled by the "National Land Space Master Plan of a Province".

[0050] (1) Collection and coding of land and space business data. The specific steps include:

[0051] (1.1) According to the data list in Table 1, obtain the data required for the business operations of the three departments under the Department of Natural Resources of a province: the Land and Space Planning Bureau, the Land and Space Use Control Division, and the Land and Space Ecological Restoration Division. Code the data according to the business types involved. The code uses a 6-digit number, with the first digit representing the code type, the second and third digits representing the business department, and the fourth to sixth digits representing the business type. Data involving multiple business types will be coded in multiple groups.

[0052] Table 1 List of national land space business data

[0053]

[0054] (1.2) Electronic documents shall have the code marked on the cover of the document via a watermark, and paper documents shall have the code stamped on the cover of the document via an adjustable rotary number stamp. The documents shall be digitized using a high-speed document scanner with a resolution of 150dp and a scanning width of A2;

[0055] (1.3) Create an Excel data list, record the name, source, time, number and other information of each data, and use the "Insert-Hyperlink" function to create a hyperlink between the Excel cell and the file / folder (Table 2).

[0056] Table 2 Backend data attribute Excel table (partial, information has been processed, only as an example of this application)

[0057]

[0058] (2) Data input information platform, the specific steps include:

[0059] (2.1) Use cloud computing workstations (with processors of 32 cores or more and a total storage capacity of 2 exabytes or more) to establish an information platform. The information platform consists of a geographic information front-end and a data storage back-end. The geographic information front-end includes administrative boundary information at various scales (national, provincial, municipal, district, county, and town), while the data storage back-end is used to store data.

[0060] (2.2) Use cloud disk technology to store electronic land and space business data, and link it with the data storage backend of the information platform in real time; use cloud office technology to edit Excel data lists, and link it with the data storage backend of the information platform in real time (Table 2).

[0061] (3) Encode the data according to the multi-scale spatial range. The specific steps include:

[0062] (3.1) Randomly extract 1 / 10 of the land and space business data from the information platform and divide it into training, test, and validation sets in a ratio of 3:1:1. Extract the boundary, color, shadow, and topological relationship features of the target image and map them into a neural network for image recognition and classification. Use artificial intelligence algorithms to form intelligent rules to screen out all images containing spatial boundaries from the information platform. Extract the spatial contour lines from the images and generate vector contour data.

[0063] (3.2) Graphically match the vector outline of the spatial range covered by the data with the administrative boundaries in the geographic information front-end, and perform the matching in the order of "national scale - provincial scale - municipal scale - district and county scale - village and town scale". When the data vector outline partially overlaps with an administrative boundary, continue to try to see if the data vector outline matches the combined outline of the administrative boundary and its adjacent administrative boundaries. If not, match with the administrative boundary at the next level below the administrative boundary until the combined outline of the administrative boundary completely overlaps with the data vector outline. The administrative division information of the combined outline is recorded. If the data does not contain an image containing the spatial range boundary, the text information is used to supplement and determine the administrative division information involved in the data that cannot be merged.

[0064] (3.3) Data are coded according to the complete administrative divisions they contain. If the data involves multiple administrative divisions that cannot be merged (for example, two adjacent provinces, or a province plus multiple adjacent cities), the number of codes is equal to the number of administrative divisions that cannot be merged. Data numbers at the national level use 2-digit codes, those at the provincial level use 4-digit codes, those at the municipal level use 6-digit codes, those at the district and county level use 8-digit codes, and those at the town and village level use 11-digit codes.

[0065] (3.4) The code is marked on the document cover through a watermark and embedded in the document attributes, establishing a link with the administrative boundary graphics on the geographic information front end (Table 2).

[0066] (4) Generate data space code, the specific steps include:

[0067] (4.1) Using a binary format, aggregate and translate all the codes in the data. Read the digital codes in the data attributes. Each data file contains at least one set of codes related to the business type and at least one set of codes related to the spatial range. Convert all the codes in each data file into binary format, connect all the binary codes, add padding codes, and form the data code of the QR code.

[0068] (4.2) Using the Reed-Solomon error correction algorithm to generate an error correction code, and then adding the positioning pattern data, formatting data, and version information data, they are drawn together to generate a QR code image;

[0069] (4.3) Add a new cover page for the electronic material, mark the QR code on the new material cover, and embed the QR code in the material attributes (Table 2).

[0070] (5) According to the compilation requirements of the "Overall Plan of Land and Space of a Province", generate the authority space code. The specific steps include:

[0071] (5.1) Authorization code is performed based on the business type of the "A Certain Province's Land and Space Master Plan" (business type code is "1"). The compilation of the "A Certain Province's Land and Space Master Plan" is managed by the Land and Space Planning Bureau of the Department of Natural Resources, whose department code is "11" and the business type code is "010", so the business code involved is "111010";

[0072] (5.2) Authorization code is performed based on the spatial scope covered by the "Overall Plan of National Land and Space of a Province" (business type code is "2"). This business involves the entire province, so a 4-digit number is used. The domestic scope code is "2", and the administrative area code of the province is "33", so the spatial code involved is "2133";

[0073] (5.3) Convert "111010", "2133", and the business handler's ID number "3*******" into "11011000110100010", "100001010101", and "**************" respectively through binary code, concatenate the three sets of binary codes, add padding codes, and form the data code of the QR code; generate the error correction code using the Reed-Solomon error correction algorithm, and then add the positioning pattern data, formatting data, and version information data to generate the QR code image;

[0074] (5.4) Use a card printer to print the QR code, business type, and business handler ID on a prefabricated PVC white card to create a permission space code card.

[0075] (6) Data retrieval, the specific steps include:

[0076] (6.1) The National Land and Space Planning Bureau will hand over the authority space code card to the project bidder of the "National Land and Space Master Plan of a Certain Province". The project bidder will use a terminal computer connected to a QR code scanning device to scan the authority space code card and log in to the information platform system;

[0077] (6.2) The project bidder shall check the spatial scope involved in the business on the geographic information front end, select the corresponding administrative area at different scales, and obtain the data space code with overlapping coding information; scan the data space code, check the information contained in the data space code, call the required data, and leave a permission record.

[0078] In other examples of the present invention, a computer-readable storage medium is disclosed, storing instructions that, when executed, can implement the spatial code generation method of the above-mentioned example. The instructions can be in a computer-readable language. The above-mentioned computer can be a general-purpose computer device or a special-purpose computer device. In a specific implementation, the computer can be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, or an embedded device. The storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media. For example, the storage medium is, but is not limited to, a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0079] Throughout this specification, references to terms such as "one embodiment," "example," or "specific example" indicate that the specific features, structures, materials, or characteristics described in conjunction with that embodiment or example are included in at least one embodiment or example of the present invention. In this specification, schematic representations of these terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0080] The basic principles, main features, and advantages of the present invention are shown and described above. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions are merely illustrative of the principles of the present invention. Various changes and modifications may be made to the present invention without departing from the spirit and scope of the present invention, and such changes and modifications fall within the scope of the invention as claimed.

Claims

1. A method for generating a spatial code, characterized in that: The following steps are involved: Obtain land and space business data and encode them; Building an information platform to store the land space business data and administrative boundary information; Extracting the contour lines of the image in the land and space business data to form vector contour data, matching the vector contour data with the administrative boundary information, embedding the code into the land and space business data, and establishing a link association with the administrative boundary; Translating the code to generate a space code, and embedding the space code into the attributes of the land space business data; The method for extracting the contour lines of the image in the land and space business data comprises: randomly extracting the image data of the land and space business data in the information platform and training the neural network model; extracting the feature information of the target image and mapping it to the neural network for image recognition and classification, thereby screening out the image containing the space range boundary in the information platform; The step of generating a spatial code includes: reading the digital code in the attributes of the land and space business data, each of the land and space business data contains at least one group of codes related to the business type and at least one group of codes related to the spatial range, converting all the codes in each of the land and space business data into binary, connecting all the binary codes, adding padding codes, and forming a data code; forming an error correction code through the Reed-Solomon error correction algorithm, and then drawing and generating the spatial code together after adding positioning pattern data, formatting data and version information data.

2. The method for generating a spatial code according to claim 1, characterized in that: The matching of the vector contour data with the administrative boundary information includes the following steps: graphically matching the vector contour of the spatial range involved in the national land space business data with the administrative boundary, and the matching order is carried out from top to bottom according to the scale.

3. The method for generating a spatial code according to claim 1, characterized in that: Also includes the steps: Generate an authorization code including the business type, the spatial scope involved in the business, and the ID information of the business handler; the information platform provides the spatial code of the land and space business information according to the authorization code, calls the land and space business information after scanning the spatial code, and leaves an authorization trace.

4. The method for generating a spatial code according to claim 1, characterized in that: The characteristic information of the target image includes boundaries, colors, shadows and topological relationships.

5. The method for generating a spatial code according to claim 1, characterized in that: The information platform includes a front end for storing the administrative boundary information and a back end for storing the land space business data.

6. The method for generating a spatial code according to claim 1, characterized in that: The administrative boundaries include the national scale, provincial scale, municipal scale, district and county scale, and village and town scale.

7. A computer-readable storage medium storing instructions, characterized in that: When the instruction is executed, the method for generating a spatial code according to any one of claims 1 to 6 can be implemented.