Method for generating three-dimensional model through digital topographic map based on DWG format
Through FME software and machine learning models, the digital topographic map in DWG format is automatically processed, which solves the problem of incompatibility between DWG format and GIS software, and realizes efficient and accurate three-dimensional model generation, which improves the processing efficiency and accuracy of terrain information.
Patent Information
- Application Number
- CN202410945213.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-11-01
AI Technical Summary
The prior art cannot efficiently and accurately generate a three-dimensional model of the digital topographic map in DWG format, and the DWG format is incompatible with the data structure and format of the GIS software, resulting in data loss, reduced accuracy or conversion errors.
Through the underlying processing software FME and machine learning model, the digital terrain map in DWG format is automatically processed, the element information is extracted, the terrain type and land feature are identified, and the three-dimensional model is generated. Multi-threaded parallel processing and deep learning models are used to improve processing efficiency and accuracy.
It realizes automated processing from DWG files to three-dimensional models, improves processing efficiency and accuracy, provides customized and flexible three-dimensional model generation, and enhances the accuracy and scalability of terrain information.
Smart Images

Figure CN118887337A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of topographic map data processing, and in particular to a method, device, computing equipment and storage medium for generating a three-dimensional model based on a digital topographic map in DWG format. Background Art
[0002] The three-dimensional modeling of digital topographic maps is based on terrain information obtained from field surveys or remote sensing data. It uses mathematical modeling technology to present terrain element information such as elevation, slope, and slope direction on computer equipment. It can more intuitively show the three-dimensional characteristics of the terrain, which is conducive to applications in regional planning, environmental assessment, urban construction and other fields.
[0003] In digital topographic maps, the DWG format can store geospatial data, including terrain elevation data, features (roads, buildings, water bodies, etc.), and 3D model data. However, the DWG format is not specifically designed for use in geographic information systems (GIS) and is incompatible with the data structures, attributes, and formats of GIS software. GIS software often requires format conversion or specialized data processing, which can lead to data loss, reduced accuracy, or conversion errors. Furthermore, different versions of AutoCAD software may produce different DWG file structures, increasing processing complexity and uncertainty. Summary of the Invention
[0004] In order to solve the problem that the existing technology cannot efficiently and accurately generate three-dimensional models from digital topographic maps in DWG format, a method for generating three-dimensional models based on digital topographic maps in DWG format is proposed. The digital topographic maps in DWG format are automatically processed through underlying processing software and machine learning models, which can reduce the problems caused by format conversion and improve processing efficiency and accuracy.
[0005] According to a first aspect of the present invention, a method for generating a three-dimensional model based on a digital topographic map in DWG format is provided, comprising: extracting graphic element information from a digital topographic map file in DWG format and converting the graphic element information into a computer-readable intermediate file; identifying terrain types and land feature features from the graphic element information in the intermediate file based on a machine learning model; and generating a corresponding three-dimensional model based on the identified terrain types and land feature features.
[0006] The above technical solution uses machine learning models to automatically identify terrain types and land features, which can provide accuracy and consistency of terrain models, realize the generation of customized terrain models, and improve the efficiency, accuracy and flexibility of terrain model generation.
[0007] Optionally, in the method for generating a three-dimensional model based on a digital topographic map in DWG format provided by the present invention, a DWG file reader is added to the workspace of the FME software, and the digital topographic map in DWG format is opened; data enhancement and cleaning are performed on the digital topographic map in DWG format; the graphic elements in the DWG file are extracted using the converter and processor of the FME software, and the graphic elements include straight line segments, polygons, curves, circles, ellipses and digital symbols; the extracted graphic elements are parsed to obtain graphic element information; and the graphic element information is converted into an intermediate file in a universal data format.
[0008] The above technical solution uses FME software to process digital topographic map data in DWG format, which can realize automated and diverse graphic element extraction and data format conversion.
[0009] Optionally, in the method for generating a three-dimensional model based on a digital topographic map in DWG format provided by the present invention, satellite image data and lidar data are fused with the digital topographic map in DWG format; multi-threaded parallel processing technology is used to simultaneously analyze the fused multi-source data to obtain graphic element information.
[0010] This technical solution, by fusing satellite imagery, LiDAR data, and digital terrain maps in DWG format, can generate more comprehensive and detailed terrain information, improving the precision and accuracy of map data. The simultaneous analysis of multi-source data using multi-threaded parallel processing technology can significantly improve data processing efficiency, shorten processing time, and accelerate data processing.
[0011] Optionally, in the method for generating a three-dimensional model based on a digital terrain map in DWG format provided by the present invention, the type and attributes of the primitives are extracted from the primitive information of the intermediate file; based on the type and attributes of the primitives, the primitive information is feature extracted and encoded to obtain a data set, the features including location information, geometric shape, layer, color, line type, and texture; the data set is input into a pre-trained machine learning model for training, so that the model recognizes terrain types including water areas, land, buildings, roads, and vegetation to obtain a trained model; new primitive data is input into the trained model to identify the terrain type and automatically segment the land features.
[0012] In the above technical solution, based on the machine learning model, the model can be continuously adjusted and optimized according to needs to adapt to the processing needs of terrain data in different regions, different scales and different types, and has strong scalability.
[0013] Optionally, in the method for generating a three-dimensional model based on a digital terrain map in DWG format provided by the present invention, the machine learning model is any one of a decision tree, a support vector machine, a random forest, and a deep learning model, and the deep learning model adopts a Transformer model or a graph neural network.
[0014] Optionally, in the method for generating a three-dimensional model based on a digital terrain map in DWG format provided by the present invention, corresponding geometric objects are created according to the identified terrain type and land feature through geometric modeling technology; texture, lighting and shadow effects are added to the geometric objects, and a rendering engine is used to present the geometric objects as a three-dimensional model.
[0015] The above technical solution can convert the identified terrain types and land features into a three-dimensional model with visual effects.
[0016] Optionally, in the method for generating a three-dimensional model based on a digital topographic map in DWG format provided by the present invention, the generated three-dimensional model is automatically optimized and adjusted based on a genetic algorithm; and a variety of data export formats and a variety of visualization display effects are provided on the three-dimensional model display interface.
[0017] Through the above technical solution, users can use genetic algorithms to optimize the appearance and effects of 3D models, export data in multiple formats as needed, and present it with multiple visualization effects in the display interface, thereby achieving all-round customization and display of 3D models.
[0018] According to a second aspect of the present invention, there is provided an apparatus for generating a three-dimensional model based on a digital terrain map in DWG format, comprising: a file reading module, a recognition module, and a generation module.
[0019] The file reading module is used to extract graphic element information from digital topographic map files in DWG format and convert it into a computer-readable intermediate file. The recognition module is used to identify terrain types and features from the graphic element information in the intermediate file based on a machine learning model. The generation module is used to generate a corresponding 3D model based on the identified terrain types and features.
[0020] According to a third aspect of the present invention, a computing device is provided, comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be suitable for execution by the at least one processor, and the program instructions include instructions for executing the above-mentioned method for generating a three-dimensional model based on a digital terrain map in DWG format.
[0021] According to a fourth aspect of the present invention, a readable storage medium storing program instructions is provided. When the program instructions are read and executed by a computing device, the computing device executes the above-mentioned method of generating a three-dimensional model based on a digital terrain map in DWG format.
[0022] The method and device for generating a three-dimensional model based on a digital terrain map in DWG format provided by the present invention form an end-to-end process by combining DWG file parsing, recognition of graphic element information by a machine learning model, and three-dimensional modeling technology, thereby realizing automated processing from DWG files to three-dimensional models and improving processing efficiency and accuracy. The machine learning model can be adjusted and optimized according to actual needs and terrain data to obtain better recognition effects, thereby providing more data support and decision-making references for planning and design, environmental assessment, etc.
[0023] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present invention. The same reference symbols are used throughout the drawings to represent the same components. In the drawings: Figure 1 shows a structural diagram of a computing device 100 according to one embodiment of the present invention; Figure 2 A flow chart of a method 200 for generating a three-dimensional model based on a digital terrain map in DWG format according to an embodiment of the present invention is shown; Figure 3 A schematic structural diagram of an apparatus 300 for generating a three-dimensional model based on a digital terrain map in DWG format according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0025] When processing digital topographic maps in DWG format, they usually need to be converted into other formats for processing, which increases the complexity of data processing to a certain extent and may introduce conversion errors. To address the problem that existing technologies cannot efficiently and accurately process digital topographic maps in DWG format to generate accurate 3D models, this solution provides a 3D model generation method based on digital topographic maps in DWG format. By using FME software to read and parse DWG files, DWG files can be accessed through strata and multi-source data can be integrated to extract primitive information in parallel. Machine learning models are also used to realize automated terrain feature recognition and 3D model generation, which can improve processing efficiency and accuracy.
[0026] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0027] Figure 1 FIG. 1 shows a block diagram of a computing device 100 according to an embodiment of the present invention. Figure 1 As shown, in a basic configuration 102, computing device 100 typically includes memory 106 and one or more processors 104. A memory bus 108 may be used for communication between processor 104 and memory 106.
[0028] Processor 104 may be any type of processor, including, but not limited to, a microprocessor (µP), a microcontroller (µC), a digital signal processor (DSP), or any combination thereof. Processor 104 may include one or more levels of cache, such as a level 1 cache 110 and a level 2 cache 112, a processor core 114, and registers 116. An example processor core 114 may include an arithmetic logic unit (ALU), a floating point unit (FPU), a digital signal processing core (DSP core), or any combination thereof. An example memory controller 118 may be used with processor 104, or in some implementations, may be an internal component of processor 104.
[0029] Memory 106 can be any type of memory, including, but not limited to, volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory), or any combination thereof. Physical memory in a computing device typically refers to volatile RAM, and data stored on disk must be loaded into physical memory before it can be read by processor 104. System memory 106 may include an operating system 120, one or more applications 122, and program data 124.
[0030] In some embodiments, application 122 may be arranged so that one or more processors 104 execute instructions on an operating system using program data 124. Operating system 120, for example, may be Linux or Windows, and includes program instructions for handling basic system services and performing hardware-dependent tasks. Application 122 includes program instructions for implementing various user-desired functions. Application 122 may be, for example, a browser, instant messaging software, or software development tools (e.g., an integrated development environment (IDE) or a compiler), but is not limited thereto. When application 122 is installed on computing device 100, a driver module may be added to operating system 120.
[0031] When the computing device 100 is started, the processor 104 reads and executes the program instructions of the operating system 120 from the memory 106. Applications 122 run on top of the operating system 120, utilizing the interfaces provided by the operating system 120 and the underlying hardware to implement various user-desired functions. When a user launches an application 122, the application 122 is loaded into the memory 106, and the processor 104 reads and executes the program instructions of the application 122 from the memory 106.
[0032] Computing device 100 also includes a storage device 132 including removable storage 136 and non-removable storage 138 , both of which are connected to storage interface bus 134 .
[0033] Computing device 100 may also include an interface bus 140 that facilitates communication from various interface devices (e.g., output devices 142, peripheral interfaces 144, and communication devices 146) to basic configuration 102 via bus / interface controller 130. Example output devices 142 include a graphics processing unit 148 and an audio processing unit 150. These can be configured to facilitate communication with various external devices, such as a display or speakers, via one or more A / V ports 152. Example peripheral interfaces 144 may include a serial interface controller 154 and a parallel interface controller 156, which can be configured to facilitate communication with external devices, such as input devices (e.g., a keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., a printer, scanner, etc.), via one or more I / O ports 158. Example communication devices 146 may include a network controller 160, which can be arranged to facilitate communication with one or more other computing devices 162 via a network communication link via one or more communication ports 164.
[0034] A network communication link can be an example of a communication medium. Communication media can generally be embodied as computer-readable instructions, data structures, program modules in a modulated data signal such as a carrier wave or other transport mechanism, and can include any information delivery medium. A "modulated data signal" can be a signal in which one or more of its data sets or a change thereof can be made in a manner that encodes information in the signal. As non-limiting examples, communication media can include wired media such as a wired network or a dedicated line network, and various wireless media such as sound, radio frequency (RF), microwave, infrared (IR) or other wireless media. The term computer-readable media as used herein can include both storage media and communication media. In the computing device 100 according to the present invention, the application 122 includes instructions for executing the method 200 of generating a three-dimensional model based on a digital terrain map in DWG format according to the present invention.
[0035] Figure 2 FIG. 2 is a flow chart showing a method 200 for generating a three-dimensional model based on a digital terrain map in DWG format according to an embodiment of the present invention. Figure 2 As shown, the method 200 begins at step S210 , extracting graphic element information from a digital topographic map file in DWG format, and converting the graphic element information into a computer-readable intermediate file.
[0036] The DWG file format is the native file format of AutoCAD. It contains 2D and 3D graphics, annotations, text, and other graphic elements. It is stored in binary format and organized using a specific data structure. To open a DWG file, you need to use AutoCAD software or other CAD software that supports the DWG file format or an AutoCAD-related library.
[0037] To gain low-level access to DWG files for parsing and processing, you can use software or libraries such as Open DesignAlliance (ODA) Libraries, Autodesk RealDWG, BricsCAD, LibreDWG, FME, etc. to read DWG files.
[0038] Among them, FME software can read, parse, and process geospatial data in various formats. In one embodiment of the present invention, FME software can be used to open digital topographic map files in DWG format. For example, a DWG file reader is added to the FME software workspace, and a digital topographic map in DWG format is opened as a data source. The reading parameters, such as file path, layer selection, coordinate system conversion, etc., are set to correctly read the data in the DWG file.
[0039] To improve data quality and accuracy, data enhancement and cleaning can be performed before processing DWG digital topographic maps. For example, high-frequency noise can be removed using median or mean filtering algorithms, coordinate transformation and calibration can be performed, and values outside the reasonable range in elevation data can be detected and corrected.
[0040] Then, by adding the corresponding converters and processors in the FME software workspace, you can achieve low-level access to the DWG file and extract the graphic elements (primitives) therein. Graphic elements can include line segments, polygons, curves, circles, ellipses, and digital symbols.
[0041] The extracted graphic elements are parsed to obtain the primitive information. Taking a building as an example, information such as material, structure, type, number of floors, etc. can be obtained. In one embodiment of the present invention, satellite image data and lidar data can be fused with a digital terrain map in DWG format. Specifically, you can obtain satellite imagery data, lidar data, and digital topographic maps in DWG format, ensuring they use the same coordinate system and projection. First, register the satellite imagery and lidar data to align them spatially. Then, fuse the registered satellite imagery with the lidar data. Data fusion algorithms (such as weighted averaging and principal component analysis) can be used to adjust hue, saturation, and brightness to obtain richer topographic information and more realistic imagery. Finally, overlay and fuse the fused satellite imagery and lidar data with the digital topographic map in DWG format to obtain more comprehensive and accurate topographic information.
[0042] Multi-threaded parallel processing technology is used to simultaneously analyze the fused multi-source data and obtain primitive information. For example, the fused multi-source data is divided into multiple task units and assigned to different threads for simultaneous processing. Each thread is responsible for parsing and extracting primitive information for a specific data source or data type, thereby improving data processing efficiency through parallel processing.
[0043] Finally, the parsed graphic element information is converted into an intermediate file in a universal data format that can be understood by the computer, such as converting the graphic element information into an array, list, database, etc. for subsequent analysis and application.
[0044] Then, step S220 is executed to identify the terrain type and ground feature from the graphic element information in the intermediate file based on the machine learning model.
[0045] Specifically, the type and attributes of the primitives are first extracted from the primitive information of the intermediate file, including position information, geometric shape, color, line type, texture and other related attribute information.
[0046] Then, based on the type and attributes of the primitives, the primitive information is feature extracted and encoded to obtain a data set. The features include location information, geometric shape, layer, color, line type, texture, spatial relationship relative to other terrain types, etc., to ensure that the extracted features can effectively distinguish different terrain types.
[0047] Based on the dataset size and feature complexity, select an appropriate machine learning algorithm, such as a decision tree, support vector machine, random forest, or deep learning model, as the machine learning model. Deep learning models can use Transformer models or graph neural networks. Input the dataset into a pre-trained machine learning model for training, enabling the model to identify terrain types, including water, land, buildings, roads, and vegetation, to obtain a trained model.
[0048] By classifying new terrain metadata using the trained model, different terrain types, such as water, land, buildings, roads, and vegetation, can be identified. Based on the terrain type identification results, the features can be further segmented. For example, the model outputs a probability distribution for each terrain type, allowing for threshold segmentation based on requirements.
[0049] Finally, step S230 is executed to generate a corresponding three-dimensional model according to the identified terrain type and ground feature.
[0050] Based on the terrain type and features identified from the primitive information, geometric modeling techniques can be used to create corresponding geometric objects. For example, voxel modeling and polygon mesh modeling techniques can be used to establish different terrain features, such as terrain surfaces, buildings, roads, and water bodies. Textures, lighting, and shading effects are then added to these geometric objects based on their features, and a rendering engine is used to render these geometric objects as 3D models. For example, information such as color and texture can be mapped onto the surface of the geometric objects to reveal the details and features of the terrain.
[0051] During the rendering process, you can consider lighting and shadow effects to make the scene more realistic, for example, using the Phong lighting model and ambient occlusion to enhance the visual effects of the scene. The created geometric objects are presented on the screen, for example, using graphics libraries such as OpenGL and DirectX for rendering, or using modern rendering engines such as Unity and UnrealEngine.
[0052] In one embodiment of the present invention, the generated three-dimensional model can be automatically optimized and adjusted based on a genetic algorithm. Specifically, a fitness function is designed to evaluate the quality of the model based on the target to be optimized (such as geometry, material, texture, etc.).
[0053] The three-dimensional model parameters are encoded into chromosomes, and a group of individuals are randomly initialized as the population.
[0054] Genetic algorithm operations such as selection, crossover, and mutation are used to evolve and optimize the population.
[0055] The fitness of each individual is evaluated according to the fitness function, and the next generation of population is selected.
[0056] Repeat operations such as crossover, mutation, and selection until the stopping condition is met (such as reaching the maximum number of iterations or converging to the optimal solution).
[0057] Finally, the 3D model display interface provides multiple data export formats and visualization effects. For example, interactive controls are added to the 3D model display interface, allowing users to select different visualization effects and rendering settings, such as lighting, materials, and shadows, to showcase the diverse effects of the 3D model. Users can easily adjust model parameters and view different perspectives and effects. A real-time preview function is provided, allowing users to instantly see the optimized results and make necessary adjustments and provide feedback.
[0058] The generated 3D model can be exported to multiple formats, such as OBJ format, FBX format, DAE format, STL format, etc., so as to be compatible with other software or platforms.
[0059] Figure 3 FIG. 3 is a schematic diagram showing a structure of an apparatus 300 for generating a three-dimensional model based on a digital terrain map in DWG format according to an embodiment of the present invention. Figure 3 As shown, the device 300 may be based on a multi-layer software architecture, including a file reading module 310 , an identification module 320 and a production module 330 .
[0060] The file reading module 310 can extract graphic element information from a digital topographic map file in a DWG format and convert the graphic element information into a computer-readable intermediate file.
[0061] The recognition module 320 can identify terrain types and features from the primitive information in the intermediate file based on a machine learning model. For example, it can identify different terrain types such as water, land, buildings, roads, and vegetation, and automatically segment the site based on different ground materials.
[0062] The generation module 330 can generate a corresponding three-dimensional model based on the identified terrain type and ground feature, and can provide multiple data export formats and multiple visual display effects on the three-dimensional model display interface.
[0063] The method and device for generating a three-dimensional model based on a digital terrain map in DWG format provided by the present invention form an end-to-end process by combining DWG file parsing, recognition of graphic element information by a machine learning model, and three-dimensional modeling technology, thereby realizing automated processing from DWG files to three-dimensional models and improving processing efficiency and accuracy. The machine learning model can be adjusted and optimized according to actual needs and terrain data to obtain better recognition effects, thereby providing more data support and decision-making references for planning and design, environmental assessment, etc.
[0064] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of this description.
[0065] Those skilled in the art will appreciate that the modules, units, or components of the devices in the examples disclosed herein may be arranged in the device described in the embodiment, or alternatively may be located in one or more devices different from the devices in the examples. The modules in the foregoing examples may be combined into one module or further divided into multiple submodules.
[0066] Those skilled in the art will appreciate that the modules in the devices of the embodiments can be adaptively changed and installed in one or more devices different from the embodiments. The modules, units, or components in the embodiments can be combined into one module, unit, or component, and furthermore, they can be divided into multiple submodules, subunits, or subcomponents.
[0067] Furthermore, those skilled in the art will appreciate that although some embodiments described herein include certain features and not other features included in other embodiments, the combination of features from different embodiments is intended to be within the scope of the invention and to form different embodiments.
[0068] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved and are not intended to imply that the objects so described must have a given order in time, space, ranking, or in any other manner.
[0069] Although the present invention has been described with respect to a limited number of embodiments, it will be apparent to those skilled in the art, having benefit of the foregoing description, that other embodiments are contemplated within the scope of the invention thus described. Furthermore, it should be noted that the language used in this specification has been selected primarily for readability and didactic purposes, rather than for the purpose of explaining or limiting the subject matter of the present invention. Consequently, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is intended to be illustrative and not restrictive of the scope of the invention, which is defined by the appended claims.
Claims
1. A method for generating a three-dimensional model based on a digital terrain map in DWG format, characterized in that: include: Extracting primitive information from digital topographic map files in DWG format and converting the primitive information into computer-readable intermediate files; Identify terrain type and features from the graphic element information in the intermediate file based on a machine learning model; Generate a corresponding three-dimensional model based on the identified terrain type and ground features.
2. The method for generating a three-dimensional model based on a digital terrain map in DWG format according to claim 1, characterized in that: The step of extracting the graphic element information from the digital topographic map file in DWG format and converting the graphic element information into a computer-readable intermediate file comprises: Add a DWG file reader to the FME software workspace to open the digital terrain map in DWG format; Performing data enhancement and cleaning on the digital topographic map in DWG format; Extracting graphic elements from the DWG file using converters and processors of FME software, wherein the graphic elements include straight line segments, polygons, curves, circles, ellipses, and digital symbols; Parse the extracted graphic elements to obtain graphic element information; The graphic element information is converted into an intermediate file in a universal data format.
3. The method for generating a three-dimensional model based on a digital terrain map in DWG format according to claim 2, characterized in that: The step of parsing the extracted graphic elements to obtain the graphic element information comprises: Fuse satellite imagery data and lidar data with digital terrain maps in DWG format; Multi-threaded parallel processing technology is used to simultaneously analyze the fused multi-source data to obtain the primitive information.
4. The method for generating a three-dimensional model based on a digital terrain map in DWG format according to claim 1, characterized in that: The step of identifying the terrain type and the features of the objects from the graphic element information of the intermediate file based on the machine learning model comprises: Extracting the type and attribute of the graphic element from the graphic element information of the intermediate file; According to the type and attribute of the primitive, feature extraction and encoding are performed on the primitive information to obtain a data set, wherein the feature includes position information, geometric shape, layer, color, line type, and texture; Inputting the data set into a pre-trained machine learning model for training, so that the model can recognize terrain types including water areas, land, buildings, roads, and vegetation, and obtain a trained model; New image metadata is input into the trained model to identify terrain types and automatically segment land features.
5. The method for generating a three-dimensional model based on a digital terrain map in DWG format according to claim 4, characterized in that: The machine learning model is any one of a decision tree, a support vector machine, a random forest, and a deep learning model, and the deep learning model adopts a Transformer model or a graph neural network.
6. The method for generating a three-dimensional model based on a digital terrain map in DWG format according to claim 1, characterized in that: The step of generating a corresponding three-dimensional model according to the identified terrain type and ground feature comprises: Create corresponding geometric objects based on the identified terrain types and features through geometric modeling technology; Texture, lighting and shadow effects are added to the geometric objects, and a rendering engine is used to present the geometric objects as three-dimensional models.
7. The method for generating a three-dimensional model based on a digital terrain map in DWG format according to claim 6, characterized in that: The step of generating a corresponding three-dimensional model according to the identified terrain type and ground feature also includes: Automatically optimize and adjust the generated 3D model based on genetic algorithm; The 3D model display interface provides a variety of data export formats and visual display effects.
8. A device for generating a three-dimensional model based on a digital topographic map in DWG format, characterized in that: include: A file reading module is used to extract the graphic element information from the digital topographic map file in DWG format and convert the graphic element information into a computer-readable intermediate file; An identification module, used to identify terrain types and features from the graphic element information in the intermediate file based on a machine learning model; The generation module is used to generate a corresponding three-dimensional model according to the identified terrain type and ground feature.
9. A computing device comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be suitable for execution by the at least one processor, and the program instructions include instructions for executing the method for generating a three-dimensional model based on a digital terrain map in DWG format as described in any one of claims 1-7.
10. A readable storage medium storing program instructions, which, when read and executed by a computing device, enables the computing device to execute the method for generating a three-dimensional model based on a digital terrain map in DWG format as described in any one of claims 1 to 7.
Citation Information
Cited By
General storage method for topographic maps in DWG format
CN119225736A
Distribution network design software test method and system based on CAD platform, and storage medium
CN119336649A
