Geological map generation method and system based on large model agent

Through the method based on big model agent, the generation process of geological maps is simplified, the problems of complexity and high professional thresholds of geological map production are solved, the efficient generation and popularization of geological maps are achieved, and the development of geological science is promoted.

CN119152071AInactive Publication Date: 2024-12-17ZHEJIANG LAB

Patent Information

Application Number
CN202411596659.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-11
Publication Date
2024-12-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The process of making geological maps is complex and has a high professional threshold, which limits the popularity and application of geological maps. Especially for non-professionals, the threshold for making geological maps is particularly high, affecting the dissemination and exchange of geological information.

Method used

Using the geological map map component generation method based on the big model agent, the standardized geological map generation tool library is defined and constructed, and the input instructions are identified using large language models to realize the call and post-processing verification of geological map generation tools, and simplify geology. The graph generation process supports the export of multiple data formats.

Benefits of technology

It significantly lowers the technical threshold for geological map production, improves the efficiency of mapping, and realizes efficient generation of geological maps, conforms to user's intentions, and is convenient to operate and stable product quality, which promotes the development and popularization of geological science.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119152071A_ABST
    Figure CN119152071A_ABST
Patent Text Reader

Abstract

The invention discloses a geological map generation method and system based on large model agency, and the method comprises the following steps: constructing a geological map generation tool library, and achieving a tool function; uploading a geological map element file, and initializing a geological map; the geological map generation instruction is understood based on a large language model, geological map tool calling is achieved, and a geological map piece is generated; and exporting a geological map result. The invention designs a method and a system for efficiently generating a geological map in a form of calling a drawing tool by interacting with a large model through a natural language and converting a traditional software drawing process into a geological map generation instruction. The geological map generation result obtained through the method conforms to the user instruction intention, strictly follows the drawing process specification defined by the system, and is convenient to use and operate and stable in product quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer artificial intelligence, and in particular to a method and system for generating geological maps based on a large model agent. Background Art

[0002] A geological map is a scientific map that records in detail the rock types, geological structures, and stratigraphic distribution of the earth's surface in a visual way. As an important form of expression of data science on the earth's surface, geological maps not only carry rich geological information, but also play a vital role in many fields such as geological research, resource exploration, and disaster prevention.

[0003] Geological maps are important and of strategic value in the field of earth sciences due to their information integration and expression capabilities. They are a bridge connecting geological theory and practice, and have a strong demand for data production in geological surveys, academic research, and education and popular science.

[0004] However, making geological maps is a complex and delicate process, which requires cartographers not only to have a deep knowledge of geology, but also to be proficient in the operation of professional mapping software. Starting from obtaining basic geological data, cartographers need to perform a series of steps in the software, such as data loading, rendering, and element adjustment. For example, they may need to accurately georeference geological layers, adjust colors and patterns to distinguish different rock types, and add annotations and legends to enhance the readability of the map.

[0005] These operations often require a lot of time and energy, especially for professional cartographers, who may waste precious time on some basic operations. For ordinary researchers or non-professionals interested in geological maps, the threshold for making geological maps is particularly high due to the lack of professional training and experience. This not only limits the popularization and application of geological maps, but also affects the dissemination and exchange of geological information. Therefore, simplifying the production process of geological maps and lowering the technical threshold are of great significance to promoting the development and popularization of geological science.

[0006] With the rapid development of large model technology, intelligent agents based on these models have emerged, such as "Auto-GPT" and "Alibaba Cloud ModelScopeGPT". As a preliminary attempt at general artificial intelligence, these intelligent agents realize human-computer interaction through dialogue, effectively breaking the barriers of information exchange and laying the foundation for the humanized and low-threshold application of artificial intelligence.

[0007] In view of the above background, the large model agent-based method can effectively lower the user's usage threshold and simplify the tedious operation steps in the form of dialogue. This feature can well solve the current pain points in the generation of geological maps and has strong industrial application needs and prospects. Summary of the invention

[0008] In view of the problems of complex geological map production process and high professional threshold in the current geological field, the purpose of the present invention is to provide a geological map generation method and system based on a large model agent.

[0009] The object of the present invention is achieved through the following technical solution: A method for generating geological maps based on a large model agent, comprising the following steps: Define and construct a standardized geological map generation tool library, classify the geological map generation tools in the geological map generation tool library according to their uses in the mapping process, and implement and describe callable functions for a series of geological map generation tools; Upload geological map feature files, perform content verification and spatial consistency verification on supported data types, confirm the visual sorting of data, and then perform initial rendering of geological map elements according to the template; Input geological map generation instructions, identify the intent of the input instructions based on a large language model, map the instructions to geological map generation tools, perform post-processing verification on the call of the geological map generation tools, and then execute the geological map generation tools in sequence to generate geological map pieces; Export geological maps and support multiple data formats.

[0010] Furthermore, the method of defining and constructing a standardized geological map generation tool library, classifying the tools in the tool library according to their uses in the mapping process, and implementing and describing callable functions for the series generation tools includes the following steps: Define and build a standardized geological map generation tool library: According to the geological map making process and objects, the geological map tools are classified into four parts: "map initialization operation", "layer addition and rendering", "map element addition and modification", and "map saving / exporting". According to the above four types of geological map tools, relevant geological map generation tools are designed respectively, and their tool names and functional uses are clarified; Examples of the tool items are as follows:

