Digital twin irrigation district visualization method and browser based on network graphics processing

By creating a watershed visual 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 coupled with the geographic information map to perform parallel rendering processing, solving the problem of insufficient data processing performance in the existing technology, and achieving efficient processing and fine display effects.

CN119206135BActive Publication Date: 2025-05-16ZHEJIANG YUANSUAN TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411679144.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-05-16
Estimated Expiration
2044-11-22

AI Technical Summary

Technical Problem

The existing irrigation area water resource information processing and visualization system based on MapObjects technology is insufficient in processing large-scale or complex geographic information data, and cannot effectively meet the processing timeliness requirements for geographic information data and the requirements for visual display of irrigation area in complex irrigation area visualization scenarios.

Method used

By creating an irrigation area basin visualization unit, 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 the simulation information is coupled with the geographic information map and rendering it in parallel, thereby achieving the ability to efficiently process large-scale or complex irrigation area data.

Benefits of technology

The efficient processing of irrigation area data is achieved and the rapid acquisition of twin three-dimensional models of irrigation areas that can be displayed on the web page, providing a more refined visual effect, and can more accurately describe the irrigation status of irrigation areas, clearly and completely display the basin landform and hydrological conditions, and accurately display the water resource optimization scheduling process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119206135B_ABST
    Figure CN119206135B_ABST
Patent Text Reader

Abstract

The present invention discloses a digital twin irrigation district visualization method and browser based on network graphical processing, and belongs to the field of irrigation district visualization technology. The irrigation district visualization scheme in the prior art cannot effectively meet the requirements for data processing timeliness and irrigation district visualization display in complex irrigation district visualization scenes. The digital twin irrigation district visualization method based on network graphical processing of the present invention creates 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, maps the hydrological change data of the irrigation district to 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 district data can be efficiently processed, and the processing timeliness requirements for geographic information data can be met. It can also provide more refined visual effects to meet the requirements for irrigation district visualization display.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a digital twin irrigation district visualization method and a browser based on network graphical processing, and belongs to the technical field of irrigation district visualization. Background Art

[0002] Chinese literature: Duan Fuyi. Research on irrigation area water resources information processing and visualization system based on GIS [D]. Zhengzhou: North China Institute of Water Resources and Hydropower, 200706. Based on the summary of the development of geographic information systems and current research hotspots, the principles, characteristics and evolution of component technology, as well as the composition characteristics and secondary development of component-based GIS, are elaborated in detail. The shortcomings of traditional GIS development of irrigation area water resources information management system and the advantages of component-based GIS development are analyzed. Through the analysis of system requirements, analysis and design of system functions, the system integration is realized on the platform of mapping and GIS functional components MapObjects using the programming language Visual Basic 6.0.

[0003] The above scheme has conducted an exploratory study on the development of irrigation district water resources information system based on component-based 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 requirements for the processing timeliness 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 inventive concept and therefore it may include information that does not constitute the prior art. Summary of the invention

[0006] In response to the above problem or one of the above problems, an object 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 a 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 object of the present invention is to provide a digital twin irrigation district visualization method and browser based on network graphical processing, map the hydrological change data of the irrigation district into simulation information in the geographic information system coordinate system, and then couple the simulation information with the geographic information map, and perform 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, thereby providing a more refined visual effect, and then a more accurate description of the irrigation status of the irrigation district, a clear and complete display of the watershed landform and hydrological conditions, and an accurate display of the water resources optimization scheduling process.

[0008] In response to the above problem or one of the above problems, the third object of the present invention is to provide a browser, which 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, thereby facilitating 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 the promotion and use of irrigation area visualization solutions is facilitated.

[0009] To achieve one of the above purposes, the first technical solution of the present invention is:

[0010] The digital twin irrigation district visualization method based on network graphical processing includes the following contents:

[0011] Through the irrigation basin visualization unit created in advance, the irrigation basin data is processed to establish a geographic information map;

[0012] Using the previously created irrigation area coordinate construction unit, a geographic information system coordinate system is established based on the geographic information map;

[0013] 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;

[0014] 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.

[0015] 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, and a three-dimensional effect display of the irrigation area can be realized, thereby effectively meeting the processing timeliness requirements of geographic information data and the requirements for irrigation area visualization in complex irrigation area visualization scenes.

[0016] Furthermore, the three-dimensional irrigation area generation unit of the present invention is created based on a network image processing algorithm, so that it can 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.

[0017] 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 imaging 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; thus, it can more accurately describe the irrigation status of the irrigation area, clearly and completely display the watershed landform and hydrological conditions, and accurately display the water resources optimization scheduling process, which is of great significance for improving the efficiency and effectiveness of irrigation area management.

