Digital twinborn irrigation area visualization method and browser based on network graphical processing
By creating a watershed visualization unit in the irrigation area, an irrigation area coordinate construction unit, a hydrological change simulation unit and a three-dimensional irrigation area generation unit, the hydrological change data of the irrigation area is mapped into simulation information in the coordinate system of the geographic information system and parallel rendering is performed, the existing solution is solved The problem of insufficient data processing performance in the irrigation area in the technology has achieved efficient improvement in the three-dimensional display and management efficiency of the irrigation area.
Patent Information
- Application Number
- CN202411679144.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2044-11-22
AI Technical Summary
The existing irrigation area water resource information processing and visualization system based on MapObjects technology is insufficient in processing large-scale or complex geographical information data, and cannot meet the timeliness and display requirements of visual scenes in complex irrigation areas.
通过创建灌区流域可视化单元、灌区坐标构建单元、水文变化仿真单元和三维灌区生成单元,将灌区的水文变化数据映射为地理信息系统坐标系中的仿真信息,并进行并行渲染处理,结合地理信息地图 , realize the three-dimensional effect display of the irrigation area.
It realizes efficient processing of large-scale or complex irrigation area data, provides more refined visual effects, can more accurately describe the irrigation status of irrigation areas and the water resource optimization scheduling process, and improves the efficiency and effectiveness of irrigation area management.
Smart Images