[0011] The geological map generation tool is implemented with a callable function: Through the secondary development framework of GIS (Geographic Information System) related software, carry out coding encapsulation, implement the functions of the above generation tools, and clarify the API interface name and input parameters; In order to facilitate the scheduling of the above tools in the large model, the output types of all tool functions are unified. After each geological map generation tool is called, it will return an execution message of string type, which records whether the function is called correctly. If it is called correctly, it records the text indicating that the function is successfully called. If it is called incorrectly, it records the specific error information; In order to help the big model better understand the relationship between the user's natural language expression and the generation tool, an accurate and concise description of the above generation tools and parameters is constructed.

[0012] Furthermore, the input parameters are divided into Boolean values ​​(boolean), integers (int), floating-point numbers (float), strings and related data queues (list); wherein the Boolean value is used for displaying and hiding data and map elements; the integer is used to set the font size, line element width, font thickness, and precision, and the value should be greater than zero (the decimal place indicating precision can be zero) without special circumstances, and less than the maximum value designed for the tool; the floating-point number is used for setting map element coordinates, map element and point element size, zoom scale, and longitude and latitude interval, and the value is within the maximum and minimum value range designed for the tool; the string is used for font, style, and text information. When used for text information assignment, the string length is less than the maximum length designed for the tool. In other cases, the string exists in the form of an enumeration value; the data queue is used to describe the RGBA value of the color.

[0013] Furthermore, the geological map element file is uploaded, content verification and spatial consistency verification are performed on supported data types, the visual sorting of the data is confirmed, and then the geological map is initialized and rendered according to the template, including the following steps: Upload data and verify its data content: Upload file data in geographic spatial format, such as shapefile / geojson / kml / gml / geotif / img / csv, etc., and connect relevant geographic information services to databases, such as gdb / geodatabase / mysql / pgsql / wms / wfs / wmts, etc.; if the data content of the above file data is empty and the data cannot be read, the verification will fail, otherwise the content verification will pass; if the above geographic information service is connected to the database and the connection fails or the data cannot be obtained, the verification will fail, otherwise the content verification will pass; Perform layer sorting and spatial consistency check on the uploaded data: traverse the data type and spatial reference coordinate system of the data that has passed the content check, and prioritize the display order of the data. The priority sorting is specifically point layer-line layer-surface layer-raster image-base map service; then perform spatial consistency check on the data; Provide a geological map drawing template, which involves the difference in the existence, size, position, and layout of map elements, and select one of them as the drawing template for this geological map; wherein the map elements include the main map, map name, legend, scale, compass, latitude and longitude grid, and text annotation; Load and initially render the uploaded data: load the data in reverse order according to the determined data display order on the blank mapping template, render the data initially, render the point, line and surface layers with a random single color, and render the raster layer with grayscale stretching of the maximum and minimum values; Initialization of map elements: Initialize map elements according to different contents of loaded data. The initialization items include the compass position, scale expression value, main map viewport range, latitude and longitude range, and legend content. After the above operations are completed, the map will be presented on the interactive page of the system.

[0014] Furthermore, the spatial consistency check is specifically as follows: if the spatial reference coordinate systems of all data are consistent, no additional operation is required; if the spatial reference coordinate systems of some data are missing, and the spatial references of other data are consistent, no additional operation is required; if the spatial reference coordinate systems of the data are inconsistent, the spatial reference coordinate system of the best-ranked layer is used as a reference, and the spatial reference coordinate systems of the remaining layers are transformed into the reference coordinate system; if the spatial reference coordinate systems of some data are inconsistent and the spatial reference coordinate systems of some data are missing, the spatial reference coordinate systems of the inconsistent layers are transformed into the reference coordinate system based on the spatial reference coordinate system of the best-ranked layer, and no additional operation is performed on the data with the missing coordinate system.

[0015] Furthermore, the input geological map generation instruction is used to identify the intent of the input instruction based on a large language model, the instruction is mapped to a geological map generation tool, the call of the geological map generation tool is post-processed and verified, and the geological map generation tool is executed in sequence to generate a geological map, including the following steps: The interactive interface provides a text input box for geological map generation instructions; it also provides some parameter selectors that are not suitable for text interaction to increase the ease of use of the software (such as base map enumeration items, rendering color levels, etc.); Entering a geological map generation instruction in the text input box and specifying relevant parameters, wherein the relevant parameters include rendering color levels, and the content of the instruction has semantic relevance to the name, description and parameters of the geological map generation tool; Combining the name, description and parameters of the geological map generation tool and the geological map generation instruction, constructing a text generation prompt word of the large model; The large model text generation service is called through the text generation prompt word to obtain the calling result of the geological map generation tool, and the calling result includes the name and parameter value of the calling tool; Post-process the verification results. If a tool name that is not in the defined tool library appears, the tool call record will be discarded; if the parameter type and quantity do not match, the record will be discarded; if the parameter value exceeds the defined upper and lower bounds, the boundary value will be taken; Run the geological map generation tools in sequence for the post-processing results, and define a message list to store the tool execution message of each geological map generation tool. After the execution is completed, save the geological map image; The saved geological map images and tool execution message queue are presented in the interactive interface; Perform the above steps multiple times in sequence until the user is satisfied with the results.

