Marine environment field data loading method and device, electronic equipment and storage medium
By using metadata table database and dynamic sampling rules in back-end devices, the problem of low data loading efficiency in marine environment fields in traditional methods is solved, and more efficient data loading and rendering efficiency is achieved.
Patent Information
- Application Number
- CN202510565774.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2025-06-03
- Estimated Expiration
- 2045-04-30
AI Technical Summary
Traditional methods are inefficient when loading large amounts of marine environmental field data, resulting in a long time-consuming data loading process.
By using a pre-built metadata table database in the back-end device, the screen space resolution and the spatial range of environmental elements to be loaded are determined based on the window parameters sent by the front-end device, so as to query the storage location and data spatial resolution of the target marine environment field data, dynamically determine the sampling rules, sample the data, obtain the adaptive resolution data and pass it back to the front-end device.
It realizes the sampling and loading of marine environmental field data dynamically and adaptively according to the window parameters of the front-end device, reducing the amount of data processed and transmitted, thereby improving the loading efficiency of marine environmental field data.
Smart Images

Figure CN120086423A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of marine environmental data visualization, and particularly to a method, device, electronic device and storage medium for loading marine environmental field data. Background Art
[0002] Marine environmental field data mainly exists in the form of multi-dimensional scientific data formats of NetCDF (Network Common Data Form) or HDF (Hierarchical Data Form). These data formats are widely used for storing and exchanging data in the fields of oceanography, meteorology and other earth sciences. The data usually contains rich marine environmental parameters, such as temperature, salinity and ocean current, etc., which are stored in the form of arrays and have multiple dimensions, such as time, depth, longitude and latitude, etc. The characteristics of NC data and HDF data are that they have the ability to describe an N-dimensional array or table structure with spatial information, and are suitable for characterizing complex marine environments and their variation laws.
[0003] Since marine environmental field data usually needs to describe the dynamic changes of different depths and different times in the ocean, the data volume increases rapidly, resulting in a very large data volume of marine environmental field data. Therefore, when loading marine environmental field data with a large data volume by traditional data loading methods, there will be a problem of low data loading efficiency. Summary of the Invention
[0004] The present invention provides a method, device, electronic device, non-transitory computer-readable storage medium and computer program product for loading marine environmental field data, so as to solve the defect of low loading efficiency of marine environmental field data in the prior art and achieve the effect of improving the loading efficiency of marine environmental field data.
[0005] In a first aspect, the present invention provides a method for loading marine environmental field data, and the method is applied to a backend device; the method includes the following steps: Obtain window parameters sent by a front-end device in response to a marine environmental field data loading request; Determine the screen space resolution and the spatial range of environmental elements to be loaded according to the window parameters; Query the storage location and data space resolution of target marine environmental field data that meets the spatial range from a pre-constructed metadata table database; Determine a sampling rule according to the data space resolution and the screen space resolution; Sample the target marine environmental field data at the storage location according to the sampling rule to obtain marine environmental field adaptive resolution data, and send it back to the front-end device.
[0006] According to an ocean environmental field data loading method provided by the present invention, the window parameters include the Earth display level, the spatial coordinates of the window reference point, and the window resolution; determining the screen space resolution and the spatial range of the environmental elements to be loaded according to the window parameters includes: Determine the corresponding screen display scale according to the Earth display level; Determine the screen space resolution and the spatial range of the environmental elements to be loaded according to the screen display scale, the spatial coordinates of the window reference point, and the window resolution.
[0007] According to an ocean environmental field data loading method provided by the present invention, determining the screen space resolution and the spatial range of the environmental elements to be loaded according to the screen display scale, the spatial coordinates of the window reference point, and the window resolution includes: Determine the actual distance corresponding to a unit pixel in the screen according to the screen display scale and the window resolution; Determine the screen space resolution according to the actual distance and the spatial coordinates of the window reference point; Determine the spatial coordinates of each vertex of the window according to the screen space resolution, the window resolution, and the spatial coordinates of the window reference point; Determine the spatial range of the environmental elements to be loaded according to the spatial coordinates of each vertex of the window.
[0008] According to an ocean environmental field data loading method provided by the present invention, determining the sampling rule according to the data space resolution and the screen space resolution includes: Determine the first sampling step in the first direction according to the screen space resolution in the first direction and the data space resolution in the first direction; Determine the second sampling step in the second direction according to the screen space resolution in the second direction and the data space resolution in the second direction; Sampling the target ocean environmental field data according to the sampling rule to obtain ocean environmental field adaptive resolution data includes: Sample the target ocean environmental field data in the first direction according to the first sampling step and in the second direction according to the second sampling step to obtain ocean environmental field adaptive resolution data; the first direction and the second direction respectively correspond to the rows and columns of the target ocean environmental field data.
[0009] According to an ocean environmental field data loading method provided by the present invention, the method further includes: Obtain the feature types and feature dates requested to be loaded sent by the front-end device in response to the marine environmental field data loading request; Query the candidate marine environmental field data that meets the feature types and the feature dates from the pre-constructed metadata table database; The querying of the storage location and data spatial resolution of the target marine environmental field data that meets the spatial range from the pre-constructed metadata table database includes: Query the storage location and data spatial resolution of the target marine environmental field data that meets the spatial range among the candidate marine environmental field data from the pre-constructed metadata table database.
[0010] In a second aspect, the present invention provides a method for loading marine environmental field data, and the method is applied to a front-end device; the method includes the following steps: In response to a marine environmental field data loading request, send window parameters to the back-end device; the window parameters are used to determine the screen spatial resolution and the spatial range of the environmental elements to be loaded, the spatial range is used to determine the storage location and data spatial resolution of the target marine environmental field data, and the data spatial resolution and the screen spatial resolution are used to determine the sampling rule; Receive the marine environmental field adaptive resolution data returned by the back-end device; the marine environmental field adaptive resolution data is obtained by sampling the target marine environmental field data from the storage location according to the sampling rule.
[0011] According to a method for loading marine environmental field data provided by the present invention, the method further includes: Slice the marine environmental field adaptive resolution data into multiple groups according to the longitude or latitude corresponding to the marine environmental field adaptive resolution data; Use multiple threads to parallelly perform color rendering on each group of marine environmental field adaptive resolution data and display it at the corresponding position on the map in the window.
[0012] In a third aspect, the present invention provides a device for loading marine environmental field data, which is set in a back-end device and includes the following modules: A data acquisition module, which is used to acquire the window parameters sent by the front-end device in response to the marine environmental field data loading request; A scale mapping module, which is used to determine the screen spatial resolution and the spatial range of the environmental elements to be loaded according to the window parameters; A data query module, which is used to query the storage location and data spatial resolution of the target marine environmental field data that meets the spatial range from the pre-constructed metadata table database; A data sampling module, configured to determine a sampling rule according to the data space resolution and the screen space resolution; sample the target marine environmental field data from the storage location according to the sampling rule to obtain marine environmental field adaptive resolution data, and transmit the data back to the front-end device.
[0013] In a fourth aspect, the present invention provides a marine environmental field data loading device, which is arranged in a front-end device and includes the following modules: A data sending module, configured to send window parameters to a back-end device in response to a marine environmental field data loading request; the window parameters are used to determine the screen space resolution and the spatial range of the environmental elements to be loaded, the spatial range is used to determine the storage location and the data space resolution of the target marine environmental field data, and the data space resolution and the screen space resolution are used to determine the sampling rule; A data receiving module, configured to receive the marine environmental field adaptive resolution data transmitted back by the back-end device; the marine environmental field adaptive resolution data is obtained by sampling the target marine environmental field data from the storage location according to the sampling rule.
[0014] In a fifth aspect, the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the marine environmental field data loading method described in the first aspect or the second aspect is implemented.
[0015] In a sixth aspect, the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the marine environmental field data loading method described in the first aspect or the second aspect is implemented.
[0016] In a seventh aspect, the present invention further provides a computer program product, including a computer program. When the computer program is executed by a processor, the marine environmental field data loading method described in the first aspect or the second aspect is implemented.
[0017] The marine environmental field data loading method, device, electronic device, non-transitory computer-readable storage medium, and computer program product provided by the present invention. The front-end device responds to the window parameters sent in response to the marine environmental field data loading request. The back-end device determines the screen space resolution and the spatial range of the environmental elements to be loaded according to the window parameters, and then queries the storage location and data space resolution of the target marine environmental field data that meets the spatial range from the pre-constructed metadata table database. According to the data space resolution and the screen space resolution, the sampling rule is determined, so that the target marine environmental field data that meets the spatial range corresponding to the window can be dynamically and adaptively determined, and the sampling rule is dynamically and adaptively adjusted according to the relationship between the screen and the data space resolution. Then, from the storage location, the target marine environmental field data is sampled according to the sampling rule to obtain the marine environmental field adaptive resolution data, which is then transmitted back to the front-end device, thus realizing the dynamic and adaptive sampling and loading of the marine environmental field data according to the window parameters of the front-end device, reducing the amount of data processed and transmitted, and thus being able to improve the loading efficiency of the marine environmental field data. In addition, compared with the traditional methods that adopt some optimization strategies, including data compression, index optimization, and data aggregation, etc., to reduce the complexity of data processing and rendering to a certain extent, the marine environmental field data loading method in this aspect can also avoid these cumbersome and time-consuming preprocessing processes, especially in some special scenarios that require timeliness and stability, such as environmental forecasting, offshore exploration, military operations, etc., further improving the loading efficiency of the marine environmental field data. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0019] Figure 1 It is one of the flow diagrams of the marine environmental field data loading method provided by the present invention.
[0020] Figure 2 It is a schematic diagram of the metadata table database provided by the present invention.
[0021] Figure 3 It is a reference configuration of the device for executing the marine environmental field data loading method provided by the present invention.
[0022] Figure 4 It is the second flow diagram of the marine environmental field data loading method provided by the present invention.
[0023] Figure 5It is the third schematic flow chart of the method for loading marine environmental field data provided by the present invention.
[0024] Figure 6 It is the schematic diagram of the color rendering effect in the method for loading marine environmental field data provided by the present invention; wherein, Figure 6 in (a), (b), (c), (d), and (e) are the color rendering effects when the sampling step is 1, 6, 12, 30, and 60 respectively, Figure 6 and (f) in it is the schematic diagram of the legend.
[0025] Figure 7 It is one of the schematic flow charts of the color rendering provided by the present invention.
[0026] Figure 8 It is the second schematic flow chart of the color rendering provided by the present invention.
[0027] Figure 9 It is the fourth schematic flow chart of the method for loading marine environmental field data provided by the present invention.
[0028] Figure 10 It is the fifth schematic flow chart of the method for loading marine environmental field data provided by the present invention.
[0029] Figure 11 It is the sixth schematic flow chart of the method for loading marine environmental field data provided by the present invention.
[0030] Figure 12 It is one of the schematic structural diagrams of the device for loading marine environmental field data provided by the present invention.
[0031] Figure 13 It is the second schematic structural diagram of the device for loading marine environmental field data provided by the present invention.
[0032] Figure 14 It is the schematic structural diagram of the electronic device provided by the present invention. Detailed implementation manners
[0033] To make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings in the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present invention without making creative efforts belong to the scope of protection of the present invention.
[0034] The following Figures 1-14 describes the method, device, electronic device, non-transitory computer-readable storage medium and computer program product for loading marine environmental field data of the present invention.
[0035] Figure 1 is one of the flow diagrams of the method for loading ocean environmental field data provided by the present invention. As Figure 1 shown, this method is applied to the backend device and includes the following: Step 102: Obtain the window parameters sent by the frontend device in response to the ocean environmental field data loading request.
[0036] Among them, the window refers to the interface in the frontend device for displaying ocean environmental field data.
[0037] In one embodiment, the window parameters may include the earth display level, the spatial coordinates of the window reference point, and the window resolution. Among them, the earth display level refers to the level obtained by dividing the map of the earth according to the display resolution. The higher the earth display level, the higher the resolution of the earth map and the richer the displayed details; the lower the earth display level, the lower the resolution of the earth map and the fewer the displayed details. The window reference point is the point selected in the window for use as a coordinate reference. For example: The window reference point can be the center point of the window. The spatial coordinates refer to the coordinates in the actual earth space. For example: The spatial coordinates can be the longitude and latitude coordinates on the earth. The window resolution refers to the number of pixels in the length and width directions of the window.
[0038] In one embodiment, the user triggers the ocean environmental field data loading request through the software interface deployed on the frontend device. The frontend device can, in response to the ocean environmental field data loading request, send the current earth display level, the spatial coordinates of the window reference point, and the window resolution in the software interface to the backend device.
[0039] Step 104: Determine the screen space resolution and the spatial range of the environmental elements to be loaded according to the window parameters.
[0040] Among them, the screen space resolution represents the spatial range corresponding to a unit pixel on the screen. The spatial range of the environmental elements to be loaded refers to the spatial range where the ocean environmental elements to be displayed in the window are located.
[0041] In one embodiment, the screen space resolution can be the longitude and latitude range corresponding to a unit pixel on the screen. The spatial range of the environmental elements to be loaded can be the longitude and latitude range of the environmental elements to be loaded.
[0042] In one embodiment, the backend device can determine whether the longitude and latitude range of the environmental elements to be loaded exceeds the limits of [-180, 180] and [-90, 90]. If so, it means that the vertex coordinates of the window fall on the skybox outside the sphere. At this time, correct the longitude and latitude coordinates of each vertex of the window to the four-corner coordinates of the hemisphere currently displayed by the window, obtain the corrected spatial range, and execute Step 106 and subsequent steps based on the corrected spatial range.
[0043] Step 106: Query the storage location and data spatial resolution of the target ocean environmental field data that meets the spatial range from the pre-constructed metadata table database.
[0044] The metadata table database is a pre-constructed database for storing the metadata of ocean environmental data. The metadata of ocean environmental data refers to the relevant information of ocean environmental data.
[0045] In one embodiment, after obtaining the ocean environmental field data in advance, the backend device can read the metadata of the ocean environmental data and construct the metadata table database according to the metadata of the ocean environmental field data. The items of the metadata table can refer to Figure 2 , and can include at least one of the storage location of the ocean environmental field data in the backend server file system, the production and warehousing time of the ocean environmental field data, the geographic coordinate range of the ocean environmental field data, the spatio-temporal resolution of the ocean environmental field data, the date to which the data belongs, the data spatial resolution, the data volume, the data source, and the data type. Among them, the geographic coordinate range can be the longitude and latitude range and the layer depth. The spatio-temporal resolution of the ocean environmental field data includes the update frequency. The data spatial resolution characterizes the spatial range corresponding to a unit data point in the horizontal direction in the ocean environmental field data. In one embodiment, the data spatial resolution can be the longitude and latitude resolution, that is, the data spatial resolution can be the longitude and latitude range corresponding to a unit data point in the ocean environmental field data.
[0046] In one embodiment, the backend device can pre-construct or connect to the metadata table in the metadata table database, and import the processed metadata of the ocean environmental field data read into the metadata table. The default value can be represented by null or NaN. Among them, null is used to characterize the metadata in string form, and NaN is used to characterize the metadata in digital form, such as integer type and floating point type.
[0047] In one embodiment, the backend device can query the storage location and data spatial resolution of the target ocean environmental field data that meets the spatial range according to the geographic coordinate range of the ocean environmental field data in the metadata table database.
[0048] In one embodiment, the front-end device can send the user requirements and window parameters to the backend device in response to the ocean environmental field data loading request. The backend device can query the candidate ocean environmental field data that meets the user requirements from the pre-constructed metadata table database. Then, query the storage location and data spatial resolution of the target ocean environmental field data that meets the spatial range in the candidate ocean environmental field data from the metadata table database. In one embodiment, the user requirements can include the feature type and feature date requested to be loaded.
[0049] In one embodiment, the backend device may use the longitude and latitude range of the to-be-selected marine environmental field data to match with the longitude and latitude range of the environmental element to be loaded . If the longitude and latitude range of a certain data entry contains the longitude and latitude range of the environmental element to be loaded, then select this data entry as the target marine environmental field data. If the longitude and latitude ranges of all entries do not completely contain the longitude and latitude range of the environmental element to be loaded, then calculate the matching degree of the longitude and latitude ranges , and then select the entry data with the largest matching degree as the target marine environmental field data
[0050]
[0051] Step 108: Determine the sampling rule according to the data space resolution and the screen space resolution
[0052] Step 110: Sample the target marine environmental field data from the storage location according to the sampling rule to obtain the marine environmental field adaptive resolution data, and send it back to the front-end device
[0053] In one embodiment, the backend device may determine the sampling step according to the ratio of the screen space resolution to the data space resolution. Sample the target marine environmental field data from the storage location according to the sampling step to obtain the marine environmental field adaptive resolution data, and send it back to the front-end device
[0054] In one embodiment, the server configuration of the backend device used in this application is as Figure 3 shown. One can refer to this configuration to select a machine to execute the method in this application
[0055] In the above method for loading marine environmental field data, the front-end device responds to the window parameters sent in response to the marine environmental field data loading request. The back-end device determines the screen space resolution and the spatial range of the environmental elements to be loaded according to the window parameters, and then queries the storage location and data space resolution of the target marine environmental field data that meets the spatial range from the pre-constructed metadata table database. According to the data space resolution and the screen space resolution, the sampling rule is determined, so that the target marine environmental field data that meets the spatial range corresponding to the window can be dynamically and adaptively determined, and the sampling rule is dynamically and adaptively adjusted according to the relationship between the screen and the data space resolution. Then, from the storage location, the target marine environmental field data is sampled according to the sampling rule to obtain the marine environmental field adaptive resolution data, which is then transmitted back to the front-end device, thus realizing the dynamic and adaptive sampling and loading of the marine environmental field data according to the window parameters of the front-end device, reducing the amount of data processed and transmitted, and thus being able to improve the loading efficiency of the marine environmental field data. In addition, since the amount of data is reduced, the amount of data transmitted by multiple threads can also be reduced, and the visualization display speed of the front-end device for the marine environmental field data can be improved. Compared with the traditional method of adopting some optimization strategies, including data compression, index optimization, and data aggregation, etc., to reduce the complexity of data processing and rendering to a certain extent, the marine environmental field data loading method of the present application avoids these cumbersome and time-consuming preprocessing processes, especially in some special scenarios that require timeliness and stability, such as environmental forecasting, marine exploration, military operations, etc., improving the loading efficiency and rendering efficiency of the marine environmental field data.
[0056] In one embodiment, the window parameters include the earth display level, the spatial coordinates of the window reference point, and the window resolution; determining the screen space resolution and the spatial range of the environmental elements to be loaded according to the window parameters includes: determining the corresponding screen display scale according to the earth display level; determining the screen space resolution and the spatial range of the environmental elements to be loaded according to the screen display scale, the spatial coordinates of the window reference point, and the window resolution.
[0057] Among them, the screen display scale represents the proportional relationship between the distance on the map and the actual geographical distance. Each earth display level has its own corresponding screen display scale.
[0058] In one embodiment, the screen display scale corresponding to the earth display level can be determined according to the mapping relationship between the earth display level and the screen display scale.
[0059] In one embodiment, the mapping relationship between the Earth display level and the screen display scale can be seen in Table 1 below. Referring to the standard "Military Vector Tile Map Data Organization and Service Specification", the map data is vertically graded into multiple Earth display levels according to the spatial resolution in accordance with the pyramid model, divided into 20 levels, and the resolution magnification factor between adjacent Earth display levels is 2. The recommended original vector data scale in Table 1 is the reference standard scale, and the screen display scales corresponding to the Earth display levels from level 0 to level 19 are formulated according to the reference standard scale.
[0060] Table 1
[0061] In one embodiment, the backend device can determine the screen spatial resolution and the spatial coordinates of each vertex of the viewport according to the screen display scale, the spatial coordinates of the viewport reference point, and the viewport resolution, and determine the spatial range of the environmental elements to be loaded according to the spatial coordinates of each vertex of the viewport. Among them, each vertex of the viewport can be the four corner points of the viewport. The spatial coordinates of each vertex of the viewport can be the longitude and latitude coordinates of the four corner points of the viewport.
[0062] In one embodiment, the backend device can determine the actual distance corresponding to a unit pixel in the screen according to the screen display scale and the viewport resolution, and then determine the screen spatial resolution and the spatial coordinates of each vertex of the viewport according to the actual distance, the spatial coordinates of the viewport reference point, and the viewport resolution, and determine the spatial range of the environmental elements to be loaded according to the spatial coordinates of each vertex of the viewport.
[0063] In the above embodiment, according to the Earth display level, the corresponding screen display scale is determined. According to the screen display scale, the spatial coordinates of the viewport reference point, and the viewport resolution, the screen spatial resolution and the spatial range of the environmental elements to be loaded can be accurately determined. Furthermore, based on the accurate screen spatial resolution and the spatial range of the environmental elements to be loaded, the target ocean environmental field data can be queried and sampled accurately.
[0064] In one embodiment, determining the screen spatial resolution and the spatial range of the environmental elements to be loaded according to the screen display scale, the spatial coordinates of the viewport reference point, and the viewport resolution includes: determining the actual distance corresponding to a unit pixel in the screen according to the screen display scale and the viewport resolution; determining the screen spatial resolution according to the actual distance and the spatial coordinates of the viewport reference point; determining the spatial coordinates of each vertex of the viewport according to the screen spatial resolution, the viewport resolution, and the spatial coordinates of the viewport reference point; and determining the spatial range of the environmental elements to be loaded according to the spatial coordinates of each vertex of the viewport.
[0065] In one embodiment, it is possible to determine according to the actual distance corresponding to a unit pixel and the latitude and longitude coordinates of the window reference point , determine the latitude and longitude range corresponding to a unit pixel (i.e., the screen space resolution).
[0066] In one embodiment, the latitude and longitude range corresponding to a unit pixel (i.e., the screen space resolution) can be determined according to the following formula:
[0067] where, represents the screen space resolution in the x direction. represents the screen space resolution in the y direction. represents the actual distance corresponding to a unit pixel. (111 kilometers) is the actual distance corresponding to 1 degree of latitude or longitude. represents the latitude and longitude coordinates of the window reference point.
[0068] In one embodiment, according to the screen space resolution, window resolution, and spatial coordinates of the window reference point, determining the spatial coordinates of each vertex of the window includes: according to the screen space resolution and window resolution determine the offsets of the spatial coordinates of each vertex of the window relative to the spatial coordinates of the window reference point respectively, and then according to the spatial coordinates of the window reference point and the offsets corresponding to each vertex respectively, determine the spatial coordinates of each vertex of the window.
[0069] In one embodiment, the spatial coordinates of each vertex of the window can be determined according to the following formula:
[0070] where, respectively represent the latitude and longitude coordinates of each vertex of the window. represents the latitude and longitude coordinates of the window reference point. represents the window resolution. H and W are the height and width of the window respectively. represents the screen space resolution in the x direction. represents the screen space resolution in the y direction.
[0071] In the above embodiments, according to the screen display scale and the window resolution, the actual distance corresponding to a unit pixel in the screen is determined. According to the actual distance and the spatial coordinates of the window reference point, the screen spatial resolution is determined. According to the screen spatial resolution, the window resolution, and the spatial coordinates of the window reference point, the spatial coordinates of each vertex of the window are determined. According to the spatial coordinates of each vertex of the window, the spatial range of the environmental elements to be loaded is determined. Thus, the screen spatial resolution and the spatial range of the environmental elements to be loaded can be accurately determined. Furthermore, based on the accurate screen spatial resolution and the spatial range of the environmental elements to be loaded, the target ocean environmental field data can be queried and sampled accurately.
[0072] In one embodiment, according to the data spatial resolution and the screen spatial resolution, a sampling rule is determined, including: according to the screen spatial resolution in the first direction and the data spatial resolution in the first direction, the first sampling step in the first direction is determined; according to the screen spatial resolution in the second direction and the data spatial resolution in the second direction, the second sampling step in the second direction is determined; sampling the target ocean environmental field data according to the sampling rule to obtain ocean environmental field adaptive resolution data, including: sampling the target ocean environmental field data in the first direction according to the first sampling step and in the second direction according to the second sampling step to obtain ocean environmental field adaptive resolution data; the first direction and the second direction respectively correspond to the rows and columns of the target ocean environmental field data.
[0073] In one embodiment, the first direction and the second direction can be the x direction and the y direction respectively. The x direction can correspond to the rows of the target ocean environmental field data, and the y direction can correspond to the columns of the target ocean environmental field data.
[0074] In one embodiment, the first sampling step in the first direction can be determined according to the ratio of the screen spatial resolution in the first direction to the data spatial resolution in the first direction. The second sampling step in the second direction can be determined according to the ratio of the screen spatial resolution in the second direction to the data spatial resolution in the second direction.
[0075] In one embodiment, the first sampling step and the second sampling step can be determined according to the following formula:
[0076] where represents the sampling step. represents the sampling step in the x direction (i.e., the first sampling step). represents the sampling step in the y direction (i.e., the second sampling step). represents the screen spatial resolution in the x direction. represents the screen spatial resolution in the y direction. Represents the data spatial resolution in the x - direction. Represents the data spatial resolution in the y - direction.
[0077] In one embodiment, the target ocean environmental field data can be sampled according to the following formula:
[0078] Where, Represents the adaptive resolution data of the ocean environmental field obtained by sampling. Represents the target ocean environmental field data before sampling. n represents the dimension of the target ocean environmental field data. i represents the serial number of the data sampled in the x - direction. j represents the serial number of the data sampled in the y - direction. Represents the sampling step in the x - direction (i.e., the first sampling step). Represents the sampling step in the y - direction (i.e., the second sampling step).
[0079] The relationship between the sampling step β and the data loading time and the amount of data is shown in Table 2 below. The longer the sampling step, the shorter the data loading time and the smaller the amount of data transmitted between the front - end device and the back - end device. From Table 2, it can be concluded that by using the ocean environmental field data loading method provided in this application, the loading speed of the ocean environmental field data can be greatly improved, and the amount of data transmitted between the front and back ends can be reduced.
[0080] Table 2
[0081] The effect of reducing the amount of data generated by the adaptive resolution also improves the rendering efficiency of the front - end device for data visualization display. As shown in Table 3, when using the same number of threads, the longer the sampling step, the shorter the rendering time and the smaller the amount of data transmitted between threads. From Table 3, it can be concluded that when using the same number of threads, by using the ocean environmental field data loading method provided in this application, the visualization display speed of the ocean environmental field data by the front - end device can be greatly improved, and the amount of data transmitted by multiple threads can be reduced.
[0082] Table 3
[0083] In the above embodiments, according to the screen space resolution in the first direction and the data space resolution in the first direction, the first sampling step in the first direction is determined. According to the screen space resolution in the second direction and the data space resolution in the second direction, the second sampling step in the second direction is determined. The target ocean environmental field data is sampled from the first direction according to the first sampling step and from the second direction according to the second sampling step to obtain the ocean environmental field adaptive resolution data, which can flexibly and accurately sample the target ocean environmental field data, reduce the amount of data for data processing and transmission, and thus improve the loading efficiency of the ocean environmental field data. In addition, since the amount of data is reduced, the amount of data transmitted by multiple threads can also be reduced, and the visualization display speed of the ocean environmental field data by the front-end device can be improved.
[0084] In one embodiment, the method further includes: obtaining the element type and element date requested to be loaded sent by the front-end device in response to the ocean environmental field data loading request; querying the candidate ocean environmental field data that meets the element type and element date from the pre-constructed metadata table database; querying the storage location and data space resolution of the target ocean environmental field data that meets the spatial range from the pre-constructed metadata table database, including: querying the storage location and data space resolution of the target ocean environmental field data that meets the spatial range among the candidate ocean environmental field data from the pre-constructed metadata table database.
[0085] In one embodiment, the back-end device can query the candidate ocean environmental field data that meets the element type and element date according to the data type and date of the ocean environmental field data recorded in the pre-constructed metadata table database to obtain the candidate ocean environmental field data. .
[0086] In the above embodiments, the element type and element date requested to be loaded sent by the front-end device in response to the ocean environmental field data loading request are obtained, the candidate ocean environmental field data that meets the element type and element date is queried from the pre-constructed metadata table database, and the storage location and data space resolution of the target ocean environmental field data that meets the spatial range among the candidate ocean environmental field data are queried from the pre-constructed metadata table database, so that the metadata of the candidate ocean environmental field data that meets the element type and element date can be screened out first, and then the storage location and data space resolution of the target ocean environmental field data that meets the spatial range can be queried from it, improving the query efficiency.
[0087] Such as Figure 4As shown in the figure, it is a schematic flowchart of the method for loading ocean environmental field data in the above embodiments. First, the user interface obtains the spatial coordinates of the earth display level, the window reference point, and the window resolution from the front-end device and transmits them to the back-end device. The back-end device determines whether the vertices of the window fall on the sphere. If not, the spatial range of the environmental elements to be loaded is taken as the hemisphere range. If so, according to the mapping rule between the earth display level and the screen display scale, the spatial range of the environmental elements to be loaded is calculated. Then, the data entries that meet the spatial range are queried in the metadata table. It is determined whether there is an intersection between the spatial range of the environmental elements to be loaded and the data range. If not, the process ends. If so, the storage location of the target ocean environmental field data with an intersection is found according to the metadata table. Then, according to the mapping rule between the earth display level and the downsampling rate, the sampling step is calculated, and the target ocean environmental field data is sampled and loaded according to the sampling step.
[0088] Figure 5 is one of the schematic flowcharts of the method for loading ocean environmental field data provided by the present invention. As Figure 5 shown, this method is applied to the front-end device and includes the following: Step 502, in response to the ocean environmental field data loading request, send window parameters to the back-end device; the window parameters are used to determine the screen space resolution and the spatial range of the environmental elements to be loaded. The spatial range is used to determine the storage location of the target ocean environmental field data and the data space resolution. The data space resolution and the screen space resolution are used to determine the sampling rule.
[0089] Step 504, receive the ocean environmental field adaptive resolution data returned by the back-end device; the ocean environmental field adaptive resolution data is obtained by sampling the target ocean environmental field data from the storage location according to the sampling rule.
[0090] In the above method for loading marine environmental field data, the front-end device responds to the window parameters sent in response to the marine environmental field data loading request. The back-end device determines the screen space resolution and the spatial range of the environmental elements to be loaded according to the window parameters, and then queries the storage location and data space resolution of the target marine environmental field data that meets the spatial range from the pre-constructed metadata table database. According to the data space resolution and the screen space resolution, the sampling rule is determined, so that the target marine environmental field data that meets the spatial range corresponding to the window can be dynamically and adaptively determined, and the sampling rule is dynamically and adaptively adjusted according to the relationship between the screen and the data space resolution. Then, from the storage location, the target marine environmental field data is sampled according to the sampling rule to obtain the marine environmental field adaptive resolution data, which is then transmitted back to the front-end device, thus realizing the dynamic and adaptive sampling and loading of the marine environmental field data according to the window parameters of the front-end device, reducing the amount of data processed and transmitted, and thus being able to improve the loading efficiency of the marine environmental field data. In addition, since the amount of data is reduced, the amount of data transmitted by multiple threads can also be reduced, and the visualization display speed of the front-end device for the marine environmental field data can be improved. In addition, compared with the traditional method that adopts some optimization strategies, including data compression, index optimization, and data aggregation, etc., to reduce the complexity of data processing and rendering to a certain extent, the marine environmental field data loading method in this aspect can also avoid these cumbersome and time-consuming preprocessing processes, especially in some special scenarios that require timeliness and stability, such as environmental forecasting, marine exploration, military operations, etc., further improving the loading efficiency of the marine environmental field data.
[0091] In one embodiment, the method further includes: dividing the marine environmental field adaptive resolution data into multiple groups according to the longitude or latitude corresponding to the marine environmental field adaptive resolution data; using multiple threads to parallelly perform color rendering on each group of marine environmental field adaptive resolution data and display it at the corresponding position on the map in the window.
[0092] As Figure 6 shown, it is the effect of performing color rendering on the marine environmental field adaptive resolution data and displaying it at the corresponding position on the map in the window. The longer the sampling step, the lower the resolution of the displayed image, but the loading and rendering efficiency are greatly improved. Figure 6 in represents the sampling step, Figure 6 in (a), (b), (c), (d), (e) are the color rendering effects when the sampling step is 1, 6, 12, 30, 60 respectively, Figure 6 in (f) is the legend schematic diagram.
[0093] In one embodiment, the front-end device can perform color rendering on each group of ocean environmental field adaptive resolution data according to a color matching table and a grading rule specified by the user.
[0094] In one embodiment, the grading rule can be a rule for grading according to the data of any target dimension in the ocean environmental field adaptive resolution data. For example: the grading rule can be a rule for grading according to the salinity data in the ocean environmental field adaptive resolution data. For another example: the grading rule can be a rule for grading according to the temperature data in the ocean environmental field adaptive resolution data.
[0095] In one embodiment, the grading rule can include data intervals corresponding to each level respectively. The color matching table can include color values corresponding to the end-point data of the data intervals of each level respectively.
[0096] In one embodiment, during the rendering process, it is possible to first determine the target data interval to which the data of the ocean environmental field adaptive resolution data to be rendered belongs in the target dimension, and then, according to the distances between the data of the ocean environmental field adaptive resolution data to be rendered in the target dimension and the two end-points of the target data interval respectively, perform weighted summation on the color values corresponding to the two end-points of the target data interval to obtain the target color value corresponding to the ocean environmental field adaptive resolution data to be rendered, and perform rendering on the corresponding ocean environmental field adaptive resolution data to be rendered according to the target color value.
[0097] In one embodiment, let the color matching table be , and the grading rule be , the target color value corresponding to the ocean environmental field adaptive resolution data to be rendered can be determined according to the following formula:
[0098] Wherein, represents the data of the ocean environmental field adaptive resolution data to be rendered in the target dimension. represents the target color value corresponding to the ocean environmental field adaptive resolution data to be rendered. and represent the end-point data of the target data interval. and represent and respectively corresponding color values.
[0099] For example Figure 7As shown in the figure, it is a schematic diagram of the color rendering process. First, the ocean environmental field adaptive resolution data is segmented according to latitude or precision, and then multiple threads are created to render the multiple groups of ocean environmental field adaptive resolution data obtained by segmentation in parallel. During the rendering process, Canvas rendering is performed according to the color palette and classification rules configured by the user, and then the binary Bitmap is converted into a png image. After the rendering is completed, the image is stitched onto the sphere and displayed on the map. As Figure 8 shown, during the rendering process, the Canvas rendering and the process of converting the binary Bitmap into a png image are processed in parallel in multiple threads.
[0100] The relationship between the rendering efficiency of the visual display of data and the number of threads is shown in Table 4 below. According to Table 4, it can be concluded that the method for loading ocean environmental field data provided by this application can improve the rendering efficiency. Before reaching the speed peak, the higher the number of threads, the shorter the rendering time, that is, the faster the rendering speed. The speed peak is reached when the number of threads reaches 8.
[0101] Table 4
[0102] In the above embodiments, multiple threads are used to render the color of each group of ocean environmental field adaptive resolution data in parallel and display it at the corresponding position of the map in the window, which can improve the rendering efficiency.
[0103] As Figure 9 shown, it is a schematic diagram of the overall process of the method for loading ocean environmental field data in each embodiment of this application, including the following steps: S1. Pre-build a database of the metadata table of ocean environmental field data.
[0104] S2. In response to the ocean environmental field data loading request, the front-end device determines the earth display level, window resolution, and spatial coordinates of the window reference point.
[0105] S3. The back-end device obtains the metadata information of the ocean environmental field data from the metadata table database.
[0106] S4. The back-end device obtains the ocean environmental field data adaptive block (i.e., the ocean environmental field adaptive resolution data) based on the metadata information through the layer-scale mapping relationship, combined with the window resolution and the spatial coordinates of the window reference point.
[0107] S5. In response to the return of the ocean environmental field data adaptive block and the color palette and classification rules specified by the user, the front-end device performs multi-threaded rendering on the ocean environmental field data adaptive block in combination with the color palette and classification rules to generate an image corresponding to the front-end loading.
[0108] As Figure 10As shown, it is a detailed flowchart of data loading and color rendering in the marine environmental field data loading method in each embodiment of the present application.
[0109] As Figure 11 shown, it is a schematic diagram of the interaction between the front-end device and the back-end device. The front-end device obtains the spatial coordinates of the earth display level, the window resolution, and the window reference point and sends them to the back-end device. The back-end device calculates the spatial range and the screen space resolution of the environmental elements to be loaded, queries the data that meets the spatial range, and then samples and loads the data back to the front-end device. After receiving the marine environmental field adaptive resolution data, the front-end device performs multi-threaded color rendering according to the color matching table and grading rules specified by the user.
[0110] The marine environmental field data loading device provided by the present invention will be described below. The marine environmental field data loading device described below can be correspondingly referred to the marine environmental field data loading method described above. As Figure 12 shown, the marine environmental field data loading device 1200 is set in the back-end device. The marine environmental field data loading device 1200 includes the following modules: The data acquisition module 1202 is used to acquire the window parameters sent by the front-end device in response to the marine environmental field data loading request.
[0111] The scale mapping module 1204 is used to determine the screen space resolution and the spatial range of the environmental elements to be loaded according to the window parameters.
[0112] The data query module 1206 is used to query the storage location and the data space resolution of the target marine environmental field data that meets the spatial range from the pre-constructed metadata table database.
[0113] The data sampling module 1208 is used to determine the sampling rule according to the data space resolution and the screen space resolution; sample the target marine environmental field data according to the sampling rule from the storage location to obtain the marine environmental field adaptive resolution data, and send it back to the front-end device.
[0114] In one embodiment, the window parameters include the earth display level, the spatial coordinates of the window reference point, and the window resolution. The scale mapping module 1204 is further used to determine the corresponding screen display scale according to the earth display level; determine the screen space resolution and the spatial range of the environmental elements to be loaded according to the screen display scale, the spatial coordinates of the window reference point, and the window resolution.
[0115] In one embodiment, the scale mapping module 1204 is further configured to determine the actual distance corresponding to a unit pixel on the screen according to the screen display scale and the window resolution; determine the screen space resolution according to the actual distance and the spatial coordinates of the window reference point; determine the spatial coordinates of each vertex of the window according to the screen space resolution, the window resolution, and the spatial coordinates of the window reference point; and determine the spatial range of the environmental elements to be loaded according to the spatial coordinates of each vertex of the window.
[0116] In one embodiment, the data sampling module 1208 is further configured to determine a first sampling step in a first direction according to the screen space resolution in the first direction and the data space resolution in the first direction; determine a second sampling step in a second direction according to the screen space resolution in the second direction and the data space resolution in the second direction. The data sampling module 1208 is further configured to sample the target ocean environmental field data in the first direction according to the first sampling step and in the second direction according to the second sampling step to obtain ocean environmental field adaptive resolution data; the first direction and the second direction respectively correspond to the rows and columns of the target ocean environmental field data.
[0117] In one embodiment, the data acquisition module 1202 is further configured to acquire the type of elements to be loaded and the element date sent by the front-end device in response to the ocean environmental field data loading request. The data query module 1206 is further configured to query the candidate ocean environmental field data that meets the element type and the element date from the pre-constructed metadata table database; query the storage location and the data space resolution of the target ocean environmental field data that meets the spatial range from the candidate ocean environmental field data in the pre-constructed metadata table database.
[0118] Another ocean environmental field data loading device provided by the present invention will be described below. The ocean environmental field data loading device described below can be correspondingly referred to the ocean environmental field data loading method described above. As Figure 13 shown, the ocean environmental field data loading device 1300 is disposed in the front-end device. The ocean environmental field data loading device 1300 includes the following modules: A data sending module 1302, configured to send window parameters to the back-end device in response to an ocean environmental field data loading request; the window parameters are used to determine the screen space resolution and the spatial range of the environmental elements to be loaded, the spatial range is used to determine the storage location and the data space resolution of the target ocean environmental field data, and the data space resolution and the screen space resolution are used to determine the sampling rule.
[0119] A data receiving module 1304, configured to receive the ocean environmental field adaptive resolution data returned by the back-end device; the ocean environmental field adaptive resolution data is obtained by sampling the target ocean environmental field data from the storage location according to the sampling rule.
[0120] In one embodiment, as Figure 13 shown, the marine environmental field data loading device 1300 further includes: A data rendering module 1306, configured to divide the marine environmental field adaptive resolution data into multiple groups according to the longitude or latitude corresponding to the marine environmental field adaptive resolution data; and use multiple threads to parallelly perform color rendering on each group of marine environmental field adaptive resolution data and display it at the corresponding position of the map in the window.
[0121] Figure 14 An example of a schematic physical structure diagram of an electronic device is shown as Figure 14 shown. The electronic device may include: a processor 1410, a communication interface 1420, a memory 1430, and a communication bus 1440. Among them, the processor 1410, the communication interface 1420, and the memory 1430 complete mutual communication through the communication bus 1440. The processor 1410 can call the logical instructions in the memory 1430 to execute a marine environmental field data loading method, and the method includes: obtaining window parameters sent by a front-end device in response to a marine environmental field data loading request; determining a screen space resolution and a spatial range of environmental elements to be loaded according to the window parameters; querying the storage location and data space resolution of target marine environmental field data that meets the spatial range from a pre-constructed metadata table database; determining a sampling rule according to the data space resolution and the screen space resolution; sampling the target marine environmental field data according to the sampling rule from the storage location to obtain marine environmental field adaptive resolution data, and sending it back to the front-end device. Or execute another marine environmental field data loading method, and the method includes: in response to a marine environmental field data loading request, sending window parameters to a back-end device; the window parameters are used to determine a screen space resolution and a spatial range of environmental elements to be loaded, the spatial range is used to determine the storage location and data space resolution of target marine environmental field data, and the data space resolution and the screen space resolution are used to determine a sampling rule; receiving the marine environmental field adaptive resolution data sent back by the back-end device; the marine environmental field adaptive resolution data is obtained by sampling the target marine environmental field data according to the sampling rule from the storage location.
[0122] In addition, when the logical instructions in the above-mentioned memory 1430 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs.
[0123] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute an ocean environment field data loading method provided by each of the above methods. The method includes: obtaining window parameters sent by a front-end device in response to an ocean environment field data loading request; determining the screen space resolution and the spatial range of the environmental elements to be loaded according to the window parameters; querying the storage location and data space resolution of target ocean environment field data that meets the spatial range from a pre-constructed metadata table database; determining a sampling rule according to the data space resolution and the screen space resolution; sampling the target ocean environment field data at the storage location according to the sampling rule to obtain ocean environment field adaptive resolution data, and transmitting it back to the front-end device. Or execute another ocean environment field data loading method. The method includes: in response to an ocean environment field data loading request, sending window parameters to a back-end device; the window parameters are used to determine the screen space resolution and the spatial range of the environmental elements to be loaded, the spatial range is used to determine the storage location and data space resolution of the target ocean environment field data, and the data space resolution and the screen space resolution are used to determine the sampling rule; receiving the ocean environment field adaptive resolution data transmitted back by the back-end device; the ocean environment field adaptive resolution data is obtained by sampling the target ocean environment field data at the storage location according to the sampling rule.
[0124] In another aspect, the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements a method for loading ocean environmental field data provided by the above-mentioned various methods. The method includes: obtaining window parameters sent by a front-end device in response to an ocean environmental field data loading request; determining the screen space resolution and the spatial range of environmental elements to be loaded according to the window parameters; querying the storage location and data space resolution of target ocean environmental field data that meets the spatial range from a pre-constructed metadata table database; determining a sampling rule according to the data space resolution and the screen space resolution; sampling the target ocean environmental field data at the storage location according to the sampling rule to obtain ocean environmental field adaptive resolution data, and transmitting it back to the front-end device. Or execute another method for loading ocean environmental field data. The method includes: in response to an ocean environmental field data loading request, sending window parameters to a back-end device; the window parameters are used to determine the screen space resolution and the spatial range of environmental elements to be loaded, the spatial range is used to determine the storage location and data space resolution of target ocean environmental field data, and the data space resolution and the screen space resolution are used to determine a sampling rule; receiving the ocean environmental field adaptive resolution data transmitted back by the back-end device; the ocean environmental field adaptive resolution data is obtained by sampling the target ocean environmental field data at the storage location according to the sampling rule.
[0125] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative labor.
[0126] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0127] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A method for loading marine environment field data, characterized in that: The method is applied to a backend device; the method comprises: Acquire the window parameters sent by the front-end device in response to the marine environment field data loading request; Determine the screen space resolution and the spatial range of the environmental elements to be loaded according to the viewport parameters; Querying the storage location and data spatial resolution of the target marine environment field data that conforms to the spatial range from a pre-built metadata table database; Determining a sampling rule according to the data space resolution and the screen space resolution; The target ocean environment field data is sampled from the storage location according to the sampling rule to obtain ocean environment field adaptive resolution data, and the data is transmitted back to the front-end device.
2. The method for loading marine environment field data according to claim 1, characterized in that: The window parameters include the earth display level, the spatial coordinates of the window reference point and the window resolution; The step of determining the screen space resolution and the space range of the environmental elements to be loaded according to the viewport parameters includes: Determining a corresponding screen display scale according to the earth display level; The screen spatial resolution and the spatial range of the environmental elements to be loaded are determined according to the screen display scale, the spatial coordinates of the window reference point and the window resolution.
3. The method for loading marine environment field data according to claim 2, characterized in that: The step of determining the screen spatial resolution and the spatial range of the environmental elements to be loaded according to the screen display scale, the spatial coordinates of the window reference point and the window resolution includes: Determine the actual distance corresponding to a unit pixel on the screen according to the screen display scale and the window resolution; Determine the screen space resolution according to the actual distance and the space coordinates of the window reference point; Determine the spatial coordinates of each vertex of the window according to the screen space resolution, the window resolution and the spatial coordinates of the window reference point; The spatial range of the environmental elements to be loaded is determined according to the spatial coordinates of each vertex of the window.
4. The method for loading marine environment field data according to claim 1, characterized in that: The determining of a sampling rule according to the data space resolution and the screen space resolution includes: Determining a first sampling step length in the first direction according to the screen space resolution in the first direction and the data space resolution in the first direction; determining a second sampling step length in the second direction according to the screen space resolution in the second direction and the data space resolution in the second direction; The step of sampling the target ocean environment field data according to the sampling rule to obtain ocean environment field adaptive resolution data includes: The target ocean environment field data is sampled from the first direction according to the first sampling step size, and from the second direction according to the second sampling step size to obtain ocean environment field adaptive resolution data; the first direction and the second direction correspond to the rows and columns of the target ocean environment field data, respectively.
5. The method for loading marine environment field data according to any one of claims 1 to 4, characterized in that: The method further comprises: Acquire the element type and element date requested to be loaded sent by the front-end device in response to the marine environment field data loading request; Querying the candidate marine environment field data that meets the element type and the element date from the pre-constructed metadata table database; The step of querying the storage location and data spatial resolution of the target marine environment field data that conforms to the spatial range from the pre-built metadata table database includes: The storage location and data spatial resolution of the target ocean environment field data that meets the spatial range in the selected ocean environment field data are queried from the pre-constructed metadata table database.
6. A method for loading marine environment field data, characterized in that: The method is applied to a front-end device; the method comprises: In response to a request to load ocean environment field data, window parameters are sent to a backend device; the window parameters are used to determine the screen spatial resolution and the spatial range of the environmental elements to be loaded, the spatial range is used to determine the storage location and data spatial resolution of the target ocean environment field data, and the data spatial resolution and the screen spatial resolution are used to determine a sampling rule; The ocean environment field adaptive resolution data transmitted back by the back-end device is received; the ocean environment field adaptive resolution data is obtained by sampling the target ocean environment field data from the storage location according to the sampling rule.
7. The method for loading marine environment field data according to claim 6, characterized in that: The method further comprises: Dividing the marine environment field adaptive resolution data into multiple groups according to the longitude or latitude corresponding to the marine environment field adaptive resolution data; Multiple threads are used to perform color rendering on each group of ocean environment field adaptive resolution data in parallel and display them at the corresponding position of the map in the window.
8. A marine environment field data loading device, characterized in that: Set in the backend device, including: A data acquisition module, used to acquire the window parameters sent by the front-end device in response to the marine environment field data loading request; A scale mapping module, used for determining the screen space resolution and the spatial range of the environmental elements to be loaded according to the window parameters; A data query module, used to query the storage location and data spatial resolution of the target marine environment field data that conforms to the spatial range from a pre-built metadata table database; The data sampling module is used to determine the sampling rules according to the data space resolution and the screen space resolution; sample the target ocean environment field data from the storage location according to the sampling rules, obtain the ocean environment field adaptive resolution data, and transmit it back to the front-end device.
9. A marine environment field data loading device, characterized in that: Set in the front-end equipment, including: A data sending module, used to send window parameters to a back-end device in response to a request to load ocean environment field data; the window parameters are used to determine the screen spatial resolution and the spatial range of the environmental elements to be loaded, the spatial range is used to determine the storage location and data spatial resolution of the target ocean environment field data, and the data spatial resolution and the screen spatial resolution are used to determine a sampling rule; The data receiving module is used to receive the ocean environment field adaptive resolution data transmitted back by the back-end device; the ocean environment field adaptive resolution data is obtained by sampling the target ocean environment field data from the storage location according to the sampling rule.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the method for loading marine environment field data as described in any one of claims 1 to 5, or the method for loading marine environment field data as described in claim 6 or 7 is implemented.
11. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for loading marine environment field data as described in any one of claims 1 to 5, or the method for loading marine environment field data as described in claim 6 or 7 is implemented.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for loading marine environment field data as described in any one of claims 1 to 5, or the method for loading marine environment field data as described in claim 6 or 7 is implemented.
Citation Information
Patent Citations
Inshore oceanic environment data monitoring adaptive sampling method
CN105677770A
A three-dimensional data encoding and storing method for massive ocean environment data management
CN109885572A
Dynamic rendering method, device and equipment for massive ocean element data and medium
CN116028737A
System and method for static and dynamic positioning of marine structure by using real-time monitoring of marine environment
WO2013154242A1
Processing method and system for displaying complete map boundary and related apparatus
WO2024183611A1