A method and device for incrementally updating basic geographic data based on identity identification

Through the incremental update method based on identity identification, the problems of low update efficiency of basic geographic information database and difficulty in data conversion are solved, and the rapid and efficient update and real-time management of basic geographic information data are realized, ensuring data integrity and real-timeness. Supports current applications.

CN116680765BActive Publication Date: 2024-11-29常州市自然资源和规划服务中心(常州市历史文化名城保护管理中心)
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310826619.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-06
Publication Date
2024-11-29
Estimated Expiration
2043-07-06

AI Technical Summary

Technical Problem

In the prior art, the basic geographic information database update efficiency is low, the results service is lagging, and the real-time update and conversion of CAD data and GIS data is difficult, resulting in time-consuming data migration and prone to data loss.

Method used

Using an incremental update method based on identity identification, the change element entities are obtained through the identity identification monitoring module, a database reactor is built to monitor new additions, modifications, and deletion events in CAD, and a unique identity code and time identification are generated, and stored as intermediate data files. , and update it to the GIS database to leverage GDAL to enable data interoperability and visualization.

Benefits of technology

It realizes fast and efficient update of basic geographic information data, ensures real-time and integrity of data, manages data through unique identity code and time identification, and realizes efficient interoperability and lossless conversion of CAD and GIS data, and supports basic geographic information data. Current application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116680765B_ABST
    Figure CN116680765B_ABST
Patent Text Reader

Abstract

The present invention discloses a basic geographic data incremental update method and device based on identity identification, and relates to the field of graphic processing technology; the present invention comprises the following steps: S1, obtaining the changed element entity and updating its identification through the identity identification monitoring module; by obtaining the newly added and changed data in real time, an effective technical means is provided for the rapid and efficient update of the basic geographic information data based on the change increment; by setting the unique identity code, production time and deletion time, the identity and time attributes of the geographic information element entity are effectively identified, which plays an important role in the update and management of the geographic information data; by utilizing open source resources, efficient interoperability of CAD data and GIS data is realized; by establishing a comparison relationship, lossless conversion of CAD data and GIS data is realized; by incremental updating, rapid update and storage of topographic map production data is realized, which provides conditions for ensuring the update and current application of basic geographic information data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of graphics processing technology, and in particular to a method and device for incrementally updating basic geographic data based on identity identification. Background Art

[0002] The updating of basic geographic information is a fundamental and strategic task for national construction and economic development. As the demand for the timeliness of basic geographic information data from all walks of life is increasing, how to update basic geographic information data quickly and efficiently is an important issue of concern to relevant departments.

[0003] In view of the powerful graphics editing and processing functions of CAD, many production units currently use CAD as a digital mapping tool and store the production results in the form of a single map data file or a compressed file in a database. However, using CAD as a digital mapping tool to store files in a database has the following defects:

[0004] When facing specific applications, CAD data in the form of a single file needs to be transferred to the GIS platform. Using GIS technology for data database construction and application processing often requires a lot of data migration and data conversion work, which is time-consuming and labor-intensive and often results in data loss.

[0005] In view of the above problems, the inventors propose a method and device for incrementally updating basic geographic data based on identity identification to solve the above problems. Summary of the invention

[0006] In order to solve the problems of low updating efficiency of basic geographic information database, delayed service results, and difficulty in real-time updating and conversion of CAD data and GIS data; the purpose of the present invention is to provide a basic geographic data incremental updating method and device based on identity identification.

[0007] To solve the above technical problems, the present invention adopts the following technical solution: a basic geographic data incremental update method based on identity identification, comprising the following steps:

[0008] S1. Obtain the changed element entity and update its identification through the identity monitoring module, extract the incremental data of changes in the topographic map production, and perform incremental dynamic updates on the changed element entity;

[0009] S2. A database reactor is constructed in CAD through an identity monitoring module to monitor events such as adding (including copying and pasting), modifying, deleting, and saving when producing topographic maps, thereby updating the identity of related elements, extracting and storing them in intermediate data files for dynamic updating;

[0010] S3. Database reactors are mapped to various events in CAD, focusing on events such as new creation, selection, copying, moving, deleting, and saving in CAD. Event handlers for adding, modifying, deleting, and saving are created. When an event occurs, the corresponding event handler is triggered to execute.

[0011] S4. For specific operations in topographic map production, write callback functions for the add, modify and delete event handlers to complete specific operations, generate new unique identification codes and production time for added elements, modify the production time for modified elements, and modify the deletion time for deleted elements;