[0016] Furthermore, the text generation prompt is specifically: You are a geological mapping expert who is good at generating maps using vector or raster data and can flexibly adjust the base map; You need to select the appropriate tool based on the tool name and description provided; Please assist and respond to humans as accurately as possible; The following tools can be used: {tools}; The meanings of some of the words in the prompt words are as follows: tools: Fill in the names, descriptions and parameters of all geological map generation tools, expressed in a hierarchical manner in JSON format, with tools separated by line breaks.

[0017] Furthermore, the exported geological map supports multiple data formats, including: Define the geological map export formats supported by the system, including GIS software engineering files, image files, and pdf raster / vector files; According to the requirements, determine the export format, resolution, size and other parameters, export the data of the geological map generation results, and store them in the user's local file system.

[0018] The present invention also provides a geological map generation system based on a large model agent, comprising the following modules: Map initialization module: including data uploading, verification, loading and preliminary rendering functions in the integrated geological map generation method; User interaction module: including command understanding, tool mapping, tool calling and execution result return functions in the integrated geological map generation method; Map preview and export module: includes the geological map export function in the geological map generation method.

[0019] Furthermore, the functions of the module are specifically as follows: After the user uploads the geological map element file, the map initialization module will perform content verification and spatial consistency verification on the supported data types, confirm the visual sorting of the data, and then perform initialization rendering of the geological map according to the template; After receiving the geological map generation instruction input by the user, the user interaction module will perform intent recognition on the input instruction based on the large language model, realize the mapping between the instruction and the geological map generation tool, perform post-processing verification on the call of the geological map generation tool, and then execute the geological map generation tool in sequence to generate a geological map; The map preview and export module provides and displays a default map template before the user uploads the geological map element file, and updates the map after each round of dialogue. After completing the map modification, the user can export the map into a specified data format.

[0020] The beneficial effects of the present invention are as follows: the present invention designs a method and system for efficiently generating geological maps by converting the traditional software mapping process into geological map generation instructions through natural language interaction with a large model. The geological map generation result obtained by this method meets the user's instruction intention and strictly follows the mapping process specifications defined by the system. It is easy to use and has stable product quality. Relying on large model proxy technology, the geological map production process is simplified through text interaction, thereby significantly improving mapping efficiency. The present invention not only promotes the close integration of geological engineering and artificial intelligence technology, but also provides strong technical support for the widespread application and popularization of geological maps. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] 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 creative work.

[0022] Figure 1 It is a flow chart of a method for generating geological maps based on a large model agent provided in an embodiment; Figure 2 It is a schematic diagram of the interaction interface between the user and the system in the second step of a geological map generating method based on a large model agent provided in an embodiment; Figure 3 It is a schematic diagram of the interaction interface between the user and the system in the third step of a geological map generation method based on a large model agent provided in an embodiment. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical scheme and technical effect of the present invention more clear, the present invention is further described in detail below in conjunction with the accompanying drawings. Figure 1 .

[0024] The original data of the geological map cited in Example 1 are from the National Geological Survey of Ireland and can be used free of charge according to the CC BY 4.0 agreement. The following is the citation statement.

[0025] Contains Irish Public Sector Data (Geological Survey Ireland)licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0)licence Example

[0026] like Figure 1 As shown, this embodiment provides a method for generating geological maps based on a large model agent, the method comprising the following steps: 1. Define and build a standardized geological map generation tool library, and implement callable functions for a series of generation tools.

[0027] 1.1. Define and build a standardized geological map generation tool library: 1.1.1. According to the geological map making process and objects, the tools are classified into four parts: "map initialization operation", "layer addition and rendering", "map element addition and modification", and "map saving / exporting".

[0028] 1.1.2. According to the above four types of geological map tools, corresponding geological map generation tools are designed respectively to clarify their functions and uses. The system tool items of this embodiment are shown in Table 1.

[0029] Table 1: Example 1 System Tool Description Table

[0030] 1.2. Implement callable functions for the series generation tool: 1.2.1. Through the secondary development framework of GIS (geographic information system) related software, coding encapsulation is carried out to implement the functions of the above-mentioned generation tools. The input parameters and types of the API interface of the above-mentioned tools are shown in Table 2.