[0018] As the preferred technical measures:

[0019] 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:

[0020] Based on the three-dimensional geographic basic coordinate system, set the position information of the perspective camera;

[0021] 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;

[0022] Processing the irrigation area watershed image through the tile map processing unit to obtain a number of map tile information;

[0023] According to the position information of the perspective camera, several map tile information are coupled to obtain a map information table;

[0024] Based on the map information table, establish a geographic information map of the irrigation basin.

[0025] As the preferred technical measures:

[0026] 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:

[0027] 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;

[0028] 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;

[0029] 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.

[0030] As the preferred technical measures:

[0031] According to the position of the perspective camera, several map tile information are coupled to obtain the map information table as follows:

[0032] 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;

[0033] Step 2, re-substituting the center distance into the map loading level calculation formula to calculate the number of simulation loading levels;

[0034] Step 3, compare the number of simulated loading levels with the number of loading levels to determine whether the two are the same;

[0035] If the two are the same, the corresponding map tile information is added to the preset information table;

[0036] 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;

[0037] 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;

[0038] When the new loading level is greater than or equal to 1, execute step 5;

[0039] Step 5, calculate all map tile information at the new loading level, and execute step 1;

[0040] Step 6, end the loop calculation, and use the information table at this time as the final map information table.

[0041] As the preferred technical measures:

[0042] 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:

[0043] Based on the geocentric coordinate system WGS84, establish the Mercator projection coordinate reference system;

[0044] Set the center point of the Mercator projection coordinate reference system, and set the X-axis value range and the Y-axis value range;

[0045] 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.

[0046] As the preferred technical measures:

[0047] 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:

[0048] First, the hydrological change data of the irrigation area is obtained according to the three-dimensional geographic basic coordinate system;

[0049] The hydrological change data include several line unit data and extreme value data;

[0050] 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;

[0051] 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;

[0052] 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;

[0053] Then, the simulation information is rendered into corresponding color information;

[0054] The color information is then combined with the geographic information map to obtain the irrigation area basin display information.

[0055] As the preferred technical measures:

[0056] The method to render the simulation information into the corresponding color information is as follows:

[0057] Acquiring simulation information, which includes a number of line unit conversion data and maximum value conversion data;

[0058] 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;

[0059] 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;

[0060] According to the rendering color information table, a color data matrix of several conversion vertices is established;

[0061] The color data matrices of several converted vertices are coupled to obtain color information.

[0062] As the preferred technical measures:

[0063] 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 irrigation district twin 3D model that can be displayed on the web page is as follows:

[0064] 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;

[0065] 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;

[0066] 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;

[0067] Acquire irrigation area watershed display information, which at least includes location information, color information and physical quantity attributes;

[0068] 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;

[0069] 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;

[0070] The canvas coordinate data is rasterized to discretize the irrigation area watershed display information into several slices;

[0071] A fragment includes at least texture information and vertex attributes;

[0072] 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;

[0073] Use the sampler to sample the normalized irrigation area value to obtain a color sample;

[0074] 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.

[0075] To achieve one of the above purposes, the second technical solution of the present invention is:

[0076] The digital twin irrigation district visualization method based on network graphical processing includes the following contents:

[0077] Process irrigation basin data and create geographic information maps;

[0078] Establish a three-dimensional geographic basic coordinate system based on the hydrological change data of the irrigation area;

[0079] 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;

[0080] 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;

[0081] 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.

[0082] 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 watershed display information, and then the irrigation area watershed display information can be rendered in parallel, 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 a 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 then the irrigation status of the irrigation area can be described more accurately, the watershed 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 for improving the efficiency and effectiveness of irrigation area management.

[0083] To achieve one of the above purposes, the third technical solution of the present invention is:

[0084] A browser includes a three-dimensional irrigation area generation unit and a storage medium;

[0085] 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;

[0086] 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.

[0087] 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, and 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 to promote and use the irrigation area visualization solution.

[0088] Compared with the prior art solutions, the present invention has the following beneficial effects:

[0089] 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 as to quickly obtain a twin three-dimensional model of the irrigation area that can be displayed on a web page, thereby realizing a three-dimensional effect display of the irrigation area.

[0090] 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 a 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 watershed 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.

[0091] Furthermore, the browser of the present invention can combine hydrological change data with geographic information maps by setting up a three-dimensional irrigation area generation unit and a storage medium, so that the watershed topography and hydrological changes can be clearly displayed on the browser canvas, thereby providing users with an accurate and intuitive visual experience, and 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 to promote and use the irrigation area visualization solution.