Figure CN119206135A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a digital twin irrigation district visualization method and a browser based on network graphical processing, belonging to the technical field of irrigation district visualization. Background Art
[0002] Chinese Literature: Duan Fuyi. Research on GIS-based Irrigation District Water Resources Information Processing and Visualization System [D]. Zhengzhou: North China Institute of Water Resources and Hydropower, 200706. Based on a summary of the development of geographic information systems and current research hotspots, this paper elaborates on the principles, characteristics, and evolution of component technology, as well as the structural characteristics and secondary development of component-based GIS. It also analyzes the shortcomings of traditional GIS development of irrigation district water resources information management systems and the advantages of component-based GIS development. Through system requirements analysis, system function analysis and design, the system is integrated using the programming language Visual Basic 6.0 on the platform of MapObjects, a mapping and GIS functional component.
[0003] The above scheme conducted an exploratory study on the development of irrigation district water resources information system based on component GIS. Using the mapping and GIS functional component MapObjects as GIS development technology, maps can be created and edited on the Windows platform.
[0004] However, the mapping and GIS functional component MapObjects has insufficient performance when processing large-scale or complex geographic information data, resulting in the above-mentioned visualization system basically displaying data in two dimensions when loading maps and displaying irrigation areas. Therefore, the above-mentioned solution using MapObjects technology to process and visualize irrigation area water resources information cannot effectively meet the processing time requirements of geographic information data and the requirements for irrigation area visualization in complex irrigation area visualization scenarios.
[0005] The information disclosed in this Background Art is only for understanding the background of the present inventive concept and therefore it may include information that does not constitute prior art. Summary of the Invention
[0006] In response to the above problem or one of the above problems, one purpose of the present invention is to provide a digital twin irrigation district visualization method and browser based on network graphical processing. By creating an irrigation district watershed visualization unit, an irrigation district coordinate construction unit, a hydrological change simulation unit, and a three-dimensional irrigation district generation unit, the hydrological change data of the irrigation district is mapped into simulation information in the geographic information system coordinate system, and then the simulation information is coupled with the geographic information map, and parallel rendering processing is performed at the same time. Therefore, large-scale or complex irrigation district data can be efficiently processed, so that a twin three-dimensional model of the irrigation district that can be displayed on the web page can be quickly obtained, thereby realizing a three-dimensional effect display of the irrigation district.
[0007] In response to the above problem or one of the above problems, the second purpose of the present invention is to provide a digital twin irrigation district visualization method and browser based on network graphical processing, mapping the hydrological change data of the irrigation district into simulation information in the geographic information system coordinate system, and then coupling the simulation information with the geographic information map, and performing parallel rendering processing at the same time, so that large-scale or complex irrigation district data can be processed efficiently, so that a twin three-dimensional model of the irrigation district that can be displayed on the web page can be quickly obtained, and a three-dimensional effect display of the irrigation district can be realized, so that a more refined visual effect can be provided, and the irrigation status of the irrigation district can be described more accurately, the basin landform and hydrological conditions can be clearly and completely displayed, and the water resource optimization scheduling process can be accurately displayed.
[0008] In response to the above problem or one of the above problems, the third purpose of the present invention is to provide a browser. By setting a three-dimensional irrigation area generation unit and a storage medium, the hydrological change data can be combined with the geographic information map, so that the watershed landform and hydrological changes can be clearly displayed on the browser canvas, thereby providing users with an accurate and intuitive visual experience, thereby facilitating users to observe the irrigation status of the irrigation area and understand the water resources optimization scheduling process. The user experience is good, which facilitates the promotion and use of irrigation area visualization solutions.
[0009] To achieve one of the above purposes, the first technical solution of the present invention is: The digital twin irrigation district visualization method based on network graphical processing includes the following contents: Through the irrigation basin visualization unit created in advance, the irrigation basin data is processed to establish a geographic information map; Using the previously created irrigation district coordinate construction units, a geographic information system coordinate system is established based on the geographic information map; According to the hydrological change simulation unit created in advance, based on the geographic information system coordinate system, the hydrological change data of the irrigation area is mapped into simulation information in the geographic information system coordinate system; Using the three-dimensional irrigation district generation unit created in advance, based on the network image processing algorithm, the simulation information is coupled with the geographic information map, and parallel rendering is performed to obtain a twin three-dimensional model of the irrigation district that can be displayed on the web page.
[0010] The present invention maps the hydrological change data of the irrigation area into simulation information in the geographic information system coordinate system by creating an irrigation area watershed visualization unit, an irrigation area coordinate construction unit, a hydrological change simulation unit, and a three-dimensional irrigation area generation unit, and then couples the simulation information with the geographic information map, and performs parallel rendering processing at the same time. Therefore, large-scale or complex irrigation area data can be efficiently processed, so that a twin three-dimensional model of the irrigation area that can be displayed on the web page can be quickly obtained, and a three-dimensional effect display of the irrigation area can be realized, thereby effectively meeting the processing time requirements of geographic information data and the requirements for irrigation area visualization in complex irrigation area visualization scenes.
[0011] Furthermore, the three-dimensional irrigation area generation unit of the present invention is created based on a network image processing algorithm, thereby being able to utilize the parallel computing capabilities of the system graphics card and graphics processor, thereby providing more efficient graphics rendering and computing processing capabilities, thereby achieving a smoother user experience.
[0012] Furthermore, the present invention organically combines the irrigation area watershed visualization unit, the irrigation area coordinate construction unit, the hydrological change simulation unit, and the three-dimensional irrigation area generation unit to form a digital twin engine based on the network image processing algorithm, so that it can process larger-scale geographic information system data, meet the timeliness requirements for processing geographic information data, and provide more refined visual effects to meet the requirements for visualization of irrigation areas; and thus can more accurately describe the irrigation status of the irrigation area, clearly and completely display the watershed landform and hydrological conditions, and can accurately display the water resources optimization scheduling process, which is of great significance for improving the efficiency and effectiveness of irrigation area management.
[0013] As preferred technical measures: The method for processing irrigation basin data and establishing geographic information maps by using the irrigation basin visualization unit created in advance is as follows: Based on the 3D geographic coordinate system, set the position information of the perspective camera; According to the location information, the irrigation basin in the three-dimensional space is mapped to a two-dimensional plane using a perspective camera to obtain an irrigation basin image; The irrigation area watershed image is processed by a tile map processing unit to obtain a number of map tile information; According to the position information of the perspective camera, several map tile information are coupled to obtain a map information table; Based on the map information table, a geographic information map of the irrigation area basin is established.
[0014] As preferred technical measures: The method for processing the irrigation area watershed image by the tile map processing unit to obtain a plurality of map tile information is as follows: According to the resolution of the irrigation basin image, the circumference of the earth, the vertical height of the perspective camera, and the camera field of view, a map loading level calculation formula is constructed to calculate the number of loading levels of the irrigation basin image; According to the horizontal and vertical coordinates of the perspective camera, calculate the horizontal and vertical coordinates of the center tile where the perspective camera is located; According to the horizontal and vertical coordinate values of the central tile, the map tile information of all loaded levels is calculated, and the map tile information at least includes the length, width and tile coordinates of the tile.
[0015] As preferred technical measures: According to the position of the perspective camera, several map tile information are coupled to obtain the map information table as follows: Step 1: Get the map tile information and calculate the distance from the center point of each tile to the perspective camera position based on the map tile information; Step 2: Substitute the center distance into the map loading level calculation formula to calculate the number of simulation loading levels; Step 3: Compare the number of simulated loading levels with the number of loading levels to determine whether they are the same; If the two are the same, the corresponding map tile information is added to the preset information table; If the two are different, the number of simulation loading levels is reduced by one order of magnitude to obtain a new number of loading levels; Step 4: Determine whether the new loading level number is less than 1. If the new loading level number is less than 1, execute step 6. When the new loading level number is greater than or equal to 1, execute step 5; Step 5: Calculate all map tile information at the new loading level and execute step 1; Step 6: End the loop calculation and use the information table at this time as the final map information table.
[0016] As preferred technical measures: The method of establishing a geographic information system coordinate system based on the geographic information map using the previously created irrigation area coordinate construction unit is as follows: Based on the geocentric coordinate system WGS84, a Mercator projection coordinate reference system is established; Set the center point of the Mercator projection coordinate reference system, and set the X-axis value range and Y-axis value range; The units and directions of the X-axis and Y-axis of the Mercator projection coordinate reference system are the same as those of the three-dimensional geographic basic coordinate system, thus forming the geographic information system coordinate system.
[0017] As preferred technical measures: Based on the previously created hydrological change simulation unit and the GIS coordinate system, the method for mapping the hydrological change data of the irrigation area into simulation information in the GIS coordinate system is as follows: First, the hydrological change data of the irrigation area is obtained based on the three-dimensional geographic basic coordinate system; Hydrological change data include several line unit data and extreme value data; A line unit data includes at least two vertices, each vertex includes position information and physical quantity results; the extreme value data includes the maximum and minimum values of each physical quantity; Secondly, according to the conversion relationship between the geographic information system coordinate system and the three-dimensional geographic basic coordinate system, the coordinate conversion information between the geographic information system coordinate system and the three-dimensional geographic basic coordinate system is obtained; Based on the coordinate conversion information, the hydrological change data of the irrigation area is mapped into simulation information of the geographic information system coordinate system; Then, the simulation information is rendered into corresponding color information; The color information is then combined with the geographic information map to obtain the irrigation area basin display information.
[0018] As preferred technical measures: The method for rendering simulation information into corresponding color information is as follows: Acquiring simulation information, which includes a plurality of line unit conversion data and maximum value conversion data; A line unit conversion data includes at least two conversion vertices, each conversion vertex includes position conversion information and physical quantity conversion results; the maximum value data includes the maximum conversion value and the minimum conversion value of each physical quantity; Create a rendering color information table, which includes at least 4 columns and n rows of data, where the 4 columns represent red, green, blue, and opacity respectively; the n rows of data are arranged in ascending order by index, which respectively display the colors of physical quantities from small to large; According to the rendering color information table, a color data matrix of several conversion vertices is established; The color data matrices of several transformed vertices are coupled to obtain color information.
[0019] As preferred technical measures: The method for obtaining a twin 3D irrigation district model that can be displayed on a web page is as follows: using the previously created 3D irrigation district generation unit, coupling simulation information with geographic information maps based on a network image processing algorithm, and performing parallel rendering processing. According to the network image processing algorithm, a three-dimensional irrigation area generation unit is established, which includes at least a texture generator, a vertex shader, a fragment shader, a sampler and a rendering pipeline; The 3D irrigation district generation unit is a browser interface that allows the browser to call the system graphics card to perform batch data calculations and complex graphics rendering, and to present the twin 3D model of the irrigation district within the web page. Initializing the three-dimensional irrigation area generation unit according to the characteristics of a certain browser, so that the three-dimensional irrigation area generation unit can be compatible with the certain browser; Acquire irrigation area watershed display information, which at least includes location information, color information, and physical quantity attributes; Using the texture generator, a geographic texture is generated according to the location information, and a color texture is generated according to the color information; Use the vertex shader to convert geographic textures, color textures, and physical quantity attributes into canvas coordinate data that can be used by the canvas; The canvas coordinate data is rasterized to discretize the irrigation area watershed display information into several slices; The fragment includes at least texture information and vertex attributes; Use the fragment shader to read the texture information and vertex attributes in the fragment, and normalize the texture information and vertex attributes to obtain the normalized value; Use the sampler to sample the normalized irrigation area value to obtain a color sample; By using the rendering pipeline to control the vertex shader, fragment shader and sampler, the irrigation area watershed display information is rendered in parallel to obtain a number of fragments and corresponding color samples, and then the fragments and color samples are output to the canvas of the web page to form a twin 3D model of the irrigation area.
[0020] To achieve one of the above purposes, the second technical solution of the present invention is: The digital twin irrigation district visualization method based on network graphical processing includes the following contents: Process irrigation basin data and create geographic information maps; Establish a three-dimensional geographic basic coordinate system based on the hydrological change data of the irrigation area; Based on the geographic information map, establish a geographic information system coordinate system and obtain coordinate conversion information between the geographic information system coordinate system and the three-dimensional geographic basic coordinate system; Based on the coordinate conversion information, the hydrological change data of the irrigation area is mapped into simulation information of the geographic information system coordinate system, and the simulation information is coupled with the geographic information map to obtain the irrigation area watershed display information; Based on the network image processing algorithm, the irrigation area basin display information is rendered in parallel to obtain a twin three-dimensional model of the irrigation area that can be displayed on the web page.
[0021] The present invention maps the hydrological change data of the irrigation area into simulation information in the geographic information system coordinate system, and couples the simulation information with the geographic information map to obtain the irrigation area basin display information, and then can perform parallel rendering processing on the irrigation area basin display information, so that large-scale or complex irrigation area data can be efficiently processed, so that a twin three-dimensional model of the irrigation area that can be displayed on the web page can be quickly obtained, and a three-dimensional effect display of the irrigation area can be realized, so that a more refined visual effect can be provided, and the irrigation status of the irrigation area can be described more accurately, and the basin landform and hydrological conditions can be clearly and completely displayed, and the water resources optimization scheduling process can be accurately displayed, which is of great significance to improving the efficiency and effectiveness of irrigation area management.
[0022] To achieve one of the above purposes, the third technical solution of the present invention is: A browser includes a three-dimensional irrigation area generation unit and a storage medium; A 3D irrigation district generation unit, used to implement parallel computation of batch data and the rendering of twin 3D models of irrigation districts; A computer program is provided on the storage medium, and when the computer program is executed, the above-mentioned digital twin irrigation district visualization method based on network graphical processing is implemented.
[0023] The browser of the present invention can combine hydrological change data with geographic information maps by setting a three-dimensional irrigation area generation unit and a storage medium, so that the watershed landform and hydrological changes can be clearly displayed on the browser canvas, thereby providing users with an accurate and intuitive visual experience, making it convenient for users to observe the irrigation status of the irrigation area and understand the water resources optimization and scheduling process. The user experience is good and it is convenient for the promotion and use of irrigation area visualization solutions.
[0024] Compared with the existing technical solutions, the present invention has the following beneficial effects: The present invention maps the hydrological change data of the irrigation area into simulation information in the geographic information system coordinate system by creating an irrigation area watershed visualization unit, an irrigation area coordinate construction unit, a hydrological change simulation unit, and a three-dimensional irrigation area generation unit, and then couples the simulation information with the geographic information map, and performs parallel rendering processing at the same time. Therefore, large-scale or complex irrigation area data can be efficiently processed, so that a twin three-dimensional model of the irrigation area that can be displayed on a web page can be quickly obtained, thereby realizing a three-dimensional effect display of the irrigation area.
[0025] Furthermore, the present invention maps the hydrological change data of the irrigation area into simulation information in the geographic information system coordinate system, and then couples the simulation information with the geographic information map, and performs parallel rendering processing at the same time, so that large-scale or complex irrigation area data can be efficiently processed, so that a twin three-dimensional model of the irrigation area that can be displayed on the web page can be quickly obtained, and a three-dimensional effect display of the irrigation area can be achieved, thereby providing a more refined visual effect, and then a more accurate description of the irrigation status of the irrigation area, a clear and complete display of the basin landform and hydrological conditions, and an accurate display of the water resources optimization scheduling process, which is of great significance for improving the efficiency and effectiveness of irrigation area management.
[0026] Furthermore, the browser of the present invention can combine hydrological change data with geographic information maps by setting a three-dimensional irrigation area generation unit and a storage medium, so that the watershed landform and hydrological changes can be clearly displayed on the browser canvas, thereby providing users with an accurate and intuitive visual experience, making it convenient for users to observe the irrigation status of the irrigation area and understand the water resources optimization and scheduling process. The user experience is good and it is convenient for the promotion and use of irrigation area visualization solutions.
[0027] Furthermore, the three-dimensional irrigation area generation unit of the present invention is created based on a network image processing algorithm, thereby being able to utilize the parallel computing capabilities of the system graphics card and graphics processor, thereby providing more efficient graphics rendering and computing processing capabilities, thereby achieving a smoother user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 A schematic diagram of a process of the digital twin irrigation district visualization method of the present invention; Figure 2 A schematic diagram of a process flow for rendering the present invention. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0030] Rather, the present invention encompasses any alternatives, modifications, equivalents, and solutions that fall within the spirit and scope of the present invention as defined by the claims. Furthermore, to facilitate a better understanding of the present invention, certain specific details are described in detail below in the detailed description of the present invention. Those skilled in the art will be able to fully understand the present invention without these details.
[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention pertains. The terms used herein are for the purpose of describing specific embodiments only and are not intended to limit the present invention.
[0032] like Figure 1 As shown, the first specific embodiment of the digital twin irrigation district visualization method of the present invention is: The digital twin irrigation district visualization method based on network graphical processing includes the following contents: Through the irrigation basin visualization unit created in advance, the irrigation basin data is processed to establish a geographic information map; Using the previously created irrigation district coordinate construction units, a geographic information system coordinate system is established based on the geographic information map; According to the hydrological change simulation unit created in advance, based on the geographic information system coordinate system, the hydrological change data of the irrigation area is mapped into simulation information in the geographic information system coordinate system; Using the three-dimensional irrigation district generation unit created in advance, based on the network image processing algorithm, the simulation information is coupled with the geographic information map, and parallel rendering is performed to obtain a twin three-dimensional model of the irrigation district that can be displayed on the web page.
[0033] The second specific embodiment of the digital twin irrigation district visualization method of the present invention: Digital twin irrigation district visualization method based on network graphics processing, Includes the following: Process irrigation basin data and create geographic information maps; Establish a three-dimensional geographic basic coordinate system based on the hydrological change data of the irrigation area; Based on the geographic information map, establish the geographic information system coordinate system and obtain the coordinate conversion information between the geographic information system coordinate system and the three-dimensional geographic basic coordinate system; Based on the coordinate conversion information, the hydrological change data of the irrigation area is mapped into simulation information of the geographic information system coordinate system, and the simulation information is coupled with the geographic information map to obtain the irrigation area watershed display information; Based on the network image processing algorithm, the irrigation area basin display information is rendered in parallel to obtain a twin three-dimensional model of the irrigation area that can be displayed on the web page.
[0034] A specific embodiment of the browser of the present invention: A browser includes a three-dimensional irrigation area generation unit and a storage medium; A 3D irrigation district generation unit, used to implement parallel computation of batch data and the rendering of twin 3D models of irrigation districts; A computer program is provided on the storage medium, and when the computer program is executed, the above-mentioned digital twin irrigation district visualization method based on network graphical processing is implemented.
[0035] The third specific embodiment of the digital twin irrigation district visualization method based on network graphical processing of the present invention: The digital twin irrigation district visualization method based on network graphical processing includes the following contents: Firstly, the three-dimensional geographic basic coordinate system and the geographic information system coordinate system are established by using the irrigation area coordinate construction unit, and the conversion method between the three-dimensional basic coordinates and the geographic information system coordinates is obtained.
[0036] Afterwards, the corresponding position of the irrigation basin in the geographic information system coordinate system is calculated through the irrigation basin visualization unit according to the position of the viewing angle in the three-dimensional space and the direction shown, thereby establishing a geographic information map.
[0037] Then, based on the hydrological change simulation unit, the hydrological change data is preprocessed. This step requires combining the three-dimensional geographic basic coordinate system to convert the input hydrological change data into vertex data of the geographic information system coordinate system, and at the same time convert the simulated physical quantities into color data.
[0038] Finally, a rendering pipeline is established using the 3D irrigation district generation unit. This step requests the loading of geographic information maps and combines vertex data and color data for parallel rendering, allowing the irrigation districts to be displayed on the web page.
[0039] In this embodiment, the method for establishing the three-dimensional geographic basic coordinate system and the geographic information system coordinate system is as follows: The three-dimensional geographic basic coordinate system is constructed using a stereo rectangular coordinate system. The stereo rectangular coordinate system uses three parameters to represent the position of each point. The unit of the three-dimensional geographic basic coordinate system is meter.
[0040] For the geographic information system coordinate system, this embodiment uses the EPSG:3857 coordinate system. This is a Mercator projection coordinate reference system based on the WGS84 coordinate system, widely used in online mapping services, and spans from 85.06 degrees north latitude to 85.06 degrees south latitude. The EPSG:3857 coordinate system is centered at the equator and the prime meridian, with the coordinate point (0, 0) at that point. The X-axis coordinates range from -20037508.34 to 20037508.34, and the Y-axis coordinates range from -20048966.1 to 20048966.1. The coordinates are in meters, the same as the 3D basic geographic coordinate system. The X and Y axes of the EPSG:3857 coordinate system also have the same orientation as the 3D basic geographic coordinate system, but lack the Z axis, which represents altitude.
[0041] In this embodiment, the method for establishing a geographic information map is as follows: First, a camera is set up. The function of the camera is to map objects in a three-dimensional space to a final two-dimensional plane. This embodiment uses a perspective camera to simulate the perspective of the human eye to achieve a realistic visual effect.
[0042] Then, based on the camera position, the parameters required by the tile map processing unit are calculated. The tile map processing unit is a protocol that can split the map into image pyramids of multiple zoom levels to obtain a number of tiled tiles.
[0043] Then, the tile map data is requested from the tile map server through the network. The network request parameters include , get the corresponding map image and complete the loading of geographic images. Indicates that the map level is usually between 1 and 23. The larger the level, the more map image details it contains. Indicates the location of the tile map, which can be accessed through the map's The coordinate information is calculated.
[0044] After that, the information table of the map to be displayed is established through the camera position. This information table consists of multiple tile information, and each tile information contains the loading request parameters required by the tile map processing unit. , the location of the center point of the tile , the length of the tile is , with a width of , texture coordinate displacement .
[0045] Finally, a geographic information map is created based on the information table.
[0046] In this embodiment, the method for establishing the information table is as follows: Step 1: First, according to the vertical height of the camera , calculate the level of the current map loading The value of It will only be between 1 and 23. If it is less than 1, it will be 1, and if it is greater than 23, it will be 23. The evaluation formula is as follows:
[0047] in, Indicates the resolution, the value is 1080, It represents half of the Earth's circumference and has a value of 20048966.1. Indicates the distance from the map tile to the camera, which can be the distance from the center of the tile to the camera position, or the vertical height of the camera , The camera's field of view is expressed in radians, and its value is 0.96 radians. This formula is an empirical formula. All take fixed values.
[0048] Step 2: According to the camera's position coordinates , and levels Substitute the formula to calculate the coordinate value of the center tile where the camera is located , and its calculation formula is as follows:
[0049]
[0050] Step 3: Calculate all the Tiles of this level, the range of the X axis of this area , the value range of the Y axis is , and calculate the distance from each tile center point to the camera position.
[0051] Step 4: Substitute the distance back into the formula to calculate the new level , determine the new level With the current Are they the same? If they are the same, then determine whether the tile information has been loaded. If it has been loaded, skip it, otherwise add the tile information to the information table. If they are not the same, calculate The value is calculated as follows:
[0052] if If it is less than 1, no action will be taken. If it is greater than or equal to 1, Set to , and then according to the new Worth the corresponding Blocks, and calculate the corresponding distance, recalculate the new level and with the current Compare the values.
[0053] Step 5: Get the tile map processing unit required After that, the corresponding geographical map is loaded through the network and stored in the information table to calculate the length of the tile at this level. , Width , and stored in the information table, the length of the plane ,width The calculation formula is as follows:
[0054]
[0055] Step 6: Finally, traverse all information tables, remove and destroy tiles in the non-visible area.
[0056] In this embodiment, the method for converting hydrological change data into geographic information system coordinate system data is as follows: After obtaining hydrological variation data for a specific irrigation area, it is necessary to map this data into three-dimensional space and render the resulting physical quantity data into corresponding color values. Hydrological variation data consists of line unit data and maximum value data. A line unit consists of two vertices, each of which contains position data and physical quantity result data. Maximum value data contains the maximum and minimum values of each physical quantity.
[0057] The location data is the coordinates in the geographic projection coordinate system. Axis coordinate values express, Axis coordinate values This embodiment requires converting the data of the geographic projection coordinate system into the European Petroleum Survey Group EPSG:3857 coordinate system data used by the geographic information system coordinate system.
[0058] Here we take the original location data as the European Petroleum Survey Organization EPSG:4326 projection coordinate system as an example, and transform the European Petroleum Survey Organization EPSG:4326 data into a three-dimensional geographic basic coordinate system. The value is the same as the European Petroleum Survey Organization EPSG:3857 coordinate system data, so the conversion relationship is EPSG:4326 to EPSG:3857. The specific conversion formula is as follows:
[0059]
[0060] in, It means the radius of the earth is 6378137; Indicates the European Petroleum Survey Organization EPSG:4326 coordinate system Axis longitude; Indicates the European Petroleum Survey Organization EPSG:4326 coordinate system Axis dimension.
[0061] At the same time, you need to create a color information table. The color information table contains at least 4 columns and n rows of data. The 4 columns are red, green, blue, and opacity. The indexes of these n rows of data are arranged in ascending order, and the colors of the physical quantities are displayed in ascending order. For example, if the colors to be displayed are a gradient of red, orange, and yellow, the data for each row is as follows: The first row represents red, and the data in each column is 255, 0, 0, 255; The second row represents orange, and the data in each column is 255, 127, 0, 255; The third row represents yellow, and the data in each column is 255, 255, 0, 255.
[0062] In this embodiment, Figure 2 As shown in the figure, the method for rendering using the 3D irrigation area generation unit is as follows: Step 1: Based on the network image processing algorithm, a 3D irrigation area generation unit is constructed and initialized. This step ensures that the current browser can support and use the 3D irrigation area generation unit and simultaneously calls upon graphics processor resources. The network graphics processor in this embodiment is a WebGPU.
[0063] Step 2: Create textures and samplers. This step converts the image in the information table into a texture, converts the color table into a color texture, and creates a sampler. This step allows the 3D irrigation area generation unit to display the corresponding color information.
[0064] Step 3: Define the shader, which includes the vertex shader and the fragment shader.
[0065] The vertex shader will read the bound position information and physical quantity attributes and convert them into the canvas coordinate system that the canvas can use.
[0066] The position information and physical quantity attributes are then rasterized, which is the process of discretizing vertex attributes into fragments. At the same time, the 3D area generation unit will check whether a pixel on the screen is covered by a triangle mesh. The covered area will generate a fragment, and then enter the fragment processing stage. The fragment shader reads the texture information and vertex attributes, and the vertex attributes are transformed by the vertex shader. The fragment shader then normalizes the physical quantity, and its calculation formula is as follows:
[0067] in, Represents the value of a physical quantity, Indicates the minimum value of a physical quantity, Indicates the maximum value of a physical quantity. In this scenario, the physical quantities of the simulation results include the current river water level, water velocity, water flow, water flow direction, and pollutant concentration.
[0068] After normalization, the sampler and the normalized physical quantity will be used to obtain the color in the color texture; for the fragment shader of the map tile, the texture coordinates will be used to sample the image texture and then obtain the corresponding color.
[0069] Step 4: Create a rendering pipeline. The rendering pipeline defines the various stages of graphics rendering, including the input of attribute information, and can control the vertex shader and fragment shader, so that the fragments are output to the canvas.
[0070] Step 5: Bind attribute information. This step will bind the previously created shader, texture information, sampler, vertex attributes, and maximum and minimum values of physical quantities to the rendering pipeline.
[0071] Step 6. Finally, run the rendering pipeline to render and output to the canvas.
[0072] By combining the hydrological change data with the geographic information map on the canvas, you can now see a three-dimensional digital twin irrigation area that includes hydrological changes on the canvas.
[0073] An embodiment of a device applying the method of the present invention: An electronic device comprising: one or more processors; a storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned digital twin irrigation district visualization method based on network graphical processing.
[0074] A computer medium embodiment of the method of the present invention: A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned digital twin irrigation district visualization method based on network graphical processing.
[0075] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0076] The present application is described in terms of flowcharts or / and block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process or / and block in the flowchart or / and block diagram, as well as the combination of processes or / and blocks in the flowchart or / and block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0077] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0078] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0079] The unit in this application is an object that objectively describes the morphological structure with the help of physical or virtual representation. The object is not equal to the physical body and is not limited to physical and virtual. It can be a data processing function, software program, processing mode, usage method, operation method, workflow, application process, electronic hardware, circuit module, processing system, system imitation or simulation object.
[0080] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the field can still modify or replace the specific implementation methods of the present invention. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be included in the scope of protection of the claims of the present invention.
Claims
1. A digital twin irrigation district visualization method based on network graphical processing, characterized by: Includes the following: Through the irrigation basin visualization unit created in advance, the irrigation basin data is processed to establish a geographic information map; Using the previously created irrigation area coordinate construction unit, a geographic information system coordinate system is established based on the geographic information map; According to the hydrological change simulation unit created in advance, based on the geographic information system coordinate system, the hydrological change data of the irrigation area is mapped into simulation information in the geographic information system coordinate system; Using the three-dimensional irrigation district generation unit created in advance, the simulation information is coupled with the geographic information map based on the network imaging processing algorithm, and parallel rendering is performed to obtain a twin three-dimensional model of the irrigation district that can be displayed on the web page.
2. The digital twin irrigation district visualization method based on network graphical processing according to claim 1, characterized in that: The method of processing the irrigation basin data and establishing the geographic information map through the irrigation basin visualization unit created in advance is as follows: Based on the three-dimensional geographic basic coordinate system, set the position information of the perspective camera; According to the location information, the irrigation basin in the three-dimensional space is mapped to a two-dimensional plane using a perspective camera to obtain an irrigation basin image; Processing the irrigation area watershed image through the tile map processing unit to obtain a number of map tile information; According to the position information of the perspective camera, several map tile information are coupled to obtain a map information table; Based on the map information table, establish a geographic information map of the irrigation basin.
3. The digital twin irrigation district visualization method based on network graphical processing according to claim 2, characterized in that: The method of processing the irrigation area basin image through the tile map processing unit to obtain a number of map tile information is as follows: According to the resolution of the irrigation area watershed image, the circumference of the earth, the vertical height of the perspective camera, and the camera field of view, a map loading level calculation formula is constructed to calculate the number of loading levels of the irrigation area watershed image; According to the horizontal and vertical coordinate positions of the perspective camera, calculate the horizontal and vertical coordinate values of the center tile where the perspective camera is located; According to the horizontal and vertical coordinate values of the central tile, the map tile information of all the loaded layers is calculated, and the map tile information at least includes the length, width and tile coordinates of the tile.
4. The digital twin irrigation district visualization method based on network graphical processing according to claim 3, characterized in that: According to the position of the perspective camera, several map tile information are coupled to obtain the map information table as follows: Step 1, obtain map tile information, and calculate the center distance from the center point of each tile to the perspective camera position based on the map tile information; Step 2, re-substituting the center distance into the map loading level calculation formula to calculate the number of simulation loading levels; Step 3, compare the number of simulated loading levels with the number of loading levels to determine whether the two are the same; If the two are the same, the corresponding map tile information is added to the preset information table; If the two are not the same, the number of simulation loading levels is reduced by one order of magnitude to obtain a new number of loading levels; Step 4, determine whether the new loading level is less than 1, and if the new loading level is less than 1, execute step 6; When the new loading level is greater than or equal to 1, execute step 5; Step 5, calculate all map tile information at the new loading level, and execute step 1; Step 6, end the loop calculation, and use the information table at this time as the final map information table.
5. The digital twin irrigation district visualization method based on network graphical processing according to claim 1, characterized in that: Using the previously created irrigation area coordinate construction unit, the method of establishing the geographic information system coordinate system based on the geographic information map is as follows: Based on the geocentric coordinate system WGS84, establish the Mercator projection coordinate reference system; Set the center point of the Mercator projection coordinate reference system, and set the X-axis value range and the Y-axis value range; The units and directions of the X-axis and Y-axis of the Mercator projection coordinate reference system are the same as those of the three-dimensional geographic basic coordinate system, thus forming a geographic information system coordinate system.
6. The digital twin irrigation district visualization method based on network graphical processing according to claim 1, characterized in that: According to the hydrological change simulation unit created in advance, based on the geographic information system coordinate system, the method of mapping the hydrological change data of the irrigation area into simulation information in the geographic information system coordinate system is as follows: First, the hydrological change data of the irrigation area is obtained according to the three-dimensional geographic basic coordinate system; The hydrological change data include several line unit data and extreme value data; A line unit data includes at least two vertices, each vertex includes position information and physical quantity results; the extreme value data includes the maximum and minimum values of each physical quantity; Secondly, according to the conversion relationship between the geographic information system coordinate system and the three-dimensional geographic basic coordinate system, the coordinate conversion information between the geographic information system coordinate system and the three-dimensional geographic basic coordinate system is obtained; Based on the coordinate conversion information, the hydrological change data of the irrigation area is mapped into simulation information of the geographic information system coordinate system; Then, the simulation information is rendered into corresponding color information; The color information is then combined with the geographic information map to obtain the irrigation area basin display information.
7. The digital twin irrigation district visualization method based on network graphical processing according to claim 6, characterized in that: The method to render the simulation information into the corresponding color information is as follows: Acquiring simulation information, which includes a number of line unit conversion data and maximum value conversion data; A line unit conversion data includes at least two conversion vertices, each conversion vertex includes position conversion information and physical quantity conversion results; the extreme value data includes the maximum conversion value and the minimum conversion value of each physical quantity; Create a rendering color information table, which includes at least 4 columns and n rows of data, where the 4 columns of data represent red, green, blue and opacity respectively; the n rows of data are arranged in ascending order by index, which respectively display the colors of physical quantities from small to large; According to the rendering color information table, a color data matrix of several conversion vertices is established; The color data matrices of several converted vertices are coupled to obtain color information.
8. The digital twin irrigation district visualization method based on network graphical processing according to claim 1, characterized in that: The method of using the previously created 3D irrigation district generation unit, coupling the simulation information with the geographic information map based on the network image processing algorithm, and performing parallel rendering processing to obtain the twin 3D model of the irrigation district that can be displayed on the web page is as follows: According to the network image processing algorithm, a three-dimensional irrigation area generation unit is established, which at least includes a texture generator, a vertex shader, a fragment shader, a sampler and a rendering pipeline; The 3D irrigation area generation unit is a browser interface that enables the browser to call the system graphics card to realize batch data calculation and complex graphics drawing, and enables the twin 3D model of the irrigation area to be presented inside the web page; Initialize the three-dimensional irrigation area generation unit according to the characteristics of a certain browser, so that the three-dimensional irrigation area generation unit can be compatible with the certain browser; Acquire irrigation area watershed display information, which at least includes location information, color information and physical quantity attributes; Using the texture generator, a geographic texture is generated according to the location information, and a color texture is generated according to the color information; Use the vertex shader to convert geographic textures, color textures, and physical quantity attributes into canvas coordinate data that can be used by the canvas; The canvas coordinate data is rasterized to discretize the irrigation area watershed display information into several slices; A fragment includes at least texture information and vertex attributes; Using the fragment shader to read the texture information and vertex attributes in the fragment, and normalizing the texture information and vertex attributes to obtain normalized values; Use the sampler to sample the normalized irrigation area value to obtain a color sample; By using the rendering pipeline to control the vertex shader, fragment shader and sampler, the irrigation area watershed display information is rendered in parallel to obtain a number of fragments and corresponding color samples, and then the fragments and color samples are output to the canvas of the web page to form a twin 3D model of the irrigation area.
9. A digital twin irrigation area visualization method based on network graphical processing, characterized by: Includes the following: Process irrigation basin data and create geographic information maps; Establish a three-dimensional geographic basic coordinate system based on the hydrological change data of the irrigation area; Based on the geographic information map, establish a geographic information system coordinate system and obtain coordinate conversion information between the geographic information system coordinate system and the three-dimensional geographic basic coordinate system; Based on the coordinate conversion information, the hydrological change data of the irrigation area is mapped into the simulation information of the geographic information system coordinate system, and the simulation information is coupled with the geographic information map to obtain the irrigation area basin display information; Based on the network image processing algorithm, the irrigation district watershed display information is rendered in parallel to obtain a twin 3D model of the irrigation district that can be displayed on the web page.
10. A browser, characterized in that: It includes a three-dimensional irrigation area generation unit and a storage medium; A 3D irrigation district generation unit, which is used to realize parallel computing of batch data and drawing of twin 3D models of irrigation districts; A computer program is provided on the storage medium, and when the computer program is executed, the digital twin irrigation district visualization method based on network graphical processing as described in any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Web-based wind field three-dimensional dynamic visual presentation method
CN112802174A
Drainage basin flood control visualization method and system based on digital twinning
CN114820990A
Method for realizing digital management of irrigation district based on digital twinborn platform
CN116308861A
Offshore wind power scour pit three-dimensional rendering method and device based on digital twinborn simulation
CN117456074A
Tile image map processing method, device and equipment
CN117827996A
Cited By
Visualization method and device for digital twin basin animation and server
CN120182450A
Method and system for generating irrigation area water network structure
CN120832738A