[0031] Table 2: API interface input parameter table for series generation tool Tool Name Input Parameter modify_map_background color -> list[r, g, b, a], ∈ int, [0, 255] add_basemap basemap -> string(enmu) modify_map_scale scale -> float map_initial data_list -> list[…], ∈ string add_map_layer layer_path -> string modify_area_color_by_attribute attribute -> string, color_ramp -> string(enmu) modify_area_color color -> list[r, g, b, a], ∈ int, [0, 255] modify_line_style style -> string(enmu) modify_line_width width -> float modify_line_color color -> list[r, g, b, a], ∈ int, [0, 255] modify_point_size size -> float modify_point_style style -> string(enmu) modify_point_color color -> list[r, g, b, a], ∈ int, [0, 255] modify_layer_labels layer -> string, attribute -> string map_add_compass x -> float, y -> float modify_compass_location x -> float, y -> float modify_compass_width width -> float modify_compass_color color -> list[r, g, b, a], ∈ int, [0, 255] modify_compass_style character_index -> string(enmu) map_add_scalebar x -> float, y -> float modify_scalebar_location x -> float, y -> float map_add_scaletext x -> float, y -> float modify_scalebar_size width -> float modify_scalebar_font font -> string(enmu) modify_scalebar_color color->list[r,g,b,a],∈int,[0,255] modify_scalebar_unit unit->string(enmu) modify_scalebar_style style->string(enmu) map_add_legend x->float, y->float modify_legend_location x->float, y->float modify_legend_font font->string(enmu) modify_legend_fontsize fontsize->int modify_legend_title_alignment align->string(enmu) modify_legend_name text->string modify_legend_columns col_num->int map_add_textannotation x->float, y->float,text->string modify_textannotation_fontsize fontsize->int modify_textannotation_font font->string(enmu) modify_textannotation_weight weight->int modify_textannotation_color color->list[r,g,b,a],∈int,[0,255] map_add_title text->string modify_title_fontsize fontsize->int modify_title_font font->string(enmu) modify_title_color color->list[r,g,b,a],∈int,[0,255] modify_title_y y->float modify_title_alignment align->string(enmu) modify_title_weight weight->int map_add_frame color->list[r,g,b,a],∈int,[0,255] modify_frame_ticklength ticklength->int modify_frame_tickwidth tickwidth->int modify_frame_unit unit -> string(enmu) modify_frame_precision precision -> int modify_frame_markers_show show -> boolean modify_frame_markers_fontsize size -> int modify_frame_markers_font font -> string(enmu) modify_gridlines_show show -> boolean modify_gridlines_width width -> int modify_gridlines_color color -> list[r,g,b,a], ∈ int, [0,255] modify_gridlines_style sytle -> string(enmu) modify_gridlines_divisor internal -> float map_save map_name -> string modify_map_size size -> string(enmu) modify_map_format format -> string(enmu) In order to facilitate the scheduling of the above tools in large models, the output type of all tool functions is unified, which is a tool execution message of string type. The execution message records whether the function is called correctly. If it is called correctly, it records the text indicating that the function is successfully called. If it is called incorrectly, it records the specific error information. Figure 2 andFigure 3 As shown, the system returns a conclusion of success or failure for each tool call.

[0032] 1.2.2. Construct an accurate and concise description of the generation tools and parameters so that the big model can better understand the relationship between the user's natural language expression and the generation tools.

[0033] 2. The user uploads the geological map element file and initializes the geological map. Figure 2 shown.

[0034] 2.1. Upload data. The uploaded data in this example includes a surface type feature in shapefile format and a line type feature in shapefile format. The data content is verified. The data verification in this example passes.

[0035] 2.2. Sort the uploaded data and check its spatial consistency: the layer sorting result is "line layer - surface layer", and then check the data's spatial consistency: in this case, the spatial reference coordinate system of all data is consistent, so no additional operation is required.

[0036] 2.3. Provide a geological map drawing template. In this example, select "Template 1" as the drawing template for this geological map.

[0037] 2.4. Loading and initial rendering of uploaded data: In the system, on a blank mapping template, according to the data display order determined in (2.2), load the data in reverse order, and use a simple rendering method to render the data initially: use a random single color for rendering the line and surface layers.

[0038] 2.5. Initialization of map elements: According to the spatial scope of the loaded data content, initialize and adjust the map elements, including the direction of the compass, the expression value of the scale, the viewport range of the main map, the range of longitude and latitude lines, the content of the legend, etc.

[0039] 2.6. After the above operations are completed, the map will be presented on the interactive page of the system.

[0040] 3. Based on the large language model, the intent of the input geological map generation instructions is recognized, the instructions are mapped with the geological map generation tools, and the geological map generation tools are executed in sequence to generate geological map pieces.

[0041] 3.1. The interactive interface provides a text input box for geological map generation instructions; at the same time, in order to increase the ease of use of the software, some parameter selectors that are not suitable for text interaction are optionally provided (such as enumeration items of base maps, rendering color levels, etc.).

[0042] 3.2. Enter the geological map generation command in the text input box and specify the relevant parameters as follows: I want to set the background map as satellite map, and set zoom scale to 1.2.

[0043] 3.3. Combined with the name, description and parameters of the geological map generation tool in step 1 of this example, the text generation prompt words of the large model are constructed through the above generation instructions, as shown below:

[0044] The meanings of some of the words in the prompt words are as follows: tools: fill in the names, descriptions and parameters of all geological map generation tools, expressed in layers in JSON format, with line breaks separating the tools; tools_name: Fill in the names of all geological map generation tools, separated by commas; input: Fill in the input geological map generation instructions.

[0045] 3.4. Generate prompt words through the obtained text, call the large model text generation service, and obtain the calling result of the geological map generation tool, including the name and parameter value of the calling tool.

[0046] 3.5. Post-process the verification results: The results in this example meet the tool call requirements, and post-processing is not called under special circumstances.

[0047] 3.6. For the post-processing results, run the geological map generation tools in sequence, and define a message list to store the tool execution message (Message) of each geological map generation tool. After the execution is completed, save the geological map image.

[0048] 3.7. The saved geological map images and the tool execution message queue are presented in the interactive interface.

[0049] 3.8. In this example, the above steps 3.1 to 3.7 are executed multiple times, and the adjustments include layer rendering, latitude and longitude line styles, legend names, figure names and annotation information, such as Figure 3 shown.

[0050] 4. Export geological maps: Records the long history of Ireland's bedrock geology from the Paleozoic to the Cenozoic. The geology of the region is mainly composed of ancient metamorphic rocks, sedimentary rocks and igneous rocks. During the Caledonian Fold Belt, a large amount of schist, gneiss and granite were formed, which formed the mountains in northern and central Ireland. The southern region is dominated by Paleozoic sedimentary rocks, including Devonian red sandstone and Carboniferous limestone. In addition, there are some important faults in Ireland, such as the Mourne Fault in Northern Ireland, which not only affect the surface landforms, but also have an important impact on the underground structure.