[0012] S5. The added, modified, or deleted element entity data is stored separately in the form of a change increment intermediate data file locally or in a fixed location on the server as basic data for dynamic incremental updates;

[0013] S6, update the changed element data extracted above to the corresponding layer in the GIS database, directly write the newly added element entity (the unique identity code does not exist in the database), modify the element entity (the unique identity code remains unchanged, the production time changes), delete the old element entity and store it in the historical database after marking the deletion time according to the new production time, write the modified new element entity, the old element entity with the deletion time marked (the unique identity code is the same and the deletion time is marked), delete the corresponding element in the GIS database, and transfer the element with the edited deletion time to the historical database;

[0014] S7. Extract data within a given range from the basic geographic information database and update the incremental data into the database, mainly by establishing the corresponding relationship between the layers and attributes of the feature entities, using the open source resource GDAL to read and write GIS data, and using CAD secondary development to realize the visualization of basic geographic feature data in CAD;

[0015] S8. Establishing the above-mentioned element entity comparison relationship through the geographic information comparison module;

[0016] S9, extracting elements from the GIS database through the topographic map data extraction module can filter out relevant element data according to a given range (polygon) or according to spatial attributes;

[0017] S10. Before producing topographic maps in CAD, the extracted GIS data is layered, colored and symbolized according to the relevant standards for topographic map production based on the feature coding, using the secondary development function of CAD;

[0018] S11. The relevant functions of topographic map production in CAD are realized by using CAD secondary development according to actual needs.

[0019] Preferably, in S1, the identity monitoring module 300 performs uniqueness and timeliness marking on the element entities in the basic geographic information data, specifically including the unique identity code, production time, and deletion time of the element entity. The production time refers to the time when the element entity is mapped after surveying and mapping, and the deletion time refers to the time when the original element entity is deleted when updating the survey or drawing the topographic map after the element entity in the basic geographic information database changes in reality (such as construction or demolition resulting in changes in boundary points).

[0020] Preferably, in S2, the identity monitoring module 300 obtains the changed feature entities in the topographic map by monitoring events, which can ensure the uniqueness of the feature entity identity code, and at the same time record the generation time and deletion time of the feature entity, and save it in the CAD feature entity with the extended attribute XDATA as the basic information for the incremental dynamic update of the basic geographic information elements.

[0021] Preferably, in S8, the established comparison relationship specifically includes the GIS standard database structure, the data structure in CAD, and the corresponding comparison relationship between the same element coding in the two data.

[0022] Preferably, in S9, the extraction of feature data can utilize the existing spatial and attribute filtering functions in GDAL, or it can be independently developed and implemented.

[0023] A basic geographic data incremental updating device based on identity identification comprises an identity identification monitoring module, a terminal of the identity identification monitoring module is connected to a geographic information comparison module, and a terminal of the geographic information comparison module is connected to a topographic map data extraction module.

[0024] Compared with the prior art, the present invention has the following beneficial effects:

[0025] In the present invention, by acquiring new and changed data in real time, an effective technical means is provided for the rapid and efficient update of basic geographic information data based on change increments. By setting a unique identity code, production time and deletion time, the identity and time attributes of geographic information element entities are effectively identified, which plays an important role in the update and management of geographic information data. Open source resources are used to achieve efficient interoperability between CAD data and GIS data, and lossless conversion between CAD data and GIS data is achieved by establishing a comparison relationship. Rapid update and storage of topographic map production data is achieved through incremental update, which provides conditions for ensuring the update and current application of basic geographic information data. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0027] Figure 1 This is a key technology flow chart of the present invention.

[0028] Figure 2 This is a flowchart for implementing the newly added element event processor of the present invention.

[0029] Figure 3 Modify the element event processor implementation flow chart for the present invention.

[0030] Figure 4 This is a flow chart for implementing the element deletion event processor of the present invention.

[0031] Figure 5 This is a technical flow chart for the production and update of 1:1000 basic geographic information data of the present invention.

[0032] Figure 6 This is an example diagram of 1:1000 basic geographic information data extracted according to polygon range in the present invention.

[0033] Figure 7 This is an example map for producing a 1:1000 basic topographic map of the present invention.

[0034] Figure 8 This is an example diagram of extracting incremental elements before and after the topographic map is updated and changed according to the present invention.

[0035] Fig. 9 It is a schematic diagram of the module of the present invention.

[0036] In the figure: 100, geographic information comparison module; 200, topographic map data extraction module; 300, identity monitoring module. DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0038] like Figure 1-4 As shown in , the present invention provides a method for incrementally updating basic geographic data based on identity identification, comprising the following steps:

[0039] S1. Obtain the changed element entity and update its identification through the identity monitoring module 300, extract the incremental data of changes in the production of the topographic map, and perform incremental dynamic updates of the changed element entity;

[0040] S2, constructing a database reactor in CAD through the identity monitoring module 300, monitoring the events of adding (including copying and pasting), modifying, deleting, saving, etc. when producing the topographic map, and then updating the identity of the relevant elements, and extracting and storing them in the intermediate data file for dynamic update;

[0041] S3. Database reactors are mapped to various events in CAD. We mainly focus on events such as new creation, selection, copy, move, delete, and save in CAD. We create event handlers for new creation, modification, deletion, and save. When an event occurs, the corresponding event handler is triggered to execute. The specific events and corresponding event handlers are shown in the following table:

[0042]

[0043] S4. For specific operations in topographic map production, write callback functions for the new, modified and deleted event handlers to complete specific operations, generate new unique identification codes and production time for new features, modify the production time for modified features, and modify the deletion time for deleted features; the specific implementation process of the callback function of the new, modified and deleted time handlers is as follows: Figure 2 , 3 , as shown in 4:

[0044] S5. The added, modified, or deleted element entity data is stored separately in the form of a change increment intermediate data file locally or in a fixed location on the server as basic data for dynamic incremental updates;

[0045] S6, update the changed element data extracted above to the corresponding layer in the GIS database, directly write the newly added element entity (the unique identity code does not exist in the database), modify the element entity (the unique identity code remains unchanged, the production time changes), delete the old element entity and store it in the historical database after marking the deletion time according to the new production time, write the modified new element entity, the old element entity with the deletion time marked (the unique identity code is the same and the deletion time is marked), delete the corresponding element in the GIS database, and transfer the element with the edited deletion time to the historical database;

[0046] S7. Extract data within a given range from the basic geographic information database and update the incremental data into the database, mainly by establishing the corresponding relationship between the layers and attributes of the feature entities, using the open source resource GDAL to read and write GIS data, and using CAD secondary development to realize the visualization of basic geographic feature data in CAD;

[0047] S8, establishing the above-mentioned element entity comparison relationship through the geographic information comparison module 100;

[0048] S9, extracting elements from the GIS database by the topographic map data extraction module 200, and filtering out relevant element data according to a given range (polygon) or according to spatial attributes;

[0049] S10. Before producing topographic maps in CAD, the extracted GIS data is layered, colored and symbolized according to the relevant standards for topographic map production based on the feature coding, using the secondary development function of CAD;

[0050] S11. The relevant functions of topographic map production in CAD are realized by using CAD secondary development according to actual needs.

[0051] In S1, the identity monitoring module 300 uniquely and timely labels the element entities in the basic geographic information data, including the unique identity code, production time, and deletion time of the element entity. The production time refers to the time when the element entity is mapped after surveying and mapping. The deletion time refers to the time when the original element entity is deleted when updating the survey or drawing the topographic map after the element entity in the basic geographic information database changes in reality (such as construction or demolition resulting in changes in boundary points).

[0052] In S2, the identity monitoring module 300 obtains the changed feature entities in the topographic map by monitoring events, which can ensure the uniqueness of the feature entity identity code, and record the feature entity generation time and deletion time, and save it in the CAD feature entity with the extended attribute XDATA as the basic information for the incremental dynamic update of the basic geographic information elements.

[0053] In S8, the established comparison relationship specifically includes the GIS standard database structure, the data structure in CAD, and the corresponding comparison relationship between the same element coding in the two data.

[0054] In S9, feature data can be extracted by utilizing the existing spatial and attribute filtering functions in GDAL, or it can be developed independently.

[0055] A basic geographic data incremental update device based on identity identification includes an identity identification monitoring module 300, a terminal of the identity identification monitoring module 300 is connected to a geographic information comparison module 100, and a terminal of the geographic information comparison module 100 is connected to a topographic map data extraction module 200.

[0056] Through an embodiment of the above steps: as shown in 5-8, taking the production and update of 1:1000 basic geographic information data as an example, based on AutoCAD 2021, Visual Studio 2019 C# and GDAL3.4.1 are used to develop and realize reading and writing GIS data, and the identity monitoring module 300 is developed based on Visual Lisp;

[0057] The specific steps are as follows:

[0058] 1) 1:1000 basic geographic information GIS data is stored in database formats such as GDB and PostGIS. It is a geographic information database established in accordance with basic topographic map data standards and can be directly used for data analysis and GIS services.

