A method, device and medium for processing heterogeneous vector data based on grid network
Through the heterogeneous vector data processing method based on raster network, the problem of retrieval and traceability of vector data between different GIS platforms and data sources is solved, efficient management and retrieval of data is realized, and the traceability of historical data is improved.
Patent Information
- Application Number
- CN202311858768.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-30
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-12-30
AI Technical Summary
In the existing technology, vector data processing, data retrieval and data tracing are difficult, especially between different GIS platforms and data sources. It is difficult to associate historical data, and the ArcGIS model is only valid in ArcSDE and cannot be used on other platforms, resulting in Data utilization limitations are high.
Adopt the heterogeneous vector data processing method based on raster network, create a raster network, determine the unique code, and add an identification field to the heterosource vector data, establish a correspondence table between the raster network and the heterosource vector data, and respond to data modifications Instructions are used for data tracing to achieve data retrieval and tracing.
It lowers the threshold for data retrieval, solves the problem of historical data association between different platforms and data sources, increases the retrieval speed, makes historical data tracing more convenient, and changes the storage, management and retrieval methods of spatial data.
Smart Images

Figure CN118113797B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to a grid-based heterogeneous vector data processing method, device and medium. Background Art
[0002] Geographic information data is an indispensable data in people's current life. The degree of specialization of geographic information data varies on different platforms. Different systems use different GIS (Geographic Information System) platforms and data sources.
[0003] As a result, a phenomenon has emerged: vector data at the same location in different data sources represent different things, and the same vector data is also considered by computers as two things at different times. In addition, the ArcGIS archiving model can only be implemented in ArcSDE (SDE, Spatial Database Engine), and cannot be used on other GIS platforms. In addition, historical data saved using this model cannot be backed up and migrated, and the splitting of the same data cannot be traced, etc., which has great limitations on data utilization. Therefore, it leads to problems such as difficulty in managing vector data, difficulty in retrieving data changes, and difficulty in tracing data. Summary of the invention
[0004] The embodiments of the present invention provide a grid-based heterogeneous vector data processing method, device and medium, which are used to solve the following technical problems: vector data processing, data retrieval and data tracing are difficult in the prior art.
[0005] The embodiment of the present invention adopts the following technical solutions:
[0006] The embodiment of the present invention provides a method for processing heterogeneous vector data based on a grid network. The method includes: creating a grid network, and determining a unique code corresponding to the grid network based on geographic coordinate information corresponding to the grid network; obtaining multiple heterogeneous vector data corresponding to the grid network, and adding identification fields to the multiple heterogeneous vector data respectively; wherein the heterogeneous vector data is different vector data representations of the same object at the same location by different data sources; establishing a correspondence table between the grid network and multiple heterogeneous vector data based on the unique code and identification field corresponding to the grid network; responding to a heterogeneous vector data modification instruction, modifying the corresponding heterogeneous vector data, and modifying the identification field corresponding to the heterogeneous vector data; based on the time sequence of the modification of the identification field, determining the vector history data corresponding to the grid network in the correspondence table, so as to realize data retrieval and data tracing of the grid network.
[0007] The embodiment of the present invention obtains multiple heterogeneous vector data corresponding to the grid network, adds identification fields to the multiple heterogeneous vector data respectively, and establishes a corresponding relationship table between the grid network and the multiple heterogeneous vector data based on the unique code and identification field corresponding to the grid network, so as to convert spatial retrieval into attribute retrieval, thereby lowering the threshold for data retrieval. It solves the problem that historical data is difficult to associate under different platforms and different data sources, and can be traced no matter how the data changes, thus changing the storage, management and retrieval methods of spatial data, improving the retrieval speed, and making historical data tracing more convenient.
[0008] In one implementation of the present invention, a grid is created, and based on the geographic coordinate information corresponding to the grid, a unique code corresponding to the grid is determined, specifically including: establishing a grid based on a preset element size and a preset grid size; obtaining the geographic coordinate information corresponding to the grid, and determining the reference coordinate value corresponding to the target position of the grid based on the geographic coordinate information; rounding the digits of the reference coordinates based on a preset value-taking rule to obtain the target coordinates; connecting the target coordinates based on a preset coordinate connector to generate a unique code corresponding to the grid, and storing the unique code in an attribute field corresponding to the grid.
[0009] In one implementation of the present invention, multiple heterogeneous vector data corresponding to a grid network are obtained, and identification fields are respectively added to the multiple heterogeneous vector data, specifically including: obtaining multiple heterogeneous vector data corresponding to the grid network, and randomly generating unique values and changing unique values for the multiple heterogeneous vector data; wherein the unique value and the changing unique value are both globally unique identifiers; based on the time when the heterogeneous vector data are obtained, the start time corresponding to the multiple heterogeneous vector data is generated; based on the preset time data, or based on the modification time of the heterogeneous vector data, the end time corresponding to the multiple heterogeneous vector data is generated; based on the unique value, the changing unique value, the start time and the end time, the identification fields corresponding to the multiple heterogeneous vector data are generated.
[0010] In one implementation of the present invention, a correspondence table between a raster network and multiple heterogeneous vector data is established based on a unique code corresponding to the raster network and multiple identification fields, specifically including: determining a unique value field in multiple identification fields corresponding to the heterogeneous vector data; establishing a correspondence table between the raster network and multiple heterogeneous vector data based on the unique value fields respectively corresponding to the multiple heterogeneous vector data and the unique code corresponding to the raster network.
[0011] In one implementation of the present invention, in response to a heterogeneous vector data modification instruction, the corresponding heterogeneous vector data is modified, and the identification field corresponding to the heterogeneous vector data is modified, specifically including: responding to the heterogeneous vector data modification instruction, determining the heterogeneous vector data to be modified, and determining the modification type; wherein the modification type includes at least one of newly added data, updated data, and deleted data; based on the modification type, processing the heterogeneous vector data to be modified; based on the modification type, determining the identification field modification method, so as to modify the identification field corresponding to the heterogeneous vector data to be modified based on the corresponding modification method.
[0012] In one implementation of the present invention, an identification field modification method is determined based on the modification type, and the identification field corresponding to the heterogeneous vector data to be modified is modified based on the corresponding modification method, specifically including: when the modification type is new data, a unique value field and a changed unique value field are generated for the heterogeneous vector data to be modified, a start time field is generated based on the data addition time, and an end time field is generated based on the preset time data; when the modification type is update data, the heterogeneous vector data to be modified is copied, and fields are generated for the copied heterogeneous vector data to be modified; when the modification type is delete data, the end time corresponding to the heterogeneous vector data to be modified is modified to the current time, so as to modify the end time field.
[0013] In one implementation of the present invention, when the modification type is update data, the heterogeneous vector data to be modified is copied, and fields are generated for the copied heterogeneous vector data to be modified, specifically including: when the modification type is update data, the end time corresponding to the heterogeneous vector data to be modified is modified to the current time; the heterogeneous vector data to be modified is copied, and a new unique value field is generated for the copied heterogeneous vector data to be modified; based on the current time, a start time field corresponding to the copied heterogeneous vector data to be modified is generated; based on the preset time data, an end time field corresponding to the copied heterogeneous vector data to be modified is generated.
[0014] In one implementation of the present invention, based on the time sequence of modification of the identification field, the vector historical data corresponding to the grid network is determined in the correspondence table to realize data retrieval and data tracing of the grid network, which specifically includes: responding to the data tracing instruction, obtaining the reference unique code corresponding to the grid network; determining multiple correspondence tables corresponding to the reference unique code; in the multiple correspondence tables, determining the start time field and the end time field corresponding to each vector data; based on the start time field and the end time field, determining the corresponding order of each vector data, and arranging each vector data in the order of order to realize data retrieval and data tracing of the grid network.
[0015] The embodiment of the present invention provides a heterogeneous vector data processing device based on a grid network, comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: create a grid network, and determine a unique code corresponding to the grid network based on geographic coordinate information corresponding to the grid network; obtain multiple heterogeneous vector data corresponding to the grid network, and add identification fields to the multiple heterogeneous vector data respectively; wherein the heterogeneous vector data is different vector data representations of the same object at the same location by different data sources; based on the unique code and identification field corresponding to the grid network, establish a correspondence table between the grid network and the multiple heterogeneous vector data; respond to a heterogeneous vector data modification instruction, modify the corresponding heterogeneous vector data, and modify the identification field corresponding to the heterogeneous vector data; based on the time sequence of the modification of the identification field, determine the vector history data corresponding to the grid network in the correspondence table to realize data retrieval and data tracing of the grid network.
[0016] A non-volatile computer storage medium provided by an embodiment of the present invention stores computer executable instructions, wherein the computer executable instructions are configured to: create a grid network, and determine a unique code corresponding to the grid network based on geographic coordinate information corresponding to the grid network; obtain multiple heterogeneous vector data corresponding to the grid network, and add identification fields to the multiple heterogeneous vector data respectively; wherein the heterogeneous vector data are different vector data representations of the same object at the same location by different data sources; based on the unique code and identification field corresponding to the grid network, establish a correspondence table between the grid network and the multiple heterogeneous vector data; in response to a heterogeneous vector data modification instruction, modify the corresponding heterogeneous vector data, and modify the identification field corresponding to the heterogeneous vector data; based on the time sequence of the modification of the identification field, determine the vector history data corresponding to the grid network in the correspondence table to realize data retrieval and data tracing of the grid network.
[0017] At least one of the above technical solutions adopted in the embodiment of the present invention can achieve the following beneficial effects: The embodiment of the present invention obtains multiple heterogeneous vector data corresponding to the grid network, adds identification fields to the multiple heterogeneous vector data respectively, and establishes a corresponding relationship table between the grid network and the multiple heterogeneous vector data based on the unique code and identification field corresponding to the grid network, so as to convert spatial retrieval into attribute retrieval, thereby lowering the threshold for data retrieval. It solves the problem that historical data is difficult to associate under different platforms and different data sources, and can be traced no matter how the data changes, which changes the storage, management and retrieval methods of spatial data, improves the retrieval speed, and makes historical data tracing more convenient. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:
[0019] Figure 1 A flow chart of a method for processing heterogeneous vector data based on a grid provided by an embodiment of the present invention;
[0020] Figure 2 A schematic structural diagram of a grid-based heterogeneous vector data processing device provided in an embodiment of the present invention.
[0021] Reference numerals:
[0022] 200 is a heterogeneous vector data processing device based on a grid, 201 is a processor, and 202 is a memory. DETAILED DESCRIPTION
[0023] The embodiments of the present invention provide a grid-based heterogeneous vector data processing method, device and medium.
[0024] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0025] The technical solution proposed in the embodiment of the present invention is described in detail below with reference to the accompanying drawings.
[0026] Figure 1 A flowchart of a grid-based heterogeneous vector data processing method provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the grid-based heterogeneous vector data processing method includes the following steps:
[0027] S101: Create a grid, and determine a unique code corresponding to the grid based on geographic coordinate information corresponding to the grid.
[0028] In one embodiment of the present invention, a grid is established based on preset element sizes and preset grid sizes. Geographic coordinate information corresponding to the grid is obtained, and a reference coordinate value corresponding to a target position of the grid is determined based on the geographic coordinate information. Based on a preset value selection rule, the reference coordinate is rounded to obtain the target coordinate. Based on a preset coordinate connector, the target coordinate is connected to generate a unique code corresponding to the grid, and the unique code is stored in an attribute field corresponding to the grid.
[0029] Specifically, a grid is established based on the preset element size and the preset grid size using the standard map generation rules. The grid size can be set according to specific needs. The smaller the grid, the finer the management. For example, a grid with a size of 0.5m×0.5m for each element can be generated.
[0030] Furthermore, each grid is encoded based on the target position in the grid. For example, the coordinates of the lower left corner of the grid are taken as the target position, the X coordinate and Y coordinate of the lower left corner are taken, the coordinate value takes 3 decimal places, and the X coordinate and the Y coordinate are connected by the preset character '|' to generate a unique code corresponding to the grid vector data, and store the unique code in each grid attribute field.
[0031] It should be noted that the embodiment of the present invention preferably uses the lower left corner coordinates as the target position, and can also select other position coordinates in the grid as the target position. In addition, the coordinate value in the embodiment of the present invention preferably selects 3 digits, which can be adjusted according to actual conditions in the application, and the embodiment of the present invention does not limit this.
[0032] The grid network generated by the standard map generation rule in the embodiment of the present invention is universal, suitable for all GIS data situations, and can generate a unique grid network code for all coordinate values, and the implementation process is very convenient.
[0033] S102: Acquire multiple heterogeneous vector data corresponding to the grid, and add identification fields to the multiple heterogeneous vector data respectively.
[0034] In one embodiment of the present invention, multiple heterogeneous vector data corresponding to a grid are obtained, and unique values and changing unique values are randomly generated for the multiple heterogeneous vector data; wherein the unique value and the changing unique value are both globally unique identifiers. Based on the time when the heterogeneous vector data are obtained, the start time corresponding to the multiple heterogeneous vector data is generated. Based on the preset time data or based on the modification time of the heterogeneous vector data, the end time corresponding to the multiple heterogeneous vector data is generated. Based on the unique value, the changing unique value, the start time and the end time, the identification fields corresponding to the multiple heterogeneous vector data are generated.
[0035] It should be noted that the heterogeneous vector data in the embodiment of the present invention refers to different vector data representations of the same object at the same location by different data sources.
[0036] Specifically, four identification fields, namely, a unique value, a changing unique value, a start time, and an end time, are added to each heterogeneous vector data. During initial creation, the unique value and the changing unique value are 32-bit unique GUID values (Globally Unique Identifier) randomly generated by a computer. The current time is determined according to the time when the heterogeneous vector data is currently acquired, and the end time is generated based on the preset time data. For example, the end time is 99991231235959. When the vector data is modified or deleted, the end time is the current time corresponding to the modification or deletion, so as to record the uniqueness of each vector data.
[0037] S103: Based on the unique code and identification field corresponding to the grid network, a corresponding relationship table between the grid network and a plurality of heterogeneous vector data is established.
[0038] In one embodiment of the present invention, a unique value field in multiple identification fields corresponding to heterogeneous vector data is determined. Based on the unique value fields corresponding to the multiple heterogeneous vector data and the unique code corresponding to the grid network, a corresponding relationship table between the grid network and the multiple heterogeneous vector data is established.
[0039] Specifically, the raster network and vector data are superimposed to create a corresponding relationship table. Depending on the different data sources, that is, heterogeneous sources, multiple corresponding relationship tables can be created.
[0040] Furthermore, the generated raster network and heterogeneous vector data are superimposed by Spatial Join (Spatial Join is one of the overlay analysis tools of ArcGis), the source element is the raster network, the unique coding field of the raster network and the unique value field of the heterogeneous vector data are retained, and a correspondence table between the raster network and the heterogeneous vector data is formed.
[0041] The grid network generated by the embodiment of the present invention using the standard map generation rules is universal and suitable for all GIS data situations, and the unique code of the grid network is generated for all coordinate values, so the implementation process is very convenient. By establishing a corresponding relationship table, the grid network and heterogeneous vector data can establish an association with the vector elements in the same space, generate a unique code of the grid network according to the known coordinates, and retrieve all corresponding vector data according to the unique code and the corresponding relationship, that is, different elements in the same space are the same thing, no matter how the element is split or merged, which solves the problem that different elements in the same space are considered to be different things by the computer. By associating the unique code of the grid network with the heterogeneous vector data, the spatial query is converted into an attribute query, and the specific conditions for spatial data retrieval are eliminated, and it becomes a conventional SQL (Structured Query Language, Structured Query Language database) query. The data correlation between different GIS systems and different thematic data, that is, the correlation of heterogeneous vector data, is realized.
[0042] S104. In response to the heterogeneous vector data modification instruction, the corresponding heterogeneous vector data is modified, and the identification field corresponding to the heterogeneous vector data is modified.
[0043] In one embodiment of the present invention, in response to a heterogeneous vector data modification instruction, the heterogeneous vector data to be modified and the modification type are determined; wherein the modification type includes at least one of newly added data, updated data, and deleted data. Based on the modification type, the heterogeneous vector data to be modified is processed. Based on the modification type, an identification field modification method is determined, and the identification field corresponding to the heterogeneous vector data to be modified is modified based on the corresponding modification method.
[0044] Specifically, the modification of heterogeneous vector data in the embodiment of the present invention includes three aspects, namely: adding new data, updating data and deleting data. After receiving the corresponding heterogeneous vector data modification instruction, the corresponding heterogeneous vector data is modified, and the four identification fields of the added unique value, changed unique value, start time and end time of the heterogeneous vector data are managed.
[0045] In one embodiment of the present invention, when the modification type is to add new data, a unique value field and a change unique value field are generated for the heterogeneous vector data to be modified, a start time field is generated based on the data addition time, and an end time field is generated based on the preset time data. When the modification type is to update data, the heterogeneous vector data to be modified is copied, and fields are generated for the copied heterogeneous vector data to be modified. When the modification type is to delete data, the end time corresponding to the heterogeneous vector data to be modified is modified to the current time to modify the end time field.
[0046] Specifically, when the modification type is new data, assign a unique value, a changed unique value, a start time, and an end time to the heterogeneous vector data. The unique value takes the GUID value, and the changed unique value is the same as the unique value, indicating that the vector data is initially created. The start time takes the current time, and the format is the preset format, for example, it can be yyyyMMddHHmmss, which can represent the year, month, day, hour, minute, and second. The end time takes the preset time data, for example, it can be 99991231235959.
[0047] When the modification type is to update data: when updating a feature, first change the end time of the current feature to the current time, for example, the time format can be yyyyMMddHHmmss, then copy the current feature, and generate fields for the copied heterogeneous vector data to be modified.
[0048] In one embodiment of the present invention, when the modification type is update data, the end time corresponding to the heterogeneous vector data to be modified is modified to the current time. The heterogeneous vector data to be modified is copied, and a new unique value field is generated for the copied heterogeneous vector data to be modified. Based on the current time, a start time field corresponding to the copied heterogeneous vector data to be modified is generated. Based on the preset time data, an end time field corresponding to the copied heterogeneous vector data to be modified is generated.
[0049] Specifically, when an element is updated, first change the end time of the current element to the current time, then copy the current element, modify the changed unique value to a new GUID value, indicating that the vector data has been updated, the start time is the current time, the format can be yyyyMMddHHmmss, and the end time is the preset time data, for example, it can be 99991231235959.
[0050] When the modification type is to delete data: modify the end time of the current feature to the current time, for example, in the format of yyyyMMddHHmmss.
[0051] It should be noted that when the elements are split, multiple elements are added in the update situation. The element processing situation is: the unique value of the change is modified to a new GUID value, and the start time is the current time, the format can be yyyyMMddHHmmss, and the end time is 99991231235959. If the elements are to be merged, delete the original elements first, and then add the new elements.
[0052] S105 . Based on the time sequence of the modification of the identification field, the vector historical data corresponding to the grid network is determined in the corresponding relationship table to realize data retrieval and data tracing of the grid network.
[0053] In one embodiment of the present invention, in response to a data tracing instruction, a reference unique code corresponding to a grid network is obtained. Multiple corresponding relationship tables corresponding to the reference unique code are determined. In the multiple corresponding relationship tables, the start time field and the end time field corresponding to each vector data are determined. Based on the start time field and the end time field, the sequence corresponding to each vector data is determined, and each vector data is arranged in the sequence to realize data retrieval and data tracing of the grid network.
[0054] Specifically, the X and Y coordinates are obtained according to the position of the mouse click on the map, and the grid network unique code is generated according to the standard map sheet code for the obtained X and Y coordinates. The vector data corresponding to the current grid network unique code is retrieved according to the grid network unique code and grid vector correspondence table. According to the start time and end time of the vector data, the order of the data is determined, the vector historical data is obtained, and the retrieval and tracing are completed.
[0055] The embodiments of the present invention can quickly search for data in different GIS systems and different thematic GIS data at the same spatial location, find their associations, and associate the same things that the computer cannot recognize as being associated. The grid network with standard map encoding makes data storage simpler, highly versatile, low in technical difficulty, and easy to use. The use of attribute unique values and time identifiers makes historical data tracing more direct, more efficient, and more prominent in historical data changes. The use of a correspondence table between a grid network and heterogeneous vector data makes searching for historical element data at the same spatial location more efficient and more efficient in indexing. The correspondence between coordinate values and unique values is used to convert spatial retrieval into attribute retrieval, lowering the threshold for data retrieval and breaking through the element retrieval barriers between different systems and different thematic data.
[0056] Figure 2 The schematic diagram of the structure of a grid-based heterogeneous vector data processing device provided by an embodiment of the present invention. Figure 2As shown, a heterogeneous vector data processing device 200 based on a grid network includes: at least one processor 201; and a memory 202 in communication with the at least one processor 201; wherein the memory 202 stores instructions that can be executed by the at least one processor 201, and the instructions are executed by the at least one processor 201 so that the at least one processor 201 can: create a grid network, and determine a unique code corresponding to the grid network based on geographic coordinate information corresponding to the grid network; obtain multiple heterogeneous vector data corresponding to the grid network, and add identification fields to the multiple heterogeneous vector data respectively; wherein the heterogeneous vector data is different vector data representations of the same object at the same location by different data sources; based on the unique code and identification field corresponding to the grid network, establish a correspondence table between the grid network and multiple heterogeneous vector data; respond to a heterogeneous vector data modification instruction, modify the corresponding heterogeneous vector data, and modify the identification field corresponding to the heterogeneous vector data; based on the time sequence of the modification of the identification field, determine the vector history data corresponding to the grid network in the correspondence table to realize data retrieval and data tracing of the grid network.
[0057] The embodiment of the present invention also provides a non-volatile computer storage medium, which stores computer executable instructions, and the computer executable instructions are set to: create a grid network, and determine the unique code corresponding to the grid network based on the geographic coordinate information corresponding to the grid network; obtain multiple heterogeneous vector data corresponding to the grid network, and add identification fields to the multiple heterogeneous vector data respectively; wherein the heterogeneous vector data is different vector data representations of the same object at the same location by different data sources; based on the unique code and identification field corresponding to the grid network, establish a correspondence table between the grid network and the multiple heterogeneous vector data; respond to the heterogeneous vector data modification instruction, modify the corresponding heterogeneous vector data, and modify the identification field corresponding to the heterogeneous vector data; based on the time sequence of the modification of the identification field, determine the vector historical data corresponding to the grid network, so as to realize data retrieval and data tracing of the grid network.
[0058] Each embodiment of the present invention is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0059] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and changes. However, these modifications or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for processing heterogeneous vector data based on a grid, characterized in that: The method comprises: Creating a grid network, and determining a unique code corresponding to the grid network based on geographic coordinate information corresponding to the grid network; Acquire multiple heterogeneous vector data corresponding to the grid, and add identification fields to the multiple heterogeneous vector data respectively; wherein the heterogeneous vector data are different vector data representations of the same object at the same location by different data sources; Based on the unique code corresponding to the grid network and the identification field, a corresponding relationship table between the grid network and a plurality of heterogeneous vector data is established; In response to the heterogeneous vector data modification instruction, the corresponding heterogeneous vector data is modified, and the identification field corresponding to the heterogeneous vector data is modified; Based on the time sequence of modification of the identification field, the vector historical data corresponding to the grid network is determined in the corresponding relationship table to realize data retrieval and data tracing of the grid network; The responding to the heterogeneous vector data modification instruction, modifying the corresponding heterogeneous vector data, and modifying the identification field corresponding to the heterogeneous vector data, specifically includes: In response to the heterogeneous vector data modification instruction, determine the heterogeneous vector data to be modified, and determine the modification type; wherein the modification type includes at least one of adding data, updating data, and deleting data; Based on the modification type, processing the to-be-modified heterogeneous vector data; Determine a modification mode of the identification field based on the modification type, and modify the identification field corresponding to the to-be-modified heterogeneous vector data based on the corresponding modification mode; The determining of the modification mode of the identification field based on the modification type, so as to modify the identification field corresponding to the to-be-modified heterogeneous vector data based on the corresponding modification mode, specifically includes: In the case where the modification type is newly added data, a unique value field and a changed unique value field are generated for the heterogeneous vector data to be modified, a start time field is generated based on the data addition time, and an end time field is generated based on the preset time data; In the case where the modification type is updating data, copying the heterogeneous vector data to be modified, and performing field generation on the copied heterogeneous vector data to be modified; In the case where the modification type is to delete data, the end time corresponding to the to-be-modified heterogeneous vector data is modified to the current time, so as to modify the end time field.
2. A grid-based heterogeneous vector data processing method according to claim 1, characterized in that: The step of creating a grid network and determining a unique code corresponding to the grid network based on geographic coordinate information corresponding to the grid network specifically includes: Establishing the grid based on preset element size and preset grid size; Acquire geographic coordinate information corresponding to the grid network, and determine a reference coordinate value corresponding to a target position of the grid network based on the geographic coordinate information; Based on a preset value selection rule, the reference coordinates are rounded to obtain the target coordinates; Based on the preset coordinate connector, the target coordinates are connected to generate a unique code corresponding to the grid, and the unique code is stored in an attribute field corresponding to the grid.
3. The method for processing heterogeneous vector data based on a grid network according to claim 1, characterized in that: The acquiring of a plurality of heterogeneous vector data corresponding to the grid network and adding identification fields to the plurality of heterogeneous vector data respectively includes: Acquire multiple heterogeneous vector data corresponding to the grid, and randomly generate unique values and change unique values for the multiple heterogeneous vector data respectively; wherein the unique value and the change unique value are both globally unique identifiers; Based on the time when the heterogeneous vector data is acquired, generating the start times respectively corresponding to the plurality of heterogeneous vector data; Based on preset time data or based on modification time of the heterogeneous vector data, generating end times respectively corresponding to the plurality of heterogeneous vector data; Based on the unique value, the changed unique value, the start time and the end time, identification fields respectively corresponding to the plurality of heterogeneous vector data are generated.
4. The method for processing heterogeneous vector data based on a grid network according to claim 1, characterized in that: The establishing of a correspondence table between a grid network and a plurality of heterogeneous vector data based on the unique code corresponding to the grid network and the identification field specifically includes: Determine a unique value field among multiple identification fields corresponding to heterogeneous vector data; Based on the unique value fields respectively corresponding to the multiple heterogeneous vector data and the unique codes corresponding to the grid network, a correspondence table between the grid network and the multiple heterogeneous vector data is established.
5. The method for processing heterogeneous vector data based on a grid network according to claim 1, characterized in that: In the case where the modification type is updating data, copying the to-be-modified heterogeneous vector data, and performing field generation on the copied heterogeneous vector data to be modified, specifically includes: In the case where the modification type is updating data, the end time corresponding to the heterogeneous vector data to be modified is modified to the current time; Copying the heterogeneous vector data to be modified, and generating a new unique value field for the copied heterogeneous vector data to be modified; Based on the current time, generating a start time field corresponding to the copied heterogeneous vector data to be modified; Based on the preset time data, an end time field corresponding to the copied heterogeneous vector data to be modified is generated.
6. The method for processing heterogeneous vector data based on a grid network according to claim 1, characterized in that: The step of determining the vector historical data corresponding to the grid network in the corresponding relationship table based on the time sequence of the modification of the identification field to realize data retrieval and data tracing of the grid network specifically includes: Respond to the data tracing instruction and obtain the reference unique code corresponding to the grid network; Determine a plurality of corresponding relationship tables corresponding to the reference unique code; In the plurality of corresponding relationship tables, determining the start time field and the end time field respectively corresponding to each vector data; Based on the start time field and the end time field, the order of the vector data is determined, and the vector data are arranged in order to achieve data retrieval and data tracing of the grid network.
7. A grid-based heterogeneous vector data processing device, characterized in that: The device comprises a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the device is triggered to execute the method according to any one of claims 1 to 6.
8. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions can execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Subject-oriented large-scale geographic spatial data dynamic fusion method
CN104699734A
Multi-source heterogeneous non-point source pollution big data association and retrieval method based on spatial and temporal characteristics and supervision platform
CN110334090A