[0051] 4.1. This example confirms that the export format is an image file format.

[0052] 4.2. Determine the export format as PNG, the resolution as 100dpi, and the image size is adaptively adjusted according to the resolution (in this case, 2339 pixels x 1654 pixels). Export the data of the geological map generation results and store them in the user's local file system. Example

[0053] This embodiment provides a method for generating geological maps based on a large model agent. The difference between this embodiment 2 and embodiment 1 is that the system geological map generation tool adds image data support, the uploaded data content is different, the geological map generation instructions are different, the exported image format is different, etc. The method includes the following steps: 1. Define and build a standardized geological map generation tool library, and implement callable functions for a series of generation tools.

[0054] 1.1. Define and build a standardized geological map generation tool library: 1.1.1. According to the geological map making process and objects, the tools are classified into four parts: "map initialization operation", "layer addition and rendering", "map element addition and modification", and "map saving / exporting".

[0055] 1.1.2. According to the above four types of geological map tools, corresponding geological map generation tools are designed respectively to clarify their functions and uses. Compared with Example 1, the system tool items in this embodiment expand the support for raster data such as tif / img, and add methods such as ribbon stretching rendering.

[0056] 1.2. Implement callable functions for the series generation tool: 1.2.1. Carry out coding encapsulation and implement the functions of the above-mentioned generation tools through the secondary development framework of GIS (Geographic Information System) related software.

[0057] In order to facilitate the scheduling of the above tools in large models, the output type of all tool functions is unified, which is a tool execution message of string type. The execution message records whether the function is called correctly. If it is called correctly, it records the text indicating that the function is successfully called. If the call is wrong, it records the specific error information.

[0058] 1.2.2. Construct an accurate and concise description of the generation tools and parameters so that the big model can better understand the relationship between the user's natural language expression and the generation tools.

[0059] 2. The user uploads the geological map element file to initialize the geological map.

[0060] 2.1. Upload data. The uploaded data in this example includes a surface type feature in shapefile format, a line type feature in shapefile format, and a raster data in tif format. The data content is verified. The data verification in this example passes.

[0061] 2.2. Sort the uploaded data and perform spatial consistency check: The layer sorting result is "line layer-surface layer-raster layer", and then perform spatial consistency check on the data: In this example, the raster layer is inconsistent with the spatial reference coordinate system of the above two layers, so the coordinate system is converted.

[0062] 2.3. Provide a geological map drawing template. In this example, select "Template 2" as the drawing template for this geological map.

[0063] 2.4. Load and initially render the uploaded data: In the system, load the data in reverse order on a blank mapping template according to the data display order determined in (2.2), and use a simple rendering method to initially render the data: use a random single color for rendering the line and surface layers, and perform grayscale stretching rendering of the maximum and minimum values ​​for the raster layers.

[0064] 2.5. Initialization of map elements: According to the spatial scope of the loaded data content, initialize and adjust the map elements, including the direction of the compass, the expression value of the scale, the viewport range of the main map, the range of longitude and latitude lines, the content of the legend, etc.

[0065] 2.6. After the above operations are completed, the map will be presented on the interactive page of the system.

[0066] 3. Based on the large language model, the intent of the input geological map generation instructions is recognized, the instructions are mapped with the geological map generation tools, and the geological map generation tools are executed in sequence to generate geological map pieces.

[0067] 3.1. The interactive interface provides a text input box for geological map generation instructions; at the same time, in order to increase the ease of use of the software, some parameter selectors that are not suitable for text interaction are optionally provided (such as enumeration items of base maps, rendering color levels, etc.).

[0068] 3.2. Enter the geological map generation command in the text input box and specify the relevant parameters as follows: Please do not show the base map, just set the background to lightgray, and set zoom scale to 1.1. 3.3. Combined with the name, description and parameters of the geological map generation tool in step 1 of this example, the text generation prompt words of the large model are constructed through the above generation instructions.

[0069] 3.4. Generate prompt words through the obtained text, call the large model text generation service, and obtain the calling result of the geological map generation tool, including the name and parameter value of the calling tool.

[0070] 3.5. Post-process the verification results: The results in this example meet the tool call requirements, and post-processing is not called under special circumstances.

[0071] 3.6. For the post-processing results, run the geological map generation tools in sequence, and define a message list to store the tool execution message (Message) of each geological map generation tool. After the execution is completed, save the geological map image.

[0072] 3.7. The saved geological map images and the tool execution message queue are presented in the interactive interface.

[0073] 3.8. This example executes the above steps 3.1 to 3.7 multiple times, and the adjustments include line layer color / line width / style, surface layer color / annotation, raster layer stretching color band / rendering mode, longitude and latitude interval / line width, legend name / font size, figure name content / font / color, annotation content / font information, scale unit, and compass size / style.

[0074] 4. Export geological maps: 4.1. This example confirms that the export format is pdf vector file format.

[0075] 4.2. Determine the export format as pdf vector, the resolution as 300dpi, the image size is adaptively adjusted according to the resolution, the geological map generation results are exported and stored in the user's local file system. Example