[0059] 2) Through the topographic map data extraction module 200, based on GDAL, the data in GDB and PostGIS are read, and specific topographic map elements are screened out according to a given spatial range or a certain attribute value, or the topographic map elements in the map sheet are extracted by calculating whether the element entity coordinates are within a given map sheet number.

[0060] 3) Establishing a comparison relationship table through the geographic information comparison module 100, layering, coloring and symbolizing the extracted geographic information elements in CAD according to the topographic map standard to update the topographic map production, Figure 6 The terrain features across the red polygon range extracted from the basic geographic information database have been visualized according to the topographic map standard;

[0061] The establishment of the control relationship mainly includes the following contents:

[0062] A: Create a storage structure table CADFeatTable for the attribute of feature entities in CAD, including layer name, feature code, feature name, symbol, extended attribute name, number of attribute values, attribute value type, default value of each attribute value, corresponding attribute name of each attribute in the GIS database, and the layer where the feature entity is located in the GIS database;

[0063] B: Create a GDB and PostGIS standard database structure table GISDBTable, including layer name, feature code, feature name, attribute name, attribute value type, whether the attribute value is required, attribute value default value, etc. Each layer sets relevant attributes according to the data standard;

[0064] C: The feature codes in CADFeatureTable and GISTable must be consistent, and the feature codes form a complete mapping of CAD data and GIS data, including the mapping of the layers and attribute items of the features in the two types of data.

[0065] 4) Identity identification is realized through three attributes: unique identity code (FeatureID), production time (IDTime), and deletion time (DelTime). They are saved in the CAD feature entity as extended attributes. There are also three corresponding attributes in GDB and PostGIS. The FeatureID of the feature entity object is a GUID (Globally UniqueIdentifier) ​​automatically generated in the program. Its format is "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", where each x is a hexadecimal number in the range of 0-9 or af, such as "f98b40b8-ea2a-4c63-85e2-4e16b3fba9a8" is a valid GUID. IDTime and DelTime are recorded in "year-month-day.hour-minute" (yyyyMMdd.hhmm).

[0066] 5) The identity monitoring module 300 is implemented based on CAD secondary development. By building a database reactor, it monitors the addition (including copy and paste), modification, deletion and other operations when producing topographic maps in CAD and then updates the element identity. The specific steps are as follows:

[0067] A: Add feature entities, build FeatureAdd event handlers, put new feature entities added by new drawing, copy, mirror, array, explode, etc. into the reactor, build event handlers to trigger the clearing of FeatureID and IDTime extended attributes when CAD executes commandended, commandcancelled, lispEnded, lispCancelled, and assign new identity codes and production time to the newly added objects after editing is completed;

[0068] B: Modify feature entities, build FeatureMod event handlers, and monitor the modification of coordinates or text content. When CAD executes commands such as move, break, pedit, ddedit, trim, offset, rotate, scale, stretch, extend, lengthen, fillet, chamfer, etc. to edit feature entities, place the feature entity in the reactor, and build event handlers to trigger the clearing of the object IDTime extended attribute when commandended, commandcancelled, lispEnded, lispCancelled are executed. After the editing is completed, the modified feature entity is given a new production time;

[0069] C: Delete feature entities, build FeatureDel event handlers, monitor the deletion of feature entities, and put the deleted feature entities into the monitor when CAD executes the delete command to delete feature entities. Build a command monitor to trigger the modification of the DelTime extended attribute when executing commandended, commandcancelled, lispEnded, and lispCancelled, and assign it the deletion time. At the same time, the identity code of the deleted feature entity is no longer used.

[0070] Take the production of 1:1000 basic topographic map as an example. Figure 7 As shown, the red dotted line range is the changing element.

[0071] 6) The newly added and changed element entities obtained by the identity monitoring module 300 are stored separately in the local computer in the ".dwg" format after the identification information is updated. Figure 8 The comparison shown is an example of the comparison and extraction of changed element data before and after the topographic map update survey, including new, modified and deleted elements.

[0072] 7) Based on GDAL, the incremental data is updated to the GDB and PostGIS databases. CAD prompts the user whether to update the incremental data. After receiving the confirmation instruction, the incremental update is performed. According to the mapping relationship established in CADFeatTable, all data in the MidData data is written to the corresponding layer of the target data according to the mapping relationship. The following different operations are performed according to the feature identity information:

[0073] A: If FeatureID does not exist in GDB or PostGIS database, directly use the reference relationship

