Method and system for quickly extracting terrain files from flytime data
Patent Information
- Application Number
- CN202211539770.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-02
- Publication Date
- 2026-10-20
- Estimated Expiration
- 2042-12-02
AI Technical Summary
场地上建构筑物均采用REVIT设计建模,因此希望地形也在REVIT上展示,REVIT可读取原始地形,但无法对地形进行有效编辑,既无法进行场地平整和边坡的设计
[0026]本发明的有益效果:本发明通过插件将测绘数据与设计方案相结合,快速生成三维地形模型,实现虚拟三维地形模型的直观演示和分析;解决以往工程,实际地形与设计方案需要分开观察,设计人员需在两种模式下来回切换,无法直观展示出场地平整后对原有地形的影响。
Smart Images

Figure CN115830258B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of three-dimensional topographic map production technology, and in particular to a method and system for rapidly extracting data from FlightDay software to generate topographic files. Background Technology
[0002] In recent years, the nation, looking to the future and following the general trend, has been deeply implementing the Digital China strategy and accelerating digital development. State Grid Corporation of China has also attached great importance to the profound impact of digital design on engineering construction. The State Grid Corporation has proposed vigorously promoting 3D design to improve construction efficiency and quality, deepen its big data strategy, and strengthen the top-level design of "Digital State Grid." Digital transformation is an inevitable trend, and design units have begun to actively explore the application of 3D digital design technology in engineering. Among these, the generation of terrain models has always been a pain point in 3D digital design due to its high difficulty. This project mainly addresses the problem of generating site terrain models, improving the speed of 3D terrain rendering, and simplifying the design process.
[0003] Current technologies can quickly create 3D topographic maps using various software programs, but these only generate the original terrain. Designers, during engineering planning and site selection, need to observe not only the site's topography but, more importantly, the height and extent of slopes after site leveling, as well as distances to surrounding facilities, to provide a basis for optimizing the design. This necessitates that the generated 3D topographic model combine the original terrain with the design scheme. Specifically, the site leveling elevation, slope height and gradient, and access road positioning and slope are designed and drawn by engineers, while the topography is provided by surveyors. The model overlays the designed site leveling slopes with the original terrain, automatically connecting the design site and the terrain, deleting the original terrain within the design scope, and forming a 3D model with the designed site topography. This enables intuitive demonstration and various analyses of the virtual 3D model.
[0004] Revit, a 3D information data design software, is one of the most commonly used 3D design software programs and has long held a dominant position in the architectural design industry. Since all structures on the site are designed and modeled using Revit, it is desirable to also display the terrain in Revit. While Revit can read the original terrain, it cannot effectively edit it, making site leveling and slope design impossible. Feishida software, a professional earthwork calculation software developed based on the AutoCAD platform, is used by most design institutes in China. This software can automatically optimize and calculate the site design elevation according to site requirements and perform slope design based on the design elevation, with fine-tuning of slopes at corners. The research direction of this patent is to explore how to integrate these two commonly used software programs, simplifying the design process and displaying a complete 3D model. Summary of the Invention
[0005] To address the aforementioned problems, the purpose of this invention is to provide a method for rapidly extracting data from Feishida software to generate terrain files. By combining surveying data with design schemes through a plugin, a three-dimensional terrain model can be quickly generated, enabling intuitive demonstration and analysis of the virtual three-dimensional terrain model.
[0006] The present invention employs the following approach: A method for rapidly extracting data from FlightTime software to generate terrain files is provided, the method comprising the following steps:
[0007] Step S1: Use Feishida software to design the site and slope, obtain design point data and topographic point data, and add them to the design point set and topographic point set respectively;
[0008] Step S2: Organize and remove duplicate design point data from the design point set and duplicate terrain point data from the terrain point set;
[0009] Step S3: Triangulate the design point data after removing duplicates, and extract the boundary of the triangular mesh to obtain the boundary of the design point set;
[0010] Step S4: Remove terrain point data within the boundary range of the design point set;
[0011] Step S5: Output the design point data after removing duplicates, the terrain point data outside the boundary range of the design point set, and the boundary line of the design point set in CSV format.
[0012] Furthermore, step S1 is further specified as follows: after the design is completed in the Feishida software, design point data and terrain point data are obtained. The design point data is the design elevation data of the generated site and slope. The terrain point data is the contour lines and elevation points that come with the software's terrain mapping. The design points and terrain points are expressed on the drawing in a specific form. The design points are expressed in the form of attribute blocks, and the terrain points are expressed in the form of ordinary points. They are then added to the design point set and the terrain point set, respectively.
[0013] Furthermore, step S2 is further specified as follows: sorting and removing duplicate points, wherein if the distance between two points is 1 / 100 of the sampling distance, it is identified as a duplicate point and removed; the sampling distance is an interval set by the Feishida software, wherein the removal of duplicate points is performed using a quadtree method, that is, the coordinates of the points are respectively summarized into four nodes of the quadtree, and then each node is subdivided until the maximum tree level is reached or the number of points contained in a single node is less than the minimum number of points, and the subdivision stops. Each node of the quadtree is traversed and the duplicate points under that node are removed.
[0014] Furthermore, the triangulation mesh processing adopts Delaunay triangulation to extract the boundary of the triangular mesh to obtain the boundary of the design point set. When the range formed by the design point set is a non-convex polygon, the point set triangulation needs to specify the maximum distance between points to generate an accurate boundary. The maximum distance between points is 4 times the sampling distance. After the design point set is triangulated, the boundary line of the entire region is obtained by traversing the edges.
[0015] Furthermore, step S4 is further specified as follows: remove the terrain point data within the boundary range of the design point set, that is, traverse the terrain points and connect them with the points within the boundary range of the design point set, and then find the intersection with the boundary line. If there is an intersection, the terrain point is outside the boundary range of the design point set; if there is no intersection, it is within the boundary range of the design point set.
[0016] This invention provides a system for quickly extracting data from Feishida software to generate terrain files, comprising a data acquisition module, a duplicate point removal module, a triangulation processing module, a terrain point processing module, and a data export module;
[0017] The data acquisition module uses Feishida software to design the site and slope, and obtains design point data and topographic point data, which are then added to the design point set and the topographic point set, respectively.
[0018] The duplicate point removal module organizes and removes duplicate design point data from the design point set and duplicate terrain point data from the terrain point set.
[0019] The triangulation module performs triangulation mesh processing on the design point data after removing duplicates, and extracts the boundary of the triangular mesh to obtain the boundary of the design point set.
[0020] The terrain point processing module removes terrain point data within the boundary range of the design point set;
[0021] The exported data module outputs, in CSV format, the design point data after removing duplicates, the terrain point data outside the boundary range of the design point set, and the boundary line of the design point set.
[0022] Furthermore, the data acquisition module specifically involves: after the design is completed in the Feishida software, obtaining design point data and terrain point data. The design point data is the design elevation data of the generated site and slopes; the terrain point data is the contour lines and elevation points that come with the software's terrain mapping. The design points and terrain points are expressed on the drawing in a specific form, with design points expressed as attribute blocks and terrain points expressed as ordinary points. They are then added to the design point set and the terrain point set, respectively.
[0023] Furthermore, the duplicate point removal module is further specified as follows: sorting and removing duplicate points, wherein if the distance between two points is 1 / 100 of the sampling distance, it is identified as a duplicate point and removed; the sampling distance is an interval set by the Feishida software, wherein the removal of duplicate points is performed in a quadtree manner, that is, the coordinates of the points are respectively summarized into four nodes of the quadtree, and then each node is subdivided until the maximum tree level is reached or the number of points contained in a single node is less than the minimum number of points, and the subdivision stops. Each node of the quadtree is traversed and the duplicate points under that node are removed.
[0024] Furthermore, the triangulation mesh processing adopts Delaunay triangulation to extract the boundary of the triangular mesh to obtain the boundary of the design point set. When the range formed by the design point set is a non-convex polygon, the point set triangulation needs to specify the maximum distance between points to generate an accurate boundary. The maximum distance between points is 4 times the sampling distance. After the design point set is triangulated, the boundary line of the entire region is obtained by traversing the edges.
[0025] Furthermore, the terrain point processing module is further specified as follows: removing terrain point data within the boundary range of the design point set, that is, traversing the terrain points and connecting them with the points within the boundary range of the design point set, and then finding the intersection with the boundary line. If there is an intersection, the terrain point is outside the boundary range of the design point set; if there is no intersection, it is within the boundary range of the design point set.
[0026] The beneficial effects of this invention are as follows: This invention combines surveying data with design schemes through a plugin to quickly generate a three-dimensional terrain model, enabling intuitive demonstration and analysis of the virtual three-dimensional terrain model; it solves the problem that in previous projects, the actual terrain and the design scheme needed to be observed separately, and designers had to switch back and forth between the two modes, making it impossible to intuitively show the impact of site leveling on the original terrain. Attached Figure Description
[0027] Figure 1 This is a schematic diagram of the method flow of the present invention.
[0028] Figure 2 This is a schematic diagram of the boundary line of the design point set in one embodiment of the present invention.
[0029] Figure 3 This is a system principle block diagram of the present invention. Detailed Implementation
[0030] The invention will now be further described with reference to the accompanying drawings.
[0031] Please see Figures 1 to 2 As shown, this invention provides a method for quickly extracting data from FlightDay software to generate terrain files, the method comprising the following steps:
[0032] Step S1: Use Feishida software to design the site and slope, obtain design point data and topographic point data, and add them to the design point set and topographic point set respectively;
[0033] Step S2: Organize and remove duplicate design point data from the design point set and duplicate terrain point data from the terrain point set;
[0034] Step S3: Triangulate the design point data after removing duplicates, and extract the boundary of the triangular mesh to obtain the boundary of the design point set;
[0035] Step S4: Remove terrain point data within the boundary range of the design point set;
[0036] Step S5: Output the design point data after removing duplicates, the terrain point data outside the boundary range of the design point set, and the boundary line of the design point set in CSV format.
[0037] The present invention will be further described below with reference to a specific embodiment:
[0038] A method for quickly extracting data from FlightDay software to generate terrain files, the method is as follows:
[0039] Step S1: Use Feishida software to design the site and slope, obtain design point data and topographic point data, and add them to the design point set and topographic point set respectively;
[0040] After the Feishida software completes the design, it generates the design elevations of the site and slopes, referred to here as design point data. Topographic mapping includes contour lines, elevation points, and other data, referred to here as topographic points. Both design points and topographic points are expressed in specific forms on the drawings, such as attribute blocks, points, blocks, and special objects. In this example, design points exist as attribute blocks; by identifying the location of a block with a specified name, it is identified as a design point and added to the design point set. Topographic points exist as ordinary points; they are added to the topographic point set by acquiring all points in the entire drawing.
[0041] Step S2: Organize and remove duplicate design point data from the design point set and duplicate terrain point data from the terrain point set;
[0042] Data processing primarily involves removing duplicate points. If two points are close to each other (meaning close is 1 / 100 of the sampling distance; the sampling distance is a calculation interval set by the designers during the Feishida calculation process based on accuracy requirements, typically 2-20m, and controlled by 1 / 100 of this interval; points smaller than this value are considered duplicates), then they are considered duplicates and removed to reduce data volume and improve the accuracy of subsequent processing.
[0043] To improve data processing efficiency, duplicate points are handled using a quadtree method. This involves assigning each point's coordinates to one of the four nodes of a quadtree, then further subdividing each node until the maximum tree level is reached or the number of points in a single node is less than the minimum. Each node in the quadtree is traversed, and duplicate points under that node are removed.
[0044] Step S3: Triangulate the design point data after removing duplicates, and extract the boundary of the triangular mesh to obtain the boundary of the design point set;
[0045] Extracting the design point boundaries first requires triangulating the design point set into a mesh. The boundaries of the design point set are then obtained by extracting the boundaries of the triangulated mesh. Considering that the range formed by the design point set may be a non-convex polygon, a maximum distance between points needs to be specified during point triangulation (the default maximum distance is 4 times the sampling distance) to generate accurate boundaries. There are several methods for triangulating point sets; Delaunay triangulation is commonly used.
[0046] After triangulation of the point set, the boundary line of the entire region is obtained by traversing the edges.
[0047] Considering that automatically generated boundary lines may differ from the designer's expectations, or that the designer may want to make local adjustments, the plugin also provides a command to select a polyline as the boundary line for exporting to CSV. Designers can fine-tune the automatically generated boundary lines or draw a closed polyline themselves as the boundary line; the command can then select this boundary line to re-export the CSV file.
[0048] Step S4: Remove terrain point data within the boundary range of the design point set;
[0049] Remove terrain point data within the boundary range of the design point set. This involves traversing the terrain points and connecting them with points within the boundary range of the design point set. Then, find the intersection with the boundary line. If an intersection exists, the terrain point is outside the boundary range of the design point set; otherwise, it is within the boundary range of the design point set.
[0050] Step S5: Output the design point data after removing duplicates, the terrain point data outside the boundary range of the design point set, and the boundary line of the design point set in CSV format.
[0051] This generates multiple CSV files, allowing designers to read data points of different ranges from Revit and generate models of different ranges as needed.
[0052] Among them, all points in GPCADFGD.csv after merging;
[0053] GPCADFGD_boundarypoint.csv extracts the boundary lines of the region;
[0054] GPCADFGD_outpoint.csv extracts points outside the specified region;
[0055] GPCADFGD_inpoint.csv extracts points within a specified region.
[0056] Please see Figure 3 As shown, the present invention provides a system for quickly extracting data from Feishida software to generate terrain files, comprising a data acquisition module, a duplicate point removal module, a triangulation processing module, a terrain point processing module, and a data export module;
[0057] The data acquisition module uses Feishida software to design the site and slope, and obtains design point data and topographic point data, which are then added to the design point set and the topographic point set, respectively.
[0058] The data acquisition module further specifically involves: after the design is completed in the Feishida software, obtaining design point data and terrain point data. The design point data is the design elevation data of the generated site and slopes; the terrain point data is the contour lines and elevation points that come with the software's terrain mapping. The design points and terrain points are expressed on the drawing in a specific form, with design points expressed as attribute blocks and terrain points expressed as ordinary points. They are then added to the design point set and the terrain point set, respectively.
[0059] The duplicate point removal module organizes and removes duplicate design point data from the design point set and duplicate terrain point data from the terrain point set.
[0060] The duplicate point removal module further specifies the following: It sorts and removes duplicate points, where a point is considered a duplicate if the distance between two points is 1 / 100 of the sampling distance, and removes it. The sampling distance is a spacing set by the Feishida software. During Feishida calculations, designers set a calculation spacing based on accuracy requirements; 2-20m is common. This spacing is controlled by 1 / 100 of the sampling distance; points smaller than this value are considered duplicates. The removal of duplicate points uses a quadtree approach, where points are assigned to four nodes of a quadtree based on their coordinates. Each node is then subdivided until the maximum tree level is reached or the number of points in a single node is less than the minimum number of points. Subdivision stops when the maximum tree level is reached or the number of points in a single node is less than the minimum number of points. Each node in the quadtree is traversed, and duplicate points under that node are removed.
[0061] The triangulation module performs triangulation mesh processing on the design point data after removing duplicates, and extracts the boundary of the triangular mesh to obtain the boundary of the design point set.
[0062] The triangulation mesh processing uses Delaunay triangulation to extract the boundary of the triangular mesh to obtain the boundary of the design point set. When the range formed by the design point set is a non-convex polygon, the maximum distance between points needs to be specified during point set triangulation to generate an accurate boundary. The maximum distance between points is 4 times the sampling distance. After the design point set is triangulated, the boundary line of the entire region is obtained by traversing the edges.
[0063] The terrain point processing module removes terrain point data within the boundary range of the design point set;
[0064] The terrain point processing module further specifies that: terrain point data within the boundary range of the design point set is removed, that is, the terrain points are traversed and connected with the points within the boundary range of the design point set, and then the intersection with the boundary line is calculated. If there is an intersection, the terrain point is outside the boundary range of the design point set; if there is no intersection, it is within the boundary range of the design point set.
[0065] The exported data module outputs, in CSV format, the design point data after removing duplicates, the terrain point data outside the boundary range of the design point set, and the boundary line of the design point set.
[0066] This generates multiple CSV files, allowing designers to read data points of different ranges from Revit and generate models of different ranges as needed.
[0067] Among them, all points in GPCADFGD.csv after merging;
[0068] GPCADFGD_boundarypoint.csv extracts the boundary lines of the region;
[0069] GPCADFGD_outpoint.csv extracts points outside the specified region;
[0070] GPCADFGD_inpoint.csv extracts points within a specified region.
[0071] In summary, this invention enables site plan designers to use their familiar software, Flyda, for site leveling design and calculations without altering their existing design habits and methods. After the site design is completed, a plugin is used to quickly export the data. The 3D design software receives the data and generates a merged terrain model. The specific operation is as follows: Designers use Flyda software to level the site and design slopes based on the surveyed terrain. After the design is completed, the plugin reads the Flyda calculation data, generates a design boundary line on the outside of the slope, obtains the software design elevation within the boundary line and the original terrain elevation outside the boundary line, merges the two sets of data, exports a CSV file, inserts the CSV file into the 3D software Revit, and automatically generates the merged terrain.
[0072] The above description is only a preferred embodiment of the present invention and should not be construed as a limitation of this application. All equivalent changes and modifications made in accordance with the scope of the patent application of the present invention should be covered by the present invention.
Claims
1. A method for rapidly extracting data from FlightTime software to generate terrain files, characterized in that: The method includes the following steps: Step S1: Use Feishida software to design the site and slope, obtain design point data and topographic point data, and add them to the design point set and topographic point set respectively; Step S2: Organize and remove duplicate design point data from the design point set and duplicate terrain point data from the terrain point set; Step S3: Triangulate the design point data after removing duplicates, and extract the boundary of the triangular mesh to obtain the boundary of the design point set; Step S4: Remove terrain point data within the boundary range of the design point set; Step S5: Output the design point data after removing duplicates, the terrain point data outside the boundary range of the design point set, and the boundary line of the design point set in CSV format. Step S1 is further specified as follows: After the design is completed in the Feishida software, design point data and terrain point data are obtained. The design point data is the design elevation data of the generated site and slopes; the terrain point data is the contour lines and elevation points that come with the software's terrain mapping. The design points and terrain points are expressed on the drawing in a specific form, with the design points expressed as attribute blocks and the terrain points expressed as ordinary points. They are then added to the design point set and the terrain point set respectively. Step S2 is further specified as follows: sorting and removing duplicate points, wherein if the distance between two points is 1 / 100 of the sampling distance, it is identified as a duplicate point and removed; the sampling distance is an interval set by the Feishida software, wherein the removal of duplicate points is performed in a quadtree manner, that is, the coordinates of the points are respectively summarized into four nodes of the quadtree, and then each node is subdivided until the maximum tree level is reached or the number of points contained in a single node is less than the minimum number of points, and the subdivision stops. Traverse each node of the quadtree and remove duplicate points under that node.
2. The method for rapidly extracting data from FlightDay software and generating terrain files according to claim 1, characterized in that: The triangulation mesh processing uses Delaunay triangulation to extract the boundary of the triangular mesh to obtain the boundary of the design point set. When the range formed by the design point set is a non-convex polygon, the maximum distance between points needs to be specified during point set triangulation to generate an accurate boundary. The maximum distance between points is 4 times the sampling distance. After the design point set is triangulated, the boundary line of the entire region is obtained by traversing the edges.
3. The method for rapidly extracting data from FlightDay software and generating terrain files according to claim 1, characterized in that: Step S4 is further specified as follows: Remove the terrain point data within the boundary range of the design point set, that is, traverse the terrain points and connect them with the points within the boundary range of the design point set, and then find the intersection with the boundary line. If there is an intersection, the terrain point is outside the boundary range of the design point set; if there is no intersection, it is within the boundary range of the design point set.
4. A system for rapidly extracting data from Flightradar24 software to generate terrain files, characterized in that: The system includes: a data acquisition module, a duplicate point removal module, a triangulation processing module, a terrain point processing module, and a data export module; The data acquisition module uses Feishida software to design the site and slope, and obtains design point data and topographic point data, which are then added to the design point set and the topographic point set, respectively. The duplicate point removal module organizes and removes duplicate design point data from the design point set and duplicate terrain point data from the terrain point set. The triangulation module performs triangulation mesh processing on the design point data after removing duplicates, and extracts the boundary of the triangular mesh to obtain the boundary of the design point set. The terrain point processing module removes terrain point data within the boundary range of the design point set; The exported data module outputs, in CSV format, the design point data after removing duplicates, the terrain point data outside the boundary range of the design point set, and the boundary line of the design point set. The data acquisition module further specifically involves: after the design is completed in the Feishida software, obtaining design point data and terrain point data. The design point data is the design elevation data for the generated site and slopes; the terrain point data is the contour lines and elevation points that come with the software's terrain mapping. The design points and terrain points are expressed on the drawing in a specific form, with design points expressed as attribute blocks and terrain points expressed as ordinary points. They are then added to the design point set and the terrain point set, respectively. The duplicate point removal module further specifies the following: It sorts and removes duplicate points, where the distance between two points is 1 / 100 of the sampling distance, and these points are considered duplicates and removed. The sampling distance is an interval set by the Feishida software. The removal of duplicate points is performed using a quadtree method, that is, the coordinates of the points are summarized into four nodes of the quadtree, and each node is further subdivided until the maximum tree level is reached or the number of points contained in a single node is less than the minimum number of points. The subdivision stops when each node of the quadtree is traversed and the duplicate points under that node are removed.
5. The system for rapidly extracting data from FlightDay software and generating terrain files according to claim 4, characterized in that: The triangulation mesh processing uses Delaunay triangulation to extract the boundary of the triangular mesh to obtain the boundary of the design point set. When the range formed by the design point set is a non-convex polygon, the maximum distance between points needs to be specified during point set triangulation to generate an accurate boundary. The maximum distance between points is 4 times the sampling distance. After the design point set is triangulated, the boundary line of the entire region is obtained by traversing the edges.
6. The system for rapidly extracting data from FlightDay software and generating terrain files according to claim 4, characterized in that: The terrain point processing module further specifies that: terrain point data within the boundary range of the design point set is removed, that is, the terrain points are traversed and connected with the points within the boundary range of the design point set, and then the intersection with the boundary line is calculated. If there is an intersection, the terrain point is outside the boundary range of the design point set; if there is no intersection, it is within the boundary range of the design point set.