[0076] This embodiment provides a method for generating geological maps based on a large model agent. The difference between this embodiment 3 and embodiments 1 / 2 is that the system geological map generation tool adds support for geographic information services, the uploaded data content is different, the geological map generation instructions are different, the exported image format is different, etc. The method includes the following steps: 1. Define and build a standardized geological map generation tool library, and implement callable functions for a series of generation tools.

[0077] 1.1. Define and build a standardized geological map generation tool library: 1.1.1. According to the geological map making process and objects, the tools are classified into four parts: "map initialization operation", "layer addition and rendering", "map element addition and modification", and "map saving / exporting".

[0078] 1.1.2. According to the above four types of geological map tools, corresponding geological map generation tools are designed respectively to clarify their functions and uses. Compared with embodiments 1 / 2, the system tool items in this embodiment expand the support for geographic information services such as wmts / wms.

[0079] 1.2. Implement callable functions for the series generation tool: 1.2.1. Carry out coding encapsulation and implement the functions of the above-mentioned generation tools through the secondary development framework of GIS (Geographic Information System) related software.

[0080] In order to facilitate the scheduling of the above tools in large models, the output type of all tool functions is unified, which is a tool execution message of string type. The execution message records whether the function is called correctly. If it is called correctly, it records the text indicating that the function is successfully called. If the call is wrong, it records the specific error information.

[0081] 1.2.2. Construct an accurate and concise description of the generation tools and parameters so that the big model can better understand the relationship between the user's natural language expression and the generation tools.

[0082] 2. The user uploads the geological map element file to initialize the geological map.

[0083] 2.1. Upload data. The uploaded data in this example includes a surface type feature in geojson format, a point type feature in geojson format, and a geographic information service address in wmts format. The data content is verified and the data verification in this example passes.

[0084] 2.2. Perform layer sorting and spatial consistency check on the uploaded data: The layer sorting result is "point layer - surface layer - geographic information (base map) service", and then perform spatial consistency check on the data: in this example, the spatial reference coordinate system of the layers is consistent; 2.3. Provide a geological map drawing template. In this example, select "Template 3" as the drawing template for this geological map.

[0085] 2.4. Loading and initial rendering of uploaded data: In the system, on a blank mapping template, according to the data display order determined in (2.2), the data is loaded in reverse order, and the data is initially rendered using a simple rendering method: a random single color is used for rendering the point and surface layers, and the base map service is directly loaded.

[0086] 2.5. Initialization of map elements: According to the spatial scope of the loaded data content, initialize and adjust the map elements, including the direction of the compass, the expression value of the scale, the viewport range of the main map, the range of longitude and latitude lines, the content of the legend, etc.

[0087] 2.6. After the above operations are completed, the map will be presented on the interactive page of the system.

[0088] 3. Based on the large language model, the intent of the input geological map generation instructions is recognized, the instructions are mapped with the geological map generation tools, and the geological map generation tools are executed in sequence to generate geological map pieces.

[0089] 3.1. The interactive interface provides a text input box for geological map generation instructions; at the same time, in order to increase the ease of use of the software, some parameter selectors that are not suitable for text interaction are optionally provided (such as enumeration items of base maps, rendering color levels, etc.).

[0090] 3.2. Enter the geological map generation command in the text input box and specify the relevant parameters as follows: Please do not show the base map and background color. Then setviewport scale to 1.3. 3.3. Combined with the name, description and parameters of the geological map generation tool in step 1 of this example, the text generation prompt words of the large model are constructed through the above generation instructions.

[0091] 3.4. Generate prompt words through the obtained text, call the large model text generation service, and obtain the calling result of the geological map generation tool, including the name and parameter value of the calling tool.

[0092] 3.5. Post-process the verification results: The results in this example meet the tool call requirements, and post-processing is not called under special circumstances.

[0093] 3.6. For the post-processing results, run the geological map generation tools in sequence, and define a message list to store the tool execution message (Message) of each geological map generation tool. After the execution is completed, save the geological map image.

[0094] 3.7. The saved geological map images and the tool execution message queue are presented in the interactive interface.

[0095] 3.8. This example executes the above steps 3.1-3.7 multiple times, and the adjustments include the point layer symbol style / annotation, surface layer stretching ribbon, legend name / font size, legend item font and number of columns, figure name content / font, and annotation content / font information.

[0096] 4. Export geological maps: 4.1. This example confirms that the export format is GIS software engineering file format.

[0097] 4.2. There are no resolution and size requirements for the export of GIS software engineering files, and they are directly exported and stored in the user's local file system. Example

[0098] This embodiment provides a method for generating geological maps based on a large model agent. The difference between this embodiment 4 and embodiments 1 / 2 / 3 is that there are content errors in the uploaded data. The processing of this method and system includes the following steps: 1. Define and build a standardized geological map generation tool library, and implement callable functions for a series of generation tools.

[0099] 1.1. Define and build a standardized geological map generation tool library: 1.1.1. According to the geological map making process and objects, the tools are classified into four parts: "map initialization operation", "layer addition and rendering", "map element addition and modification", and "map saving / exporting".

[0100] 1.1.2. According to the above four types of geological map tools, corresponding geological map generation tools are designed respectively to clarify their functions and uses.

[0101] 1.2. Implement callable functions for the series generation tool: 1.2.1. Carry out coding encapsulation and implement the functions of the above-mentioned generation tools through the secondary development framework of GIS (Geographic Information System) related software.

