Visual processing method, device and equipment for sediment data, medium and product
By parsing and converting the format of sediment analysis files and combining them with image data for visualization rendering, the problem of the visualization of sediment movement analysis data not conforming to reality has been solved, achieving efficient and flexible sediment data visualization and reducing costs.
Patent Information
- Application Number
- CN202511751645.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-26
- Publication Date
- 2026-03-03
AI Technical Summary
Existing visualization methods for sediment transport analysis data rely on the original software environment for data sharing, making them incompatible with geographic information systems. Furthermore, the two-dimensional static representation cannot present the vector characteristics of bedload transport, resulting in visualizations that do not reflect reality.
By parsing the cell-based sediment analysis files stored in a dynamic flexible grid, sediment and geographic data are obtained and converted into a web-readable format. Combined with image data, visualization rendering is performed, supporting user interaction and dynamic display.
It achieves complete preservation of spatiotemporal information of sediment analysis data, improves the flexibility and practicality of visualization, reduces costs, supports smooth dynamic rendering of more than 30 frames per second, and eliminates dependence on commercial software.
Smart Images

Figure CN121600205A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of water conservancy engineering technology, specifically to methods, devices, equipment, media, and products for visual processing of sediment data. Background Technology
[0002] Current sediment transport analysis in the field of water conservancy engineering mainly relies on three types of technologies: on-site monitoring equipment, numerical simulation software, and remote sensing inversion technology. The sediment transport analysis data generated by these technologies is usually stored in professional formats for visualization purposes.
[0003] In related technologies, the visualization method for sediment transport analysis data involves storing the data in the DFSU (Dynamic Flexible Mesh Storage Unit) format and using a two-dimensional static representation to visualize it. However, in this visualization method, the parsing of DFSU format files is exclusive, requiring data sharing to rely on the original software environment. It may also lead to time series breaks, and the two-dimensional static representation cannot present the vector characteristics of bedload transport, resulting in a visualization of sediment transport analysis data that does not accurately reflect reality. Summary of the Invention
[0004] This invention provides a method, apparatus, equipment, medium, and product for visualizing sediment data, in order to solve the problem that the visualization of sediment movement analysis data in related technologies does not conform to the actual situation.
[0005] In a first aspect, the present invention provides a method for visualizing sediment data, comprising: acquiring a dynamic flexible grid storage cell-based sediment analysis file of a target river; parsing the sediment analysis file to obtain sediment data and geographic data; the sediment data being time-series data of sediment analysis; and the geographic data being data characterizing the geometry and attributes of the target river; converting the sediment data and geographic data into a format to obtain a target sediment analysis file in a preset geographic information format, wherein the preset geographic information format is a file format recognizable by a webpage; performing visualization rendering based on image data of the target river and the target sediment analysis file to obtain a target sediment analysis interface; and dynamically displaying the target sediment analysis interface on a preset webpage in response to user operation commands.
[0006] This invention provides a method for visualizing sediment data. It acquires a dynamic, flexible grid-based sediment analysis file of the target river, preserving the spatiotemporal information of the sediment analysis. The method parses the sediment analysis file to obtain both sediment and geographic data, retaining the dynamic characteristics of the sediment data while binding the river's spatial attributes. This invention converts the sediment and geographic data into a web-readable file format, resolving the compatibility issue between hydrological data and geographic information systems. Based on image data of the target river, this invention performs visualization rendering on the target sediment analysis file to obtain a target sediment analysis interface. Responding to user commands, the target sediment analysis interface is dynamically displayed on a preset webpage. By combining river image data with sediment data rendering, abstract numerical values are transformed into an intuitive spatial visualization interface, improving the readability of the sediment analysis results, supporting user interaction, and enhancing the flexibility and practicality of sediment data visualization. Compared with related technologies, this invention directly parses professional sediment data formats such as DFSU on the web page, eliminating the dependence on some commercial software. Based on web page visualization rendering, it can achieve smooth dynamic rendering of more than 30 frames per second, reducing costs and improving the smoothness of sediment data visualization.
[0007] In one optional implementation, the sediment analysis file is parsed to obtain sediment data and geographic data, including: reading the sediment analysis file using a preset hydrological database to obtain sediment data; and reading the sediment analysis file using a preset geometric database to obtain geographic data.
[0008] In one optional implementation, sediment data and geographic data are converted into a target sediment analysis file in a preset geographic information format. The preset geographic information format is a file format recognizable by a web browser. This includes: traversing the sediment data at each time point in chronological order and writing the sediment data into the sediment attribute table of the preset sediment analysis file to obtain a target sediment attribute table; converting the geographic data into a format to obtain a target geographic attribute table and a target geometry; obtaining an initial sediment analysis file based on the target sediment attribute table, the target geographic attribute table, and the target geometry; and configuring spatial reference information for the initial sediment analysis file to obtain the target sediment analysis file.
[0009] In one optional implementation, the geographic data is format-converted to obtain a target geographic attribute table and a target geometry, including: converting the geometry in the geographic data to obtain a target geometry in a geospatial data format; and writing the geographic attribute data in the geographic data into the geographic attribute table of a preset sediment analysis file to obtain the target geographic attribute table.
[0010] In one optional implementation, based on the image data of the target river, a target sediment analysis interface is obtained by visual rendering according to the target sediment analysis file. This includes: rendering the image data of the target river to obtain an initial target sediment analysis interface; aligning the geographic coordinates corresponding to the target sediment analysis file with the scene coordinates of the initial target sediment analysis interface; and based on the aligned initial target sediment analysis interface, using a heatmap to render the spatiotemporal changes of sediment data and geographic data in the target sediment analysis file to obtain the target sediment analysis interface.
[0011] In one optional implementation, in response to a user's operation command, the target sediment analysis interface is dynamically displayed on a preset webpage, including: in response to a user's click on a preset control, the target sediment analysis interface is dynamically displayed on a preset webpage.
[0012] Secondly, the present invention provides a visualization processing device for sediment data, comprising: a data upload module for acquiring a dynamic flexible grid storage cell-style sediment analysis file of a target river, parsing the sediment analysis file to obtain sediment data and geographic data; the sediment data is time-series data of sediment analysis; the geographic data is data characterizing the geometric shape and attributes of the target river; a data conversion module for converting the sediment data and geographic data into a target sediment analysis file in a preset geographic information format, wherein the preset geographic information format is a file format recognizable by a webpage; a data visualization module for performing visualization rendering based on image data of the target river and the target sediment analysis file to obtain a target sediment analysis interface; and an interactive control module for dynamically displaying the target sediment analysis interface on a preset webpage in response to user operation commands.
[0013] Thirdly, the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the above-described method for visualizing sediment data according to the first aspect or any corresponding embodiment.
[0014] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the method for visualizing sediment data according to the first aspect or any corresponding embodiment described above.
[0015] Fifthly, the present invention provides a computer program product, including computer instructions, which are used to cause a computer to execute the method for visualizing sediment data according to the first aspect or any corresponding embodiment described above. Attached Figure Description
[0016] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0017] Figure 1 This is a schematic diagram of an application scenario according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the first process of a method for visualizing sediment data according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the second process of a method for visualizing sediment data according to an embodiment of the present invention; Figure 4 This is a schematic diagram of the third process of the visualization processing method for sediment data according to an embodiment of the present invention; Figure 5 This is a structural block diagram of a sediment data visualization processing device according to an embodiment of the present invention; Figure 6 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0018] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0019] It is understood that before using the technical solutions disclosed in the various embodiments of the present invention, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in the present invention and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means.
[0020] As an optional application scenario of this invention, such as Figure 1 As shown, the sediment data visualization system may include at least one terminal device and at least one server. Figure 1 The system is illustrated in the example, which includes a computer 101, a mobile terminal 102, and a server 103, and the terminal devices such as the computer 101 and the mobile terminal 102 are connected to the server 103 through a network 110.
[0021] Specifically, the terminal device can be a smartphone, tablet, laptop, PDA, desktop computer, game console, smart TV, smart wearable device, in-vehicle terminal, VR (Virtual Reality) device, AR (Augmented Reality) device, etc. Server 103 can be a standalone physical server, a server cluster, a distributed system, or a cloud server providing cloud services. Network 110 can be a wired or wireless network, examples of which include, but are not limited to, the Internet, corporate intranet, local area network, wide area network, mobile communication network, and combinations thereof.
[0022] The visualization methods for sediment transport analysis data in related technologies rely on the exclusive parsing of DFSU format by some software, which means that data sharing must depend on the original software environment. In cross-unit collaborative projects, the data loss rate due to format conversion is as high as 12.3%. In particular, dynamic parameters such as bed elevation change rate will have time series breakage problems when converted to a common format.
[0023] At the visualization technology level, current solutions remain at the stage of two-dimensional static representation. For example, contour lines are used to display the distribution of suspended sediment concentration, but the vector characteristics of bedload transport cannot be presented. More importantly, professional software requires high-end graphics cards to achieve a basic interactive rate of 5 frames per second when performing 3D rendering, resulting in excessively high hardware costs for a single visualization workstation.
[0024] Among related technologies, web-based visualization solutions only support access to the standard hydrological database HydroDB and lack the ability to parse professional formats commonly used in engineering, such as DFSU and FLOW3D (flow field simulation software). Some related technologies use WebGL (Web Graphics Library) technology to display sediment on the browser side, but their visualization dimension is limited to single-parameter color patches of suspended sediment concentration, failing to integrate coupled analysis of bed sediment vector field and bed topography changes. Some related technologies achieve multi-terminal access through cloud computing, but their data transmission latency averages 4.7 seconds on 4G networks, which cannot meet the localized real-time processing requirements of classified projects.
[0025] The embodiment provides a method for visualizing sediment data. By converting the format of sediment analysis files stored in a dynamic flexible grid cell, a smooth visualization effect of sediment data can be achieved.
[0026] According to an embodiment of the present invention, a method for visualizing sediment data is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0027] This embodiment provides a method for visualizing sediment data, which can be used with computer equipment. Figure 2 This is a first flowchart of a method for visualizing sediment data according to an embodiment of the present invention, as shown below. Figure 2 As shown, the process includes the following steps: Step S201: Obtain the dynamic flexible grid storage cell-style sediment analysis file of the target river, parse the sediment analysis file to obtain sediment data and geographic data; the sediment data is the time series data of sediment analysis; the geographic data is the data characterizing the geometry and attributes of the target river.
[0028] The target river is the river for which sediment analysis is performed, and the Dynamic Flexible Mesh Storage Unit (DFSU) format is a proprietary format of the MIKE series software. The sediment analysis file is the file obtained by analyzing the sediment of the target river using the MIKE series software. The sediment data is the time-series data of sediment analysis obtained by analyzing the sediment of the target river. For example, the sediment data includes key data such as suspended sediment concentration, bedload transport, and bed elevation changes, which can completely preserve the boundary conditions, grid parameters, and calculation results of the hydrodynamic model. The geographic data is the spatial information data of the target river, including the geometric shape and geographic attribute data of the target river.
[0029] For example, a DFSU format sediment analysis file uploaded by a user through a web interface is obtained.
[0030] In some optional implementations, the sediment analysis file is parsed to obtain sediment data and geographic data, including: reading the sediment analysis file using a preset hydrological database to obtain sediment data; and reading the sediment analysis file using a preset geometric database to obtain geographic data.
[0031] The preset hydrological database is used to identify DFSU format sediment analysis files and extract data, and can be the Mikeio database; the preset geometric database is used to identify DFSU format sediment analysis files and extract geometric figures, and can be the Shapely database.
[0032] In some alternative implementations, the sediment data is spatial grid-based sediment data, with different sediment data corresponding to each control grid, and the data changes dynamically over time.
[0033] Step S202: Convert the sediment data and geographic data to obtain a target sediment analysis file in a preset geographic information format. The preset geographic information format is a file format that can be recognized by the web page.
[0034] The default geographic information format is one that can be recognized by the GeoPandas geographic data processing library, such as the GeoPandas DataFrame format.
[0035] Step S203: Based on the image data of the target river, perform visualization rendering according to the target sediment analysis file to obtain the target sediment analysis interface.
[0036] The image data of the target river is based on images of the target river taken by drones or acquired directly.
[0037] Step S204: In response to the user's operation command, the target sediment analysis interface is dynamically displayed on the preset webpage.
[0038] In some optional implementations, in response to a user's operation command, the target sediment analysis interface is dynamically displayed on a preset webpage, including: in response to a user's click on a preset control, the target sediment analysis interface is dynamically displayed on a preset webpage.
[0039] The preset control can be the "Display" control.
[0040] In some optional implementations, a web-based visualization application system architecture is constructed, a dynamic timeline backtracking function module is designed, interactive events such as mouse wheel zooming of timeline precision are integrated, a multi-parameter layer switching display function module is designed, and parameters such as suspended sediment concentration, bedload transport, and bed elevation change are configured to achieve seamless switching and visualization of multi-parameter layers.
[0041] The sediment data visualization processing method provided in this embodiment obtains a dynamic, flexible grid-based sediment analysis file of the target river, which can completely preserve the spatiotemporal information of the sediment analysis. The sediment analysis file is parsed to obtain sediment data and geographic data, preserving both the dynamic variation characteristics of the sediment data and binding the spatial attributes of the river. This embodiment converts the sediment data and geographic data into a web-readable file format, solving the compatibility problem between hydrological data and geographic information systems. Based on image data of the target river, this embodiment performs visualization rendering on the target sediment analysis file to obtain a target sediment analysis interface. Responding to user operation commands, the target sediment analysis interface is dynamically displayed on a preset webpage. Combining river image data with sediment data rendering transforms abstract numerical values into an intuitive spatial visualization interface, improving the readability of sediment analysis results, supporting user interaction, and enhancing the flexibility and practicality of sediment data visualization. Compared with related technologies, the embodiments of the present invention directly parse professional sediment data formats such as DFSU on the web page, eliminating the dependence on some commercial software. Based on web page visualization rendering, it can achieve smooth dynamic rendering of more than 30 frames per second, reducing costs and improving the smoothness of sediment data visualization.
[0042] This embodiment provides a method for visualizing sediment data, which can be used with computer equipment. Figure 3 This is a second flowchart of a method for visualizing sediment data according to an embodiment of the present invention, as shown below. Figure 3 As shown, the process includes the following steps: Step S301: Obtain the dynamic flexible grid storage cell-based sediment analysis file of the target river. Parse the sediment analysis file to obtain sediment data and geographic data. The sediment data is the time series data of the sediment analysis; the geographic data is the data characterizing the geometry and attributes of the target river. For details, please refer to [link to relevant documentation]. Figure 2 Step S201 of the illustrated embodiment will not be described again here.
[0043] Step S302: Convert the sediment data and geographic data to obtain a target sediment analysis file in a preset geographic information format. The preset geographic information format is a file format that can be recognized by the web page.
[0044] Specifically, step S302 includes: Step S3021: Traverse the sediment data at each time point in chronological order, write the sediment data into the sediment attribute table of the preset sediment analysis file, and obtain the target sediment attribute table.
[0045] The preset sediment analysis file is a preset SHP (Shapefile) file. Each table in the sediment attribute table represents a spatial grid corresponding to the target river. In this embodiment of the invention, after the sediment data is written into the sediment attribute table of the preset sediment analysis file, the sediment data corresponding to the grid is displayed in response to the user's click on any grid on the visualization interface or the cursor hovering.
[0046] Step S3022: Convert the format of the geographic data to obtain the target geographic attribute table and the target geometry.
[0047] In some optional implementations, step S3022 above includes: Step a1: Convert the geometric shape in the geographic data to obtain the target geometric shape in the geospatial data format.
[0048] Specifically, the geometric shapes in the geographic data are converted into target geometric shapes in GeoPandasDataFrame format using the GeoPandas database. The geometric shapes are the boundary geometry of the region corresponding to the target river.
[0049] Step a2: Write the geographic attribute data from the geographic data into the geographic attribute table of the preset sediment analysis file to obtain the target geographic attribute table.
[0050] The geographic attribute data includes data such as latitude and longitude of geographical location. Each table in the geographic attribute table represents a spatial grid corresponding to the target river. In this embodiment of the invention, after the geographic attribute data is written into the geographic attribute table of the preset sediment analysis file, the geographic attribute data corresponding to the grid is displayed in response to the user's click on any grid on the visualization interface or the cursor hovering.
[0051] In some optional implementations, during the conversion process, the coordinate system parameters of sediment data and geographic data are automatically identified, and they are uniformly converted into the WGS84 geographic coordinate system through a coordinate transformation algorithm to ensure the spatial positioning accuracy in the subsequent visualization stage.
[0052] Step S3023: Based on the target sediment attribute table, the target geographic attribute table, and the target geometry, obtain the initial sediment analysis file.
[0053] The initial sediment analysis file is obtained by combining the target sediment attribute table, the target geographic attribute table, and the target geometry.
[0054] Step S3024: Configure spatial reference information for the initial sediment analysis file to obtain the target sediment analysis file.
[0055] Among them, spatial reference information can be spatial reference coordinates. Spatial reference information is configured for the initial sediment analysis file to ensure accurate positioning.
[0056] In some alternative implementations, the Geopandas library is used to store the data from the target sediment analysis file in batches according to time steps. The data at each time step contains complete attribute fields, which facilitates subsequent querying and analysis.
[0057] Step S303: Based on the image data of the target river, perform visualization rendering according to the target sediment analysis file to obtain the target sediment analysis interface.
[0058] Specifically, step S303 includes: Step S3031: Render the image data of the target river to obtain the initial target sediment analysis interface.
[0059] The target river image data is obtained from images (pictures) of the target river taken by drones or directly acquired. The scene renderer is initialized through WebGLRenderer (renderer component), the Earth's surface is defined using the WGS84 (World Geodetic System 1984) ellipsoid model, the image data is loaded as the base, and the rendering accuracy is dynamically adjusted using LOD (Level of Detail) technology.
[0060] Step S3032: Align the geographic coordinates corresponding to the target sediment analysis file with the scene coordinates of the initial target sediment analysis interface.
[0061] Among them, the geographic coordinates are the location coordinates of the target river in the target sediment analysis file, and the scene coordinates are the virtual coordinates of the initial target sediment analysis interface. These are the internal coordinate systems used when rendering the web page. Based on the transformation matrix, the latitude and longitude of each sediment data point are converted into the corresponding virtual coordinates within the initial target sediment analysis interface using shaders to achieve coordinate alignment.
[0062] Step S3033: Based on the initial target sediment analysis interface after alignment processing, the spatiotemporal changes of sediment data and geographic data in the target sediment analysis file are rendered using a heat map to obtain the target sediment analysis interface.
[0063] Among them, heatmap is a heatmap rendering technology, which is a visualization technology that displays the distribution of data through changes in color depth or hue. For example, the higher the sand content, the redder the area.
[0064] In some optional implementations, heatmap rendering technology is used to transform the sediment data and geographic data and their spatiotemporal changes in the target sediment analysis file into a visual change map with heatmap effects, thus obtaining the target sediment analysis interface.
[0065] Step S304: In response to the user's operation command, the target sediment analysis interface is dynamically displayed on a preset webpage. For details, please refer to [link to relevant documentation]. Figure 2 Step S204 of the illustrated embodiment will not be described again here.
[0066] The sediment data visualization method provided in this embodiment integrates dynamic timeline backtracking and seamless switching of multi-parameter layers. It not only supports frame-by-frame backtracking analysis of long-duration sediment movement processes but also displays the coupling relationship between suspended sediment, bedload, and bed topography changes in real time, thus improving the efficiency of analyzing complex sediment movement patterns. Furthermore, the standardized SHP files output by the system can be directly integrated into professional platforms such as ArcGIS. Combined with multi-dimensional visualization methods such as heat maps and vector fields, it provides a more intuitive scientific basis for water conservancy engineering design. The web architecture design of this invention not only meets the localized processing requirements of classified data but also enables remote real-time collaboration, conforming to the technical requirements of smart water conservancy construction.
[0067] This embodiment provides a method for visualizing sediment data, which can be used with computer equipment. Figure 4 This is a third flowchart of a method for visualizing sediment data according to an embodiment of the present invention, as shown below. Figure 4 As shown, the process includes the following steps: The DFSU format file output by the sediment analysis model is uploaded to the server via the web interface; the DFSU format file is parsed to extract sediment movement-related data, and coordinate system transformation and data standardization are performed using Python scripts to generate SHP geographic information files with spatial reference attributes; a scene is created based on WebGL technology, georegistration is achieved using the WGS84 coordinate system, and dynamic visualization rendering of sediment data is performed using heatmap rendering technology to obtain the target sediment analysis interface; in response to client operation commands, dynamic timeline backtracking and multi-parameter layer switching display are realized.
[0068] Specifically, the system receives DFSU format sediment analysis data files uploaded by users via a web interface. These files contain multi-dimensional parameters such as suspended sediment load, bedload transport, and bed elevation changes. The server-side uses a Python-based parsing program to read the DFSU binary file from the Mikeio database, extracting time-series data and spatial grid information, and processing geometric data using the Shapely database. During parsing, the system automatically identifies the coordinate system parameters of the original data and converts it to the WGS84 geographic coordinate system using a coordinate transformation algorithm, ensuring spatial positioning accuracy in the subsequent visualization stage.
[0069] In some optional implementations, after coordinate transformation is completed, the processed data is stored in batches according to time steps using the Geopandas database as SHP format files with complete spatial reference attributes. The data at each time step contains complete attribute fields, which facilitates subsequent querying and analysis.
[0070] In some optional implementations, the Mapbox GL JS (a JavaScript library for interactive vector maps on the web) engine is used for dynamic rendering of geospatial data during the visualization processing stage. First, the processed standardized SHP file is converted to GeoJSON format, and then efficient map rendering is achieved through vector tiling technology. Specifically, the GeoJSON data is dynamically divided into blocks according to spatial extent and time series, generating vector tiles conforming to the Mapbox specification. These vector tiles are stored in Protocol Buffers binary format. During rendering, the Mapbox GL JS engine requests vector tiles within the current view area in real time and automatically selects the appropriate data level of precision based on the zoom level. This dynamic loading mechanism ensures smooth display of large-scale sediment data on the browser side.
[0071] In some optional implementations, multiple optimization strategies are employed to improve rendering performance: First, GeoJSON is topologically simplified during data preprocessing, reducing the number of nodes by 30%-50% while maintaining key features; second, Web Workers (web page worker threads) are used to achieve parallel decoding of vector tiles, avoiding blocking the main thread; finally, a smart caching mechanism is used to store recently accessed vector tiles, reducing duplicate requests. These optimizations enable the system to smoothly render sediment data with millions of nodes even on ordinary laptops. Furthermore, the system supports multi-layer overlay display, allowing users to freely combine different visualization layers through the control panel. The transparency and rendering order of each layer can be adjusted in real time, providing a multi-dimensional perspective for sediment movement analysis. This embodiment of the invention retains the spatial analysis capabilities of professional geographic information systems while possessing the lightweight and ease-of-use characteristics of web applications, providing efficient visualization support for water conservancy engineering decision-making.
[0072] In some optional implementations, the interactive control module adopts a responsive design architecture, with the front-end managing the user interface state through the Vue.js framework. The timeline control supports millisecond-level time positioning accuracy; users can zoom in and out of time by dragging the slider or using the mouse wheel. The system requests data for the corresponding time step in real time and updates the 3D scene accordingly. The multi-parameter display panel provides checkbox-style layer control, allowing users to freely combine different parameter combinations. The system automatically adjusts the transparency and stacking order of each layer to achieve the best visualization effect. To improve interactive performance under large data volumes, the system uses Web Worker technology to perform data parsing and rendering calculations in a background thread, ensuring smooth response of the user interface. When processing ultra-large-scale data (such as long-term simulation results exceeding 50GB), the system initiates a distributed preprocessing mechanism, dividing the data into time segments and distributing them to multiple computing nodes for parallel processing. After processing, the results are pushed to the client in real time via the WebSocket protocol (a network protocol supporting full-duplex real-time communication between browsers and servers), achieving efficient data transmission and rendering. The entire system is deployed in a Docker container environment, supporting rapid expansion of computing resources and dynamically adjusting processing capacity according to actual needs, ensuring stable operation in projects of different sizes.
[0073] This embodiment also provides a visualization processing device for sediment data, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0074] This embodiment provides a visualization processing device for sediment data, such as... Figure 5 As shown, it includes: The data upload module 501 is used to acquire the dynamic flexible grid storage cell-style sediment analysis file of the target river, parse the sediment analysis file to obtain sediment data and geographic data; the sediment data is the time series data of sediment analysis; the geographic data is the data characterizing the geometry and attributes of the target river.
[0075] The data conversion module 502 is used to convert the sediment data and geographic data into a target sediment analysis file with a preset geographic information format. The preset geographic information format is a file format that can be recognized by the web page.
[0076] The data visualization module 503 is used to visualize and render the target sediment analysis interface based on the image data of the target river and the target sediment analysis file.
[0077] The interactive control module 504 is used to respond to user operation commands and dynamically display the target sediment analysis interface on a preset webpage.
[0078] In some alternative implementations, the data upload module 501 includes: The sediment data acquisition unit is used to read sediment analysis files from a pre-set hydrological database to obtain sediment data.
[0079] The geographic data acquisition unit is used to read sediment analysis files using a pre-set geometric database to obtain geographic data.
[0080] In some alternative implementations, the data conversion module 502 includes: The sediment data writing unit is used to traverse the sediment data at each time point in chronological order and write the sediment data into the sediment attribute table of the preset sediment analysis file to obtain the target sediment attribute table.
[0081] The format conversion unit is used to convert the format of geographic data to obtain the target geographic attribute table and the target geometry.
[0082] The initial file determination unit is used to obtain the initial sediment analysis file based on the target sediment attribute table, the target geographic attribute table, and the target geometry.
[0083] The data configuration unit is used to configure spatial reference information for the initial sediment analysis file to obtain the target sediment analysis file.
[0084] In some optional implementations, the format conversion unit includes: The format conversion subunit is used to convert the geometric shapes in geographic data to obtain the target geometric shape in the geospatial data format.
[0085] The geographic attribute data writing sub-unit is used to write the geographic attribute data in the geographic data into the geographic attribute table of the preset sediment analysis file to obtain the target geographic attribute table.
[0086] In some alternative implementations, the data visualization module 503 includes: The image rendering unit is used to render the image data of the target river to obtain the initial target sediment analysis interface.
[0087] The alignment processing unit is used to align the geographic coordinates corresponding to the target sediment analysis file with the scene coordinates of the initial target sediment analysis interface.
[0088] The spatiotemporal variation rendering unit is used to render the spatiotemporal variations of sediment data and geographic data in the target sediment analysis file based on the initial target sediment analysis interface after alignment processing, using a heat map to obtain the target sediment analysis interface.
[0089] In some alternative implementations, the interactive control module 504 includes: The interactive control unit is used to respond to the user's click on the preset controls and dynamically display the target sediment analysis interface on the preset webpage.
[0090] The sediment data visualization processing apparatus provided in this embodiment of the invention can execute the sediment data visualization processing method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the above modules and units are the same as in the corresponding embodiments described above, and will not be repeated here.
[0091] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.
[0092] The following is a detailed reference. Figure 6 This diagram illustrates a suitable structural design for implementing an electronic device according to embodiments of the present invention. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 601, which can perform various appropriate actions and processes based on a program stored in read-only memory (ROM) 602 or a program loaded from memory 608 into random access memory (RAM) 603. RAM 603 also stores various programs and data required for the operation of the electronic device. The processor 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0093] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.
[0094] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a memory 608, or installed from a ROM 602. When the computer program is executed by the processor 601, it performs the functions defined in the sediment data visualization processing method of the embodiments of the present invention.
[0095] Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
[0096] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the method for visualizing sediment data shown in the above embodiments is implemented.
[0097] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0098] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A method for visualizing sediment data, characterized in that, The method includes: A dynamic, flexible grid-based sediment analysis file of the target river is obtained, and the sediment analysis file is parsed to obtain sediment data and geographic data; the sediment data is time-series data of sediment analysis; the geographic data is data characterizing the geometry and attributes of the target river. The sediment data and the geographic data are converted to obtain a target sediment analysis file in a preset geographic information format, which is a file format that can be recognized by a web page. Based on the image data of the target river, a visualization rendering is performed according to the target sediment analysis file to obtain the target sediment analysis interface; In response to the user's operation command, the target sediment analysis interface is dynamically displayed on a preset webpage.
2. The method according to claim 1, characterized in that, The process of parsing the sediment analysis file yields sediment data and geographical data, including: The sediment analysis file is read using a pre-set hydrological database to obtain the sediment data; The geographic data is obtained by reading the sediment analysis file using a pre-set geometric database.
3. The method according to claim 1 or 2, characterized in that, The step of converting the sediment data and the geographic data into a target sediment analysis file in a preset geographic information format, wherein the preset geographic information format is a file format recognizable by a web browser, includes: The sediment data at each moment is traversed in chronological order, and the sediment data is written into the sediment attribute table of a preset sediment analysis file to obtain the target sediment attribute table. The geographic data is converted to obtain the target geographic attribute table and the target geometry. Based on the target sediment attribute table, the target geographic attribute table, and the target geometry, an initial sediment analysis file is obtained; Spatial reference information is configured for the initial sediment analysis file to obtain the target sediment analysis file.
4. The method according to claim 3, characterized in that, The process of converting the geographic data to obtain the target geographic attribute table and the target geometry includes: The geometric shapes in the geographic data are converted to a new format to obtain the target geometric shape in a geospatial data format. The geographic attribute data in the geographic data is written into the geographic attribute table of the preset sediment analysis file to obtain the target geographic attribute table.
5. The method according to claim 1 or 2, characterized in that, The image data based on the target river is used to perform visualization rendering based on the target sediment analysis file to obtain the target sediment analysis interface, including: The image data of the target river is rendered to obtain the initial target sediment analysis interface; Align the geographic coordinates corresponding to the target sediment analysis file with the scene coordinates of the initial target sediment analysis interface; Based on the initial target sediment analysis interface after alignment processing, the spatiotemporal changes of the sediment data and the geographic data in the target sediment analysis file are rendered using a heatmap to obtain the target sediment analysis interface.
6. The method according to claim 1 or 2, characterized in that, The dynamic display of the target sediment analysis interface on a preset webpage in response to user operation commands includes: In response to the user's click on the preset control, the target sediment analysis interface is dynamically displayed on the preset webpage.
7. A visualization processing device for sediment data, characterized in that, The device includes: The data upload module is used to acquire a dynamic flexible grid storage cell-style sediment analysis file of the target river, parse the sediment analysis file to obtain sediment data and geographic data; the sediment data is time series data of sediment analysis; the geographic data is data characterizing the geometry and attributes of the target river. The data conversion module is used to convert the sediment data and the geographic data into a target sediment analysis file with a preset geographic information format, wherein the preset geographic information format is a file format that can be recognized by a web page. The data visualization module is used to perform visualization rendering based on the image data of the target river and the target sediment analysis file to obtain the target sediment analysis interface; The interactive control module is used to respond to user operation commands and dynamically display the target sediment analysis interface on a preset webpage.
8. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the computer instructions to perform the visualization processing method for sediment data as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to execute the visualization processing method for sediment data according to any one of claims 1 to 6.
10. A computer program product, characterized in that, It includes computer instructions for causing a computer to perform the visualization processing method for sediment data as described in any one of claims 1 to 6.