[0074] Write the newly added feature entity directly into the corresponding layer;

[0075] B: If the FeatureID exists in the GDB or PostGIS database but the feature entity has a different IDTime, delete the original feature entity in the database and modify its DelTime to the new IDTime, then store it in the historical database and write a new feature entity with the new IDTime;

[0076] C: FeatureID exists in the GDB or PostGIS database. After the feature entity with the same IDTime and marked with DelTime is deleted in the GDB or PostGIS database, the feature entity marked with DelTime is converted and stored in the historical database.

[0077] 8) The historical database is mainly for GIS database, and is established separately and synchronously according to the current database standards. The layer is named as the standard database layer name plus the suffix "_h". The IDTime and DelTime in the feature entity attributes are recorded and have a unique FeatureID, which is convenient for data tracing and historical data analysis.

[0078] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for incrementally updating basic geographic data based on identity identification, characterized in that: The following steps are involved: S1, obtaining a changed element entity and updating its identification through an identity identification monitoring module (300), extracting the incremental change data in the production of a topographic map, and performing incremental dynamic update of the changed element entity; S2, constructing a database reactor in the CAD through the identity monitoring module (300), monitoring the addition, modification, deletion and saving events when producing the topographic map, and then updating the identity of the relevant elements, and extracting and storing them in the intermediate data file for dynamic update; S3. The database reactor is mapped to various events in CAD. Pay attention to the new, selected, copied, moved, deleted, and saved events in CAD. Create new, modified, deleted, and saved event handlers. When an event occurs, the corresponding event handler is triggered to execute. S4. For specific operations in topographic map production, write callback functions for the add, modify and delete event handlers to complete specific operations, generate new unique identification codes and production time for added elements, modify the production time for modified elements, and modify the deletion time for deleted elements; S5. The added, modified, or deleted element entity data is stored separately in the form of a change increment intermediate data file locally or in a fixed location on the server as basic data for dynamic incremental updates; S6, updating the above extracted changed element data to the corresponding layer of the GIS database, directly writing the newly added element entity, modifying the element entity, deleting the old element entity and marking the deletion time according to the new production time and storing it in the historical database, writing the modified new element entity, the old element entity with the deletion time marked, deleting the corresponding element in the GIS database, and transferring the element with the deletion time to the historical database; S7. Extract data within a given range and incrementally update the changed data from the basic geographic information database, establish the corresponding relationship between the layer where the feature entity is located and the attribute data structure, use the open source resource GDAL to read and write GIS data, and use CAD secondary development to realize the visualization of basic geographic feature data in CAD; S8, establishing the above-mentioned element entity comparison relationship through the geographic information comparison module (100); S9, extracting elements from the GIS database by means of a topographic map data extraction module (200) and filtering out relevant element data according to a given range or spatial attributes; S10. Before producing topographic maps in CAD, the extracted GIS data is layered, colored and symbolized according to the relevant standards for topographic map production based on the feature coding, using the secondary development function of CAD; S11. The relevant functions of topographic map production in CAD are realized by using CAD secondary development according to actual needs.

2. The method for incrementally updating basic geographic data based on identity identification as claimed in claim 1, characterized in that: In S1, the identity monitoring module (300) performs uniqueness and timeliness marking on the element entities in the basic geographic information data, specifically including the unique identity code, production time, and deletion time of the element entity. The production time refers to the time when the element entity is mapped after surveying and mapping, and the deletion time refers to the time when the original element entity is deleted when updating the surveying and mapping or drawing the topographic map after the element entity in the basic geographic information database changes in reality.

3. The method for incrementally updating basic geographic data based on identity identification as claimed in claim 1, characterized in that: In S2, the identity monitoring module (300) obtains the changed element entities in the topographic map by monitoring events, which can ensure the uniqueness of the element entity identity code, and at the same time records the time when the element entity is generated and deleted, and saves it in the CAD element entity with the extended attribute XDATA as the basic information for the incremental dynamic update of the basic geographic information element.

4. The method for incrementally updating basic geographic data based on identity identification as claimed in claim 1, characterized in that: In S8, the established comparison relationship specifically includes the GIS standard database structure, the data structure in CAD, and the corresponding comparison relationship between the same element coding in the two data.

5. The method for incrementally updating basic geographic data based on identity identification as claimed in claim 1, characterized in that: In S9, feature data extraction is independently developed and implemented using the existing spatial and attribute filtering functions in GDAL.

Citation Information

Patent Citations

  • Data updating method and device based on object positioning and electronic equipment

    CN116202508A