[0102] In order to facilitate the scheduling of the above tools in large models, the output type of all tool functions is unified, which is a tool execution message of string type. The execution message records whether the function is called correctly. If it is called correctly, it records the text indicating that the function is successfully called. If the call is wrong, it records the specific error information.

[0103] 1.2.2. Construct an accurate and concise description of the generation tools and parameters so that the big model can better understand the relationship between the user's natural language expression and the generation tools.

[0104] 2. The user uploads the geological map element file to initialize the geological map.

[0105] 2.1. Upload data. The data uploaded in this example includes one area type feature in shapefile format and three line type features in geojson format. The data content is verified. Since the line type feature data in geojson format contains json syntax errors, this system cannot correctly parse the data content. The data verification in this example fails and the user is required to upload the data again. Example

[0106] This embodiment also provides a geological map generation system based on a large model agent, including the following modules: Map initialization module: includes data uploading, verification, loading and preliminary rendering functions in the integrated geological map generation method; after the user uploads the geological map feature file, the supported data types will be checked for content and spatial consistency, the visual sorting of the data will be confirmed, and then the geological map will be initialized and rendered according to the template.

[0107] User interaction module: including the command understanding, tool mapping, tool calling and execution result return functions in the integrated geological map generation method; after receiving the geological map generation command input by the user, it will recognize the intention of the input command based on the large language model, realize the mapping of the command and the geological map generation tool, perform post-processing verification on the call of the geological map generation tool, and then execute the geological map generation tool in sequence to generate the geological map.

[0108] Map preview and export module: including the geological map export function in the geological map generation method; providing and displaying the default map template before the user uploads the geological map element file, and updating the map after each round of dialogue. After completing the map modification, the user can export the map to the specified data format.

[0109] The above embodiments are only used to illustrate the design ideas and features of the present invention, and their purpose is to enable those skilled in the art to understand the content of the present invention and implement it accordingly. The protection scope of the present invention is not limited to the above embodiments. Therefore, any equivalent changes or modifications made based on the principles and design ideas disclosed by the present invention are within the protection scope of the present invention.

Claims

1. A method for generating geological maps based on a large model agent, characterized in that: The following steps are involved: Define and construct a standardized geological map generation tool library, classify the geological map generation tools in the geological map generation tool library according to their uses in the mapping process, and implement and describe callable functions for a series of geological map generation tools; Upload geological map feature files, perform content verification and spatial consistency verification on supported data types, confirm the visual sorting of data, and then perform initial rendering of geological map elements according to the template; Input geological map generation instructions, identify the intent of the input instructions based on a large language model, map the instructions to geological map generation tools, perform post-processing verification on the call of the geological map generation tools, and then execute the geological map generation tools in sequence to generate geological map pieces; Export geological maps and support multiple data formats.

2. The method for generating geological maps based on a large model agent according to claim 1, characterized in that: The method of defining and constructing a standardized geological map generation tool library, classifying the tools in the tool library according to their uses in the mapping process, and implementing and describing callable functions for the series generation tools includes the following steps: Define and build a standardized geological map generation tool library: According to the geological map making process and objects, the geological map tools are classified into four parts: "map initialization operation", "layer addition and rendering", "map element addition and modification", and "map saving / exporting"; According to the four categories of geological map tools, we design corresponding geological map generation tools respectively, and clarify their tool names and functional uses; The geological map generation tool is implemented with a callable function: Through the secondary development framework of geographic information system related software, carry out coding encapsulation, implement the functions of the above geological map generation tool, and clarify the API interface name and input parameters; Each of the geological map generation tools will return an execution message of string type after being called, and the execution message records whether the function is called correctly. If it is called correctly, the text indicating that the function is successfully called is recorded; if it is called incorrectly, the specific error information is recorded; Construct precise and concise descriptions of the above-mentioned geological map generation tools and parameters.

3. The method for generating geological maps based on a large model agent according to claim 2, characterized in that: The input parameters are divided into Boolean values, integers, floating-point numbers, strings and related data queues; wherein the Boolean value is used for displaying and hiding data and map elements; the integer is used to set the font size, line element width, font thickness, and precision. Unless there are special circumstances, the value should be greater than zero and less than the maximum value set by the tool. The special case is that the decimal places representing the precision can be zero; the floating-point number is used for setting the coordinates of map elements, the size of map elements and point elements, the zoom scale, and the longitude and latitude interval. The value is within the maximum and minimum value range designed for the tool; the string is used for fonts, styles, and text information. When used for text information assignment, the string length is less than the maximum length designed for the tool. In other cases, the string exists in the form of an enumeration value; the data queue is used to describe the RGBA value of the color.

4. The method for generating geological maps based on a large model agent according to claim 1, characterized in that: The uploading of geological map element files, content verification and spatial consistency verification of supported data types, confirmation of data visualization sorting, and initialization rendering of geological map pieces according to templates include the following steps: Upload the file data in the geospatial format and connect to the relevant geographic information service and database; if the file data has empty data content and the data cannot be read, the verification fails, otherwise the content verification passes; if the geographic information service and database fail to connect or the data cannot be obtained, the verification fails, otherwise the content verification passes; The data types and spatial reference coordinate systems of the data that have passed the content verification are traversed, and the display order of the data is prioritized. The priority ranking is specifically point layer-line layer-surface layer-raster image-base map service; then the data is spatially consistent; Provide a geological map drawing template, which involves the difference in the existence, size, position, and layout of map elements, and select one of them as the drawing template for this geological map; wherein the map elements include the main map, map name, legend, scale, compass, latitude and longitude grid, and text annotation; On a blank mapping template, according to the determined data display order, load the data in reverse order, render the data initially, render the point, line and surface layers with a random single color, and render the grid layer with grayscale stretching of the maximum and minimum values; Initialize the map elements according to the different contents of the loaded data, wherein the initialized map elements include the compass position, the scale expression value, the viewport range of the main map, the range of the longitude and latitude lines, and the contents of the legend; Present the geological map on the interactive page of the system.