[0092] Furthermore, the three-dimensional irrigation area generation unit of the present invention is created based on a network image processing algorithm, so that it can 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

[0093] Figure 1 A schematic diagram of a process of the digital twin irrigation district visualization method of the present invention;

[0094] Figure 2 A schematic diagram of a process flow for rendering the present invention. DETAILED DESCRIPTION

[0095] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with 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.

[0096] On the contrary, the present invention covers any substitution, modification, equivalent method and scheme made on the essence and scope of the present invention as defined by the claims. Further, in order to make the public have a better understanding of the present invention, some specific details are described in detail in the following detailed description of the present invention. Those skilled in the art can fully understand the present invention without the description of these details.

[0097] 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 belongs. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0098] like Figure 1 As shown, the first specific embodiment of the digital twin irrigation district visualization method of the present invention is:

[0099] The digital twin irrigation district visualization method based on network graphical processing includes the following contents:

[0100] Through the irrigation basin visualization unit created in advance, the irrigation basin data is processed to establish a geographic information map;

[0101] Using the previously created irrigation area coordinate construction unit, a geographic information system coordinate system is established based on the geographic information map;

[0102] 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;

[0103] 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.

[0104] The second specific embodiment of the digital twin irrigation district visualization method of the present invention:

[0105] Digital twin irrigation district visualization method based on network graphics processing,

[0106] Includes the following:

[0107] Process irrigation basin data and create geographic information maps;

[0108] Establish a three-dimensional geographic basic coordinate system based on the hydrological change data of the irrigation area;

[0109] 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;

[0110] 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;

[0111] 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.

[0112] A specific embodiment of the browser of the present invention:

[0113] A browser includes a three-dimensional irrigation area generation unit and a storage medium;

[0114] 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;

[0115] 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.

[0116] The third specific embodiment of the digital twin irrigation district visualization method based on network graphical processing of the present invention:

[0117] The digital twin irrigation district visualization method based on network graphical processing includes the following contents:

[0118] 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.

[0119] Afterwards, through the irrigation basin visualization unit, the corresponding position of the irrigation basin in the geographic information system coordinate system is calculated according to the position of the viewing angle in the three-dimensional space and the direction shown, so as to establish a geographic information map.

[0120] 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.

[0121] Finally, a rendering pipeline is established using the 3D irrigation area generation unit. This step requests the loading of geographic information maps and combines vertex data and color data for parallel rendering, so that the irrigation areas can be displayed on the web page.

[0122] In this embodiment, the method of establishing the three-dimensional geographic basic coordinate system and the geographic information system coordinate system is as follows:

[0123] The three-dimensional geographic basic coordinate system is constructed using a stereoscopic rectangular coordinate system. The stereoscopic 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.

[0124] For the geographic information system coordinate system, the present embodiment uses the European Petroleum Survey Organization EPSG:3857 coordinate system. It is a kind of Mercator projection coordinate reference system based on WGS84 coordinate system, which is widely used in network map services, ranging from 85.06 degrees north latitude to 85.06 degrees south latitude. The center point of the European Petroleum Survey Organization EPSG:3857 coordinate system is at the equator and the prime meridian, where the coordinate point is (0,0), the X-axis coordinate is from -20037508.34 to 20037508.34, and the Y-axis coordinate is from -20048966.1 to 20048966.1. The coordinate uses meters as the unit, which is the same as the three-dimensional geographic basic coordinate system. At the same time, the X and Y axes of the European Petroleum Survey Organization EPSG:3857 coordinate system are also in the same direction as the X and Y axes of the three-dimensional geographic basic coordinate system, and it lacks the Z used to represent the height than the three-dimensional geographic basic coordinate system.

[0125] In this embodiment, the method for establishing a geographic information map is as follows:

[0126] First, a camera is set up, the function of which 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 human eyes to achieve a realistic visual effect.

[0127] Then, according to the camera position, the parameters required by the tile map processing unit are calculated. The tile map processing unit is a protocol that can divide the map into image pyramids of multiple zoom levels to obtain a number of tiled tiles.

[0128] 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.

[0129] 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, each of which 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 , the width is , texture coordinate displacement .

[0130] Finally, a geographic information map is created based on the information table.

[0131] In this embodiment, the method for establishing the information table is as follows:

[0132] 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:

[0133]

[0134] in, Indicates the resolution, the value is 1080. It represents half of the earth's circumference and its value is 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 field of view is expressed as radians, and the value is 0.96 radians. This formula is an empirical formula. All take fixed values.

[0135] Step 2: According to the camera's position coordinates , and the level Substitute the formula to calculate the coordinate value of the center tile where the camera is located , and its calculation formula is as follows:

[0136]

[0137]

[0138] Step 3: Calculate all the Tiles of the level, the value 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.

[0139] Step 4: Substitute the distance back into the formula and calculate the new level , determine the new level With the current Are they the same?

[0140] If they are the same, 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:

[0141]

[0142] 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 Values ​​are compared.

[0143] 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:

[0144]

[0145]

[0146] Step 6: Finally, traverse all information tables, remove and destroy tiles in the non-visible area.

[0147] In this embodiment, the method for converting hydrological change data into geographic information system coordinate system data is as follows:

[0148] After obtaining the hydrological change data of a certain irrigation area, it is necessary to map the hydrological change data into three-dimensional space and render the physical quantity data in the result into corresponding color values. The hydrological change data includes line unit data and extreme value data. A line unit contains two vertices, and each vertex data contains position data and physical quantity result data. The extreme value data contains the maximum and minimum values ​​of each physical quantity.

[0149] The location data is the coordinates in the geographic projection coordinate system. Axis coordinate values express, Axis coordinate values In this embodiment, the data of the geographic projection coordinate system needs to be converted into the European Petroleum Survey Organization EPSG:3857 coordinate system data used by the geographic information system coordinate system.

[0150] 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:

[0151]

[0152]

[0153] 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.

[0154] At the same time, a color information table needs to be created. 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 color to be displayed is a gradient of red, orange, and yellow, the data of each row is as follows:

[0155] The first row represents red, and the data in each column is 255, 0, 0, 255;

[0156] The second row represents orange, and the data in each column is 255, 127, 0, 255;

[0157] The third row represents yellow, and the data in each column is 255, 255, 0, 255.

[0158] In this embodiment, Figure 2 As shown, the method of rendering using the three-dimensional irrigation area generation unit is as follows:

[0159] Step 1: Based on the network image processing algorithm, a 3D irrigation area generation unit is constructed and initialized. The purpose of this step is to ensure that the current browser can support and use the 3D irrigation area generation unit and call graphics processor resources. The network graphics processor of this embodiment is a network graphics processor WebGPU.

[0160] Step 2: Create textures and samplers. This step is to generate textures from the images in the previous information table, and generate the color information table into color textures and create samplers. The purpose of this step is to enable the 3D irrigation area generation unit to display the corresponding color information.

[0161] Step 3: Define the shader, which includes the vertex shader and the fragment shader.

[0162] 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.

[0163] Then the position information and physical quantity attributes are rasterized, which is the process of discretizing vertex attributes into fragments. At the same time, the 3D irrigation area generation unit will check whether a certain 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 obtained through the vertex shader transformation. Then the fragment shader normalizes the physical quantity, and the calculation formula is as follows:

[0164]

[0165] in, Represents the value of a physical quantity, Represents the minimum value of a physical quantity, Indicates the maximum value of the physical quantity. In this scenario, the physical quantities of the simulation results include the current river water level, water flow velocity, water flow, water flow direction, and pollutant concentration.

[0166] 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 get the corresponding color.

[0167] 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.

[0168] 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.

[0169] Step 6: Finally, run the rendering pipeline to render and output to the canvas.

[0170] 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.

[0171] An embodiment of a device applying the method of the present invention:

[0172] An electronic device comprising:

[0173] one or more processors;

[0174] A storage device for storing one or more programs;

[0175] 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.

[0176] A computer medium embodiment using the method of the present invention:

[0177] 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.

[0178] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, and computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete 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 disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0179] The present application is described by flowcharts or / and block diagrams of the methods, devices (systems), and computer program products of the embodiments of the present application. It should be understood that each process or / and block in the flowchart or / and block diagram and the combination of the 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 generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart or / and block diagram. Figure 1 Process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0180] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 Process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0181] 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, so that the instructions executed on the computer or other programmable device provide for implementing the process. Figure 1 Process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0182] The unit in this application is an object that objectively describes the morphological structure with the help of physical or virtual expressions. The object is not equal to the object 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.

[0183] 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 relevant field can still modify or replace the specific implementation methods of the present invention with equivalents. 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; The 3D irrigation district generation unit created in advance is used to couple the simulation information with the geographic information map based on the network image processing algorithm, and parallel rendering is performed to obtain a twin 3D model of the irrigation district that can be displayed on the web page; the method 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.

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. A digital twin irrigation district visualization method based on network graphical processing is 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 area watershed display information is rendered in parallel to obtain the twin 3D model of the irrigation area that can be displayed on the web page; the method 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 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 8 is implemented.

Citation Information

Patent Citations

  • 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

  • Construction method and device of digital twin platform base

    CN118941726A