Document marking method and system
By establishing a document drawing entry library and data model, generating and parsing the plot data model file, solving the problems of slow manual drawing speed and complex operation, and achieving intelligent drawing and operation simplification.
Patent Information
- Application Number
- CN202111512998.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-11
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2041-12-11
AI Technical Summary
In the prior art, the method of manually understanding the plan documents and manually drawing them on the map is slow and complicated.
Establish a document drawing entry library, document data model and plot data model, generate a plot data model file, and parse the file based on the plot system for image drawing, use grammar or lexical analysis to extract keyword entry and position description information, calculate the accurate position and match it.
It realizes intelligent drawing on the map according to the plan documents, improves the drawing speed and simplifies the operation process.
Smart Images

Figure CN114218189B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of electronic map marking, and in particular to a document marking method and system. Background Art
[0002] A situation map is a thematic map that uses graphic symbols and concise text to represent operational deployment and posture according to certain principles and requirements. In forest fire prevention, earthquake relief, field location scouting, and military activities, situation maps serve as the basis for action and an important form of communication. In recent years, the state has required various departments to formulate emergency response plans for various major incidents within their respective responsibilities. These emergency response plans include graphic plans, known as situation maps. The vast majority of the data required to create these maps comes from the plan documents. Currently, mapping plans based on mapping systems requires manual interpretation of the document and manual mapping based on its content on the map.
[0003] In the process of realizing the present invention, the inventors found that the current method of manually understanding the plan documents and manually marking them on the map according to the contents of the plan documents is slow and complicated to operate. Summary of the Invention
[0004] The embodiments of the present application provide a document marking method and system, which can improve the current problem that the method of manually understanding the plan documents and manually marking them on the map according to the contents of the plan documents is slow and complicated to operate.
[0005] In a first aspect of the present application, a document marking method is provided, comprising:
[0006] Generate a mapping data model file based on the document mapping term library, document data model and mapping data model;
[0007] Based on the mapping system, the mapping data model file is parsed to perform image mapping;
[0008] Among them, the document marking term library is established according to the marking regulations and historical documents, the document data model is established according to the natural language rules and document scene constraints, and the marking data model is established according to the graphic drawing requirements of the marking system.
[0009] By adopting the above technical solutions, in the document marking method provided in the embodiment of the present application, a document marking term library is established according to the marking regulations and historical documents; a document data model is established according to the natural language rules and document scene constraints; a marking data model is established according to the graphic drawing requirements of the marking system; a marking data model file is generated based on the document marking term library, the document data model and the marking data model; and then based on the marking system, the marking data model file is parsed for image marking. This can improve the current method of manually understanding the plan documents and manually marking them on the map according to the content of the plan documents, which is slow and complicated to operate, and achieve the effect of intelligent marking on the map according to the plan documents, improving the marking speed and simplifying the operation process.
[0010] In a possible implementation, generating a mapping data model file based on a document mapping term library, a document data model, and a mapping data model includes:
[0011] Extracting document key words through grammatical analysis or lexical analysis based on the document mapping term library and the document data model;
[0012] Based on the mapping data model, the mapping data model file is generated according to the document key words and file specifications.
[0013] In a possible implementation, based on the document mapping term library and the document data model, location description information is extracted through syntax analysis or lexical analysis; the location description information includes coordinate point location, orientation, and distance;
[0014] Establishing a position calculation formula according to the position description method, wherein the position description method includes accurate coordinates and approximate coordinates;
[0015] Calculate the exact location based on the location description information based on the location calculation formula;
[0016] The accurate position is matched with the position marked in the image to provide a document marking reference.
[0017] In one possible implementation, before establishing a position calculation formula based on the position description in the document, the following steps are included:
[0018] Determining the position description method;
[0019] If the coordinates are accurate, then establishing the position calculation formula based on the accurate coordinates and the geodetic subject forward calculation problem algorithm;
[0020] If it is the approximate coordinate, the approximate coordinate is converted into longitude and latitude coordinates, and the position calculation formula is established based on the longitude and latitude coordinates based on the geodetic subject forward calculation problem algorithm.
[0021] In a second aspect of the present application, a document marking system is provided, comprising:
[0022] A generation module, for generating a mapping data model file based on a document mapping term library, a document data model and a mapping data model;
[0023] A plotting module, configured to parse the plotting data model file and perform image plotting based on a plotting system;
[0024] Among them, the document marking term library is established according to the marking regulations and historical documents, the document data model is established according to the natural language rules and document scene constraints, and the marking data model is established according to the graphic drawing requirements of the marking system.
[0025] In a possible implementation, the generating module includes:
[0026] an extraction unit, configured to extract key document entries through grammatical analysis or lexical analysis based on the document mapping entry library and the document data model;
[0027] A generating unit is used to generate the mapping data model file based on the mapping data model and in accordance with the document key words and file specifications.
[0028] In a possible implementation, the method further includes:
[0029] An extraction module, configured to extract location description information based on the document mapping term library and the document data model through grammatical analysis or lexical analysis; the location description information includes coordinate point location, orientation, and distance;
[0030] An establishment module, configured to establish a position calculation formula according to the position description method, wherein the position description method includes accurate coordinates and approximate coordinates;
[0031] A calculation module, configured to calculate an accurate location based on the location calculation formula and the location description information;
[0032] A reference module is used to match the accurate position with the position of the image marking to provide a document marking reference.
[0033] In a possible implementation, the method further includes:
[0034] A judgment module, configured to judge the position description mode;
[0035] If the coordinates are accurate, then establishing the position calculation formula based on the accurate coordinates and the geodetic subject forward calculation problem algorithm;
[0036] If it is the approximate coordinate, the approximate coordinate is converted into longitude and latitude coordinates, and the position calculation formula is established based on the longitude and latitude coordinates based on the geodetic subject forward calculation problem algorithm.
[0037] In a third aspect of the present application, an electronic device is provided, comprising: a memory and a processor, wherein the memory stores a computer program, and the processor implements the above method when executing the computer program.
[0038] In a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method are implemented.
[0039] It should be understood that the contents described in the Summary of the Invention are not intended to limit the key or important features of the embodiments of the present application, nor are they intended to limit the scope of the present application. Other features of the present application will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The above and other features, advantages and aspects of the embodiments of the present application will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0041] Figure 1 A flowchart of a method for marking a document in an embodiment of the present application is shown;
[0042] Figure 2 It shows a structural diagram of the document marking system in an embodiment of the present application;
[0043] Figure 3 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application is shown. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0045] The document marking method provided in the embodiment of the present application can be applied to the field of electronic map marking technology. In some embodiments, the document marking method can be executed by an electronic device.
[0046] Currently, based on the mapping system, the general steps for document mapping according to the plan document are: on the map, use the mouse and keyboard to manually map the graphics at the specified longitude and latitude positions.
[0047] Specifically, first, obtain the emergency plan document written in the word processing software (Word document). The content recorded in the emergency plan document is the scene that needs to be mapped described in natural language. Secondly, the user extracts the latitude and longitude coordinate information of the scene that needs to be mapped and the information that needs to be mapped according to their own understanding. Then, use the mouse and keyboard to manually determine the exact location on the map. Finally, interact with the emergency plan document and manually plot the geometric figures at the exact location.
[0048] In summary, the current method of manually understanding the emergency plan document and manually marking it on the map according to the content of the emergency plan document is slow and complicated. In order to solve the above problems, the embodiment of the present application provides a document marking method.
[0049] Figure 1 The flowchart of the method for marking a document in the embodiment of the present application is shown. Figure 1 In this embodiment, the document marking method includes:
[0050] Step 101: Generate a mapping data model file based on the document mapping term library, the document data model and the mapping data model.
[0051] Step 102: Based on the mapping system, the mapping data model file is parsed to perform image mapping.
[0052] Among them, the document marking term library is established according to the marking regulations and historical documents, the document data model is established according to the natural language rules and document scene constraints, and the marking data model is established according to the graphic drawing requirements of the marking system.
[0053] By adopting the above technical solutions, in the document marking method provided in the embodiment of the present application, a document marking term library is established according to the marking regulations and historical documents; a document data model is established according to the natural language rules and document scene constraints; a marking data model is established according to the graphic drawing requirements of the marking system; a marking data model file is generated based on the document marking term library, the document data model and the marking data model; and then based on the marking system, the marking data model file is parsed for image marking. This can improve the current method of manually understanding the plan documents and manually marking them on the map according to the content of the plan documents, which is slow and complicated to operate, and achieve the effect of intelligent marking on the map according to the plan documents, improving the marking speed and simplifying the operation process.
[0054] In step 101, the mapping system is an important component of the command automation system. The mapping system includes the military mapping system based on Map Objects (Geographic Information System Development Toolkit), the military mapping system based on Are Engine (Geographic Information System Secondary Development Toolkit), and the integrated combat mapping management system.
[0055] Preferably, the mapping system may be a military mapping system based on Map Objects (Geographic Information System Development Kit).
[0056] The method for establishing a document mapping term library includes:
[0057] Establish a document marking entry database based on mapping regulations and historical documents.
[0058] In the embodiment of the present application, the mapping regulations include mapping requirements and a mapping symbol library. The mapping requirements can be set based on human experience or based on existing mapping requirements in the mapping system. The historical documents contain a large number of historical plan documents.
[0059] In the embodiment of the present application, according to the mapping regulations, key words are extracted from a large number of historical emergency plan documents, and the key words include document key words and location description information. The document key words are used to generate a mapping data model file, and the location description information is used to provide a reference for document mapping.
[0060] In an embodiment of the present application, the method for establishing a document data model includes:
[0061] Establish a document data model based on natural language rules and document scenario constraints.
[0062] In this application, based on a large number of historical emergency plan documents, natural language patterns are acquired through imitation, repetition, application, language environment, and understanding and memorization. Based on a large number of historical emergency plan documents, document scenario constraints are obtained according to application scenario requirements. Document scenario constraints are the written requirements of the mapping data model file.
[0063] In an embodiment of the present application, the generation of the mapping data model file is guided according to the natural language rules and document scenario constraints.
[0064] In some embodiments, step 101 includes: step A1-step A2.
[0065] Step A1: Based on the document mapping term library and the document data model, extract the document key terms through grammatical analysis or lexical analysis.
[0066] Step A2: Based on the mapping data model, a mapping data model file is generated according to document key words and file specifications.
[0067] In the embodiments of the present application, grammatical analysis or lexical analysis is a method for parsing the plan document and extracting key words based on the document mapping term library and document data model. Parsing the plan document and extracting key words through grammatical analysis or lexical analysis can also be implemented through existing applications or application software.
[0068] The application program may be a system application program, a desktop application program, a driver application program, a network application program, a mobile application program, or an Internet of Things application program, etc. The application software may be a document processing software, etc.
[0069] In the embodiment of the present application, the document key words are the substantive content of the mapping data model file, which is extracted from the plan document based on the document mapping term library and the document data model. The file specification is a framework generation template for the mapping data model file, which can be set according to mapping requirements and human experience.
[0070] In the embodiment of the present application, the mapping data model file is an intermediate format file that can be recognized and parsed by the mapping system. Based on the mapping system, the mapping data model file is used to perform image mapping on the document.
[0071] The method for establishing the mapping data model includes:
[0072] The mapping data model is established according to the graphic drawing requirements of the mapping system.
[0073] In the embodiments of the present application, the graphic uploading requirements (graphic standards) refer to the interface standards for data transmission and communication between various interfaces in the graphics system and its related application systems, as well as the subroutine functions and their format standards for calling graphics applications. The former is called the data and file format standard, and the latter is called the subroutine interface standard.
[0074] In the embodiments of the present application, the drawing system's graphic requirements are determined by the type of drawing system. Different drawing systems have their own established graphic requirements during design and development. Based on the document keywords and file specifications, a drawing data model file that can be recognized and parsed by the drawing system can be generated based on the drawing data model.
[0075] In step 102, the mapping data model file is an intermediate file generated by the mapping data model established according to the drawing requirements of the mapping system. The mapping data model file is input into the mapping system, which can directly recognize and analyze the mapping data model file and perform image mapping on the plan document.
[0076] In some embodiments, the method further includes: steps 104 to 107 .
[0077] Step 104: Based on the document mapping term library and the document data model, extract the location description information through grammatical analysis or lexical analysis. The location description information includes the coordinate point location, direction and distance.
[0078] Step 105: Establish a position calculation formula based on the position description method, where the position description method includes accurate coordinates and approximate coordinates.
[0079] Step 106: Calculate the exact location based on the location description information based on the location calculation formula.
[0080] Step 107: Match the exact position with the image-marked position to provide a document marking reference.
[0081] In this embodiment of the present application, the location description information is the substantive content of the mapping data model file, which is extracted from the plan document based on the document mapping term library and the document data model. The coordinate point position, orientation, and distance in the location description information are used for direct or indirect mapping.
[0082] In the embodiments of this application, regardless of the type of plan document, the location description in the plan document includes both exact coordinates and approximate coordinates. Exact coordinates can be used directly for mapping. Approximate locations are locations with a certain orientation and distance from a coordinate point, and the target location needs to be calculated for mapping.
[0083] For example, given the coordinates of a certain location, such as Yushan (100°23′40″, 23°20′45″), these latitude and longitude coordinates can be used directly, that is, they are accurate coordinates.
[0084] For example, given the coordinates of a location such as Yushan (40,18), these coordinates must first be converted to latitude and longitude coordinates before they can be used, which are approximate coordinates.
[0085] In the embodiments of the present application, a position calculation formula is established based on the position description method and the algorithm for the geodetic direct calculation problem. For example, the Bessel method is used to solve the geodetic direct calculation problem, and the position description method is substituted into the position calculation formula to establish the position calculation formula and perform coordinate calculation to obtain the accurate position.
[0086] In an embodiment of the present application, the document marking reference is a comparison graphic reference provided by the document marking system. The document marking reference corresponds to each sentence of position description information in the plan document and is used for manual verification.
[0087] In some embodiments, the method further includes: step 103 .
[0088] Step 103: Determine the location description method.
[0089] If the coordinates are accurate, a position calculation formula is established based on the accurate coordinates and the algorithm for the geodetic subject matter.
[0090] If it is an approximate coordinate, convert the approximate coordinate into longitude and latitude coordinates, and establish a position calculation formula based on the longitude and latitude coordinates based on the geodetic subject forward calculation problem algorithm.
[0091] In the embodiments of the present application, the approximate coordinates represent the local coordinates under Gaussian projection, which are represented by (X, Y). The X value represents the distance from the equator within 100 kilometers, and the Y value represents the distance from the central meridian within 100 kilometers, and the unit is KM.
[0092] In the embodiment of the present application, the method for converting approximate coordinates into longitude and latitude coordinates (accurate coordinates) includes: steps B1 to B3.
[0093] Step B1: Based on the map sheet number given when the document was drawn, calculate the Gaussian projection zone, central meridian and 100-kilometer range of the map location.
[0094] Step B2: Calculate the accurate Gaussian projection coordinates based on the Gaussian projection zone, central meridian, and 100-kilometer range of the map location.
[0095] Step B3: Convert Gaussian projection coordinates to geographic coordinates.
[0096] In this embodiment of the present application, the position description method is determined. If the coordinates are accurate, the accurate position is calculated directly based on the position calculation formula established by the geodetic direct calculation algorithm. If the coordinates are approximate, the approximate coordinates are converted to accurate coordinates, and then the accurate position is calculated based on the position calculation formula established by the geodetic direct calculation algorithm.
[0097] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all optional embodiments, and the actions and modules involved are not necessarily required by this application.
[0098] The above is an introduction to the method embodiment. The following is a device embodiment to further illustrate the solution described in this application.
[0099] Figure 2 The structure diagram of a document marking system according to an embodiment of the present application is shown. Figure 2 The document marking system includes a generation module 201 and a marking module 202.
[0100] The generating module 201 is used to generate a mapping data model file based on the document mapping term library, the document data model and the mapping data model.
[0101] The mapping module 202 is used to parse the mapping data model file and perform image mapping based on the mapping system.
[0102] Among them, the document marking entry library is established according to the marking regulations and historical documents, the document data model is established according to the natural language rules and document scenario constraints, and the marking data model is established according to the graphic drawing requirements of the marking system.
[0103] In some embodiments, the generation module 201 includes:
[0104] An extraction unit, configured to extract key words from a document through grammatical analysis or lexical analysis based on a document mapping term library and a document data model;
[0105] The generating unit is used to generate a mapping data model file based on the mapping data model and in accordance with the document key words and file specifications.
[0106] In some embodiments, the document marking system further includes:
[0107] The extraction module 204 is used to extract location description information based on the document mapping term library and the document data model through syntax analysis or lexical analysis. The location description information includes coordinate point location, direction and distance.
[0108] The establishment module 205 is used to establish a position calculation formula according to the position description method, where the position description method includes accurate coordinates and approximate coordinates.
[0109] The calculation module 206 is configured to calculate the accurate location based on the location description information based on a location calculation formula.
[0110] The reference module 207 is used to match the accurate position with the position marked on the image, and provide a document marking reference.
[0111] In some embodiments, the document marking system further includes.
[0112] The judgment module 203 is used to judge the location description method.
[0113] If the coordinates are accurate, a position calculation formula is established based on the accurate coordinates and the algorithm for the geodetic subject matter.
[0114] If it is an approximate coordinate, convert the approximate coordinate into longitude and latitude coordinates, and establish a position calculation formula based on the longitude and latitude coordinates based on the geodetic subject forward calculation problem algorithm.
[0115] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0116] Figure 3 Schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present application is shown. Figure 3 As shown, Figure 3 The electronic device 300 shown includes a processor 301 and a memory 303. The processor 301 and the memory 303 are connected. Optionally, the electronic device 300 may further include a transceiver 304. It should be noted that in actual applications, the number of transceivers 304 is not limited to one, and the structure of the electronic device 300 does not constitute a limitation on the embodiments of the present application.
[0117] The processor 301 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor 301 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0118] The bus 302 may include a path for transmitting information between the above components. The bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0119] The memory 303 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM.
[0120] (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0121] The memory 303 is used to store application code for executing the solution of the present application, and the execution is controlled by the processor 301. The processor 301 is used to execute the application code stored in the memory 303 to implement the content shown in the above method embodiment.
[0122] Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.
[0123] The embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding content in the aforementioned method embodiment. Compared with the prior art, in the embodiment of the present application, a document marking term library is established according to mapping regulations and historical documents; a document data model is established according to natural language rules and document scene constraints; a mapping data model is established according to the graphic requirements of the mapping system; a mapping data model file is generated based on the document marking term library, the document data model and the mapping data model; and the mapping data model file is parsed based on the mapping system to perform image mapping. This can improve the current method of manually understanding the plan document and manually mapping on the map according to the content of the plan document, which is slow and complicated to operate, and achieve the effect of intelligent mapping on the map according to the plan document, improving the mapping speed and simplifying the operation process.
[0124] It should be understood that although the steps in the flowcharts of the accompanying drawings are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the flowcharts of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0125] The above description is only part of the implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A document marking method, characterized in that: include: Generate a mapping data model file based on the document mapping term library, document data model and mapping data model; Based on the mapping system, the mapping data model file is parsed to perform image mapping; The document marking term library is established based on marking regulations and historical documents, the document data model is established based on natural language rules and document scenario constraints, and the marking data model is established based on the graphic drawing requirements of the marking system; Extracting location description information based on the document mapping term library and the document data model through grammatical analysis or lexical analysis; the location description information includes coordinate point location, direction and distance; Establishing a position calculation formula according to a position description method, wherein the position description method includes accurate coordinates and approximate coordinates; Based on the position calculation formula, the accurate position is calculated according to the position description information; the position description method is substituted into the position calculation formula, and the coordinate calculation is performed to obtain the accurate position; the accurate position is matched with the position of the image marking to provide a document marking reference; the document marking reference is a comparison graphic reference provided by the document marking system, and the document marking reference corresponds to each sentence of the position description information in the emergency plan document for manual verification; Before establishing a position calculation formula based on the position description in the document, including: Determining the position description method; If the coordinates are accurate, then establishing the position calculation formula based on the accurate coordinates and the geodetic subject forward calculation problem algorithm; If it is the approximate coordinate, the approximate coordinate is converted into longitude and latitude coordinates, and based on the geodetic subject calculation problem algorithm, the position calculation formula is established according to the longitude and latitude coordinates; the accurate coordinates are the longitude and latitude coordinates that can be directly used for mapping; the approximate coordinates are the local coordinates that need to be converted into longitude and latitude coordinates; the accurate position is the coordinates calculated by the geodetic calculation algorithm.
2. A document marking system, characterized in that: include: A generation module, for generating a mapping data model file based on a document mapping term library, a document data model and a mapping data model; A plotting module, configured to parse the plotting data model file and perform image plotting based on a plotting system; The document marking term library is established based on marking regulations and historical documents, the document data model is established based on natural language rules and document scenario constraints, and the marking data model is established based on the graphic drawing requirements of the marking system; the generation module includes: an extraction unit, configured to extract key document entries through grammatical analysis or lexical analysis based on the document mapping entry library and the document data model; A generating unit is configured to generate the mapping data model file based on the mapping data model, the document key words, and the file specification; and further includes: an extracting module configured to extract location description information based on the document mapping term library and the document data model through grammatical analysis or lexical analysis; the location description information includes coordinate point location, orientation, and distance; An establishment module is used to establish a position calculation formula according to a position description method, wherein the position description method includes accurate coordinates and approximate coordinates; A calculation module, configured to calculate an accurate location based on the location calculation formula and the location description information; A reference module is used to match the accurate position with the position of the image marking to provide a document marking reference; and further includes: a judgment module for judging the position description method; If the coordinates are accurate, then establishing the position calculation formula based on the accurate coordinates and the geodetic subject forward calculation problem algorithm; If it is the approximate coordinate, the approximate coordinate is converted into longitude and latitude coordinates, and the position calculation formula is established based on the longitude and latitude coordinates based on the geodetic subject forward calculation problem algorithm.
3. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the method according to claim 1 is implemented.
4. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to claim 1 are implemented.