5. The method for generating geological maps based on a large model agent according to claim 4, characterized in that: The spatial consistency check is specifically as follows: if all data spatial reference coordinate systems are consistent, no additional operation is required; The spatial reference coordinate system of some data is missing, but the spatial reference of the remaining data is consistent, so no additional operation is required; If the data spatial reference coordinate systems are inconsistent, the spatial reference coordinate system of the best-ranked layer is used as the benchmark, and the spatial reference coordinate systems of the remaining layers are converted to the benchmark coordinate system; The spatial reference coordinate systems of some data are inconsistent, and the spatial reference coordinate systems of some data are missing. The inconsistent layers use the spatial reference coordinate system of the best-ranked layer as the benchmark, and the spatial reference coordinate systems of the remaining layers are converted to the benchmark coordinate system. No additional operations are performed on the data with missing coordinate systems.

6. The method for generating geological maps based on a large model agent according to claim 1, characterized in that: The method comprises the following steps: inputting a geological map generation instruction, performing intent recognition on the input instruction based on a large language model, mapping the instruction with a geological map generation tool, performing post-processing verification on the call of the geological map generation tool, and then executing the geological map generation tool in sequence to generate a geological map. The interactive interface provides a text input box for geological map generation instructions; it also provides parameter selectors that are not suitable for text interaction to increase the ease of use of the software; Entering a geological map generation instruction in the text input box and specifying relevant parameters, wherein the relevant parameters include rendering color levels, and the content of the instruction has semantic relevance to the name, description and parameters of the geological map generation tool; Combining the name, description and parameters of the geological map generation tool and the geological map generation instruction, constructing a text generation prompt word of the large model; The large model text generation service is called through the text generation prompt word to obtain the calling result of the geological map generation tool, wherein the calling result includes the name and parameter value of the calling tool; Post-process the verification results. If a tool name that is not in the defined tool library appears, the tool call record will be discarded; if the parameter type and quantity do not match, the tool call record will be discarded; if the parameter value exceeds the defined upper and lower bounds, the boundary value will be taken; Run the geological map generation tools in sequence for the post-processing results, and define a message list to store the tool execution message of each geological map generation tool. After the execution is completed, save the geological map image; The saved geological map images and tool execution message queue are presented in the interactive interface; Repeat the above steps until the user is satisfied with the result.

7. The method for generating geological maps based on a large model agent according to claim 6, characterized in that: The text generation prompt is as follows: You are a geological mapping expert who is good at generating maps using vector or raster data and can flexibly adjust the base map; You need to select the appropriate tool based on the tool name and description provided; Please assist and respond to humans as accurately as possible; The following tools can be used: {tools}; The meanings of some of the words in the prompt words are as follows: tools: Fill in the names, descriptions and parameters of all geological map generation tools, expressed in a hierarchical manner in JSON format, with tools separated by line breaks.

8. The method for generating geological maps based on a large model agent according to claim 1, characterized in that: The export of geological maps supports multiple data formats and includes the following steps: Define the geological map export formats supported by the system, including GIS software engineering files, image files, and pdf raster / vector files; According to the requirements, the export format, resolution and size are determined, the data of the geological map generation results are exported and stored in the user's local file system.

9. A geological map generation system based on a large model agent, characterized in that: Includes the following modules: Map initialization module: including data uploading, verification, loading and preliminary rendering functions in the integrated geological map generation method; User interaction module: including command understanding, tool mapping, tool calling and execution result return functions in the integrated geological map generation method; Map preview and export module: includes the geological map export function in the geological map generation method.

10. The geological map generation system based on large model agent according to claim 9, characterized in that: The functions of the module are as follows: After the user uploads the geological map element file, the map initialization module will perform content verification and spatial consistency verification on the supported data types, confirm the visual sorting of the data, and then perform initialization rendering of the geological map according to the template; After receiving the geological map generation instruction input by the user, the user interaction module will perform intent recognition on the input instruction based on the large language model, realize the mapping between the instruction and the geological map generation tool, perform post-processing verification on the call of the geological map generation tool, and then execute the geological map generation tool in sequence to generate a geological map; The map preview and export module provides and displays a default map template before the user uploads the geological map element file, and updates the map after each round of dialogue. After completing the map modification, the user can export the map into a specified data format.

Citation Information

Patent Citations

  • Geological map compilation device and method based on data driven

    CN106354807A

  • Vectorization representation method of geological map

    CN112800158A

  • Intelligent generation method of regional three-dimensional geological modeling data

    CN114882187A

  • Task management and resource scheduling method and system for artificial intelligence geological map modeling

    CN118210606A

  • Visual autocompletion for geospatial queries

    US11720240B1

Cited By

  • GIS software interaction implementation method and system based on large language model

    CN120780722A