Method, apparatus, electronic device, and storage medium for loading ocean environmental field data

Through the dynamic adaptive marine environment field data loading method, the sampling rules are determined using window parameters and metadata table databases, and the efficient loading and rendering of marine environment field data is achieved, solving the problem of low efficiency of traditional loading methods, especially in scenarios with high timeliness, which significantly improves data loading and rendering efficiency.

CN120086423BActive Publication Date: 2025-07-11AEROSPACE INFORMATION RES INST CAS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510565774.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-30
Publication Date
2025-07-11
Estimated Expiration
2045-04-30

AI Technical Summary

Technical Problem

The traditional marine environment field data loading method is inefficient, resulting in slow loading speed when the data volume is huge, which cannot meet the needs of timeliness and stability.

Method used

By obtaining window parameters, determine the screen spatial resolution and spatial range of environmental elements, query the storage location and resolution of the target data from the pre-constructed metadata table database, determine the sampling rules based on the resolution, and dynamically adaptively sample the marine environmental field data to obtain the adaptive resolution data, and return it to the front-end device.

Benefits of technology

It improves the loading efficiency of marine environmental field data, reduces data processing and transmission volume, and avoids tedious preprocessing processes. Especially in high-time scenarios such as environmental forecasting and military operations, the data loading and rendering efficiency is significantly improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120086423B_ABST
    Figure CN120086423B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, electronic device and storage medium for loading ocean environmental field data, relating to the technical field of ocean environmental data visualization. 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 the data space resolution of target ocean environmental field data meeting 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 the data back to the front-end device. By adopting this method, the efficiency of loading ocean environmental field data can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of visualization of marine environmental data, 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 in 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 change 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 traditional data loading methods load marine environmental field data with a large data volume, 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:

[0006] Obtain window parameters sent by a front-end device in response to a marine environmental field data loading request;

[0007] Determine the screen space resolution and the spatial range of environmental elements to be loaded according to the window parameters;

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

[0009] Determine a sampling rule according to the data space resolution and the screen space resolution;

[0010] At the storage location, sample the target ocean environmental field data according to the sampling rule to obtain ocean environmental field adaptive resolution data, and transmit it back to the front-end device.

[0011] 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; the determining the screen space resolution and the spatial range of the environmental elements to be loaded according to the window parameters includes:

[0012] Determine the corresponding screen display scale according to the earth display level;

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

[0014] According to an ocean environmental field data loading method provided by the present invention, the 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:

[0015] Determine the actual distance corresponding to a unit pixel in the screen according to the screen display scale and the window resolution;

[0016] Determine the screen space resolution according to the actual distance and the spatial coordinates of the window reference point;

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

[0018] Determine the spatial range of the environmental elements to be loaded according to the spatial coordinates of each vertex of the window.

[0019] According to an ocean environmental field data loading method provided by the present invention, the determining the sampling rule according to the data space resolution and the screen space resolution includes:

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

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

[0022] The sampling the target ocean environmental field data according to the sampling rule to obtain ocean environmental field adaptive resolution data includes:

[0023] Sample the target ocean environmental field data in the first direction according to the first sampling step size and in the second direction according to the second sampling step size 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.

[0024] According to an ocean environmental field data loading method provided by the present invention, the method further includes:

[0025] Obtain the element type and element date requested to be loaded in response to the ocean environmental field data loading request sent by the front-end device;

[0026] Query the candidate ocean environmental field data that meets the element type and the element date from the pre-constructed metadata table database;

[0027] The querying 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 includes:

[0028] 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 pre-constructed metadata table database.

[0029] In a second aspect, the present invention provides an ocean environmental field data loading method, which is applied to a front-end device; the method includes the following steps:

[0030] In response to an ocean 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 ocean environmental field data, and the data spatial resolution and the screen spatial resolution are used to determine the sampling rule;

[0031] 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 at the storage location according to the sampling rule.

[0032] According to an ocean environmental field data loading method provided by the present invention, the method further includes:

[0033] According to the longitude or latitude corresponding to the ocean environmental field adaptive resolution data, divide the ocean environmental field adaptive resolution data into multiple groups;

[0034] Use multiple threads to parallelly perform color rendering on each group of ocean environmental field adaptive resolution data and display it at the corresponding position of the map in the window.

[0035] In a third aspect, the present invention provides an ocean environmental field data loading device, which is arranged in a backend device and includes the following modules:

[0036] A data acquisition module, configured to acquire window parameters sent by a front-end device in response to an ocean environmental field data loading request;

[0037] A scale mapping module, configured to determine a screen space resolution and a spatial range of environmental elements to be loaded according to the window parameters;

[0038] A data query module, configured to query 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;

[0039] A data sampling module, configured to determine a sampling rule according to the data space resolution and the screen space resolution; sample the target ocean environmental field data from the storage location according to the sampling rule to obtain ocean environmental field adaptive resolution data, and transmit it back to the front-end device.

[0040] In a fourth aspect, the present invention provides an ocean environmental field data loading device, which is arranged in a front-end device and includes the following modules:

[0041] A data sending module, configured to send window parameters to a backend device in response to an ocean environmental field data loading request; 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 ocean environmental field data, and the data space resolution and the screen space resolution are used to determine a sampling rule;

[0042] A data receiving module, configured to receive the ocean environmental field adaptive resolution data transmitted back by the backend 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.

[0043] 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, wherein when the processor executes the computer program, the ocean environmental field data loading method described in the first aspect or the second aspect is implemented.

[0044] In a sixth aspect, the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the ocean environmental field data loading method described in the first aspect or the second aspect is implemented.

[0045] In a seventh aspect, the present invention further provides a computer program product, including a computer program, which when executed by a processor, implements the method for loading ocean environmental field data as described in the first aspect or the second aspect above.

[0046] The method, device, electronic device, non-transitory computer-readable storage medium, and computer program product for loading ocean environmental field data provided by the present invention. The front-end device responds to the window parameters sent in the ocean 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 ocean 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 ocean 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 ocean environmental field data is sampled according to the sampling rule to obtain ocean environmental field adaptive resolution data, and the data is transmitted back to the front-end device, thus realizing the dynamic and adaptive sampling and loading of ocean environmental field data according to the window parameters of the front-end device, reducing the amount of data for data processing and transmission, and thus being able to improve the loading efficiency of ocean 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 method for loading ocean environmental field data in this aspect can also avoid these cumbersome and time-consuming preprocessing processes, especially in some special scenarios that emphasize timeliness and stability, such as environmental forecasting, offshore exploration, military operations, etc., further improving the loading efficiency of ocean environmental field data. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0048] Figure 1 is one of the flow schematic diagrams of the method for loading ocean environmental field data provided by the present invention.

[0049] Figure 2 is a schematic diagram of the metadata table database provided by the present invention.

[0050] Figure 3 is a reference configuration of the device for executing the method for loading ocean environmental field data provided by the present invention.

[0051] Figure 4 It is the second schematic flowchart of the method for loading ocean environmental field data provided by the present invention.

[0052] Figure 5 It is the third schematic flowchart of the method for loading ocean environmental field data provided by the present invention.

[0053] Figure 6 It is the schematic diagram of the color rendering effect in the method for loading ocean environmental field data provided by the present invention; wherein, Figure 6 (a), (b), (c), (d), and (e) in it are respectively the color rendering effects when the sampling step sizes are 1, 6, 12, 30, and 60, Figure 6 (f) in it is the schematic diagram of the legend.

[0054] Figure 7 It is the first schematic flowchart of the color rendering provided by the present invention.

[0055] Figure 8 It is the second schematic flowchart of the color rendering provided by the present invention.

[0056] Figure 9 It is the fourth schematic flowchart of the method for loading ocean environmental field data provided by the present invention.

[0057] Figure 10 It is the fifth schematic flowchart of the method for loading ocean environmental field data provided by the present invention.

[0058] Figure 11 It is the sixth schematic flowchart of the method for loading ocean environmental field data provided by the present invention.

[0059] Figure 12 It is the first schematic structural diagram of the device for loading ocean environmental field data provided by the present invention.

[0060] Figure 13 It is the second schematic structural diagram of the device for loading ocean environmental field data provided by the present invention.

[0061] Figure 14 It is the schematic structural diagram of the electronic device provided by the present invention. Detailed implementation manners

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

[0063] Below in conjunction withFigures 1-14 Disclosed are a method, apparatus, electronic device, non-transitory computer-readable storage medium, and computer program product for loading marine environmental field data according to the present invention.

[0064] Figure 1 FIG. 5 is one of the flow diagrams of the method for loading marine environmental field data provided by the present invention. As Figure 1 shown, this method is applied to a backend device and includes the following:

[0065] Step 102, obtain window parameters sent by a front-end device in response to a marine environmental field data loading request.

[0066] Among them, the window refers to the interface in the front-end device for displaying marine environmental field data.

[0067] 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 map of the earth and the richer the details displayed; the lower the earth display level, the lower the resolution of the map of the earth and the fewer the details displayed. The window reference point is a point selected in the window for use as a coordinate reference. For example: the window reference point may be the center point of the window. The spatial coordinates refer to the coordinates in the actual earth space. For example: the spatial coordinates may be longitude and latitude coordinates on the earth. The window resolution refers to the number of pixels in the length direction and the width direction in the window.

[0068] In one embodiment, the user triggers a marine environmental field data loading request through a software interface deployed on the front-end device. The front-end device may, in response to the marine 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.

[0069] Step 104, determine the screen space resolution and the spatial range of the environmental elements to be loaded according to the window parameters.

[0070] Among them, the screen space resolution represents the spatial range corresponding to a unit pixel in the screen. The spatial range of the environmental elements to be loaded refers to the spatial range where the marine environmental elements to be displayed in the window are located.

[0071] In one embodiment, the screen space resolution may be the longitude and latitude range corresponding to a unit pixel in the screen. The spatial range of the environmental elements to be loaded may be the longitude and latitude range of the environmental elements to be loaded.

[0072] 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 indicates that the vertex coordinates of the viewport fall on the skybox outside the sphere. At this time, the longitude and latitude coordinates of each vertex of the viewport are corrected to the four-corner coordinates of the hemisphere currently displayed by the viewport, obtaining the corrected spatial range, and steps 106 and subsequent steps are executed based on the corrected spatial range.

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

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

[0075] 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 a 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 storage 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, etc. 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.

[0076] 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 represent the metadata in string form, and NaN is used to represent the metadata in digital form, such as integer type and floating-point type.

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

[0078] In one embodiment, the front-end device may send user requirements and window parameters to the back-end device in response to a request for loading ocean environmental field data. The back-end device may query candidate ocean environmental field data that meets the user requirements from a pre-constructed metadata table database. Then, from the metadata table database, it queries the storage location and data spatial resolution of the target ocean environmental field data that meets the spatial range among the candidate ocean environmental field data. In one embodiment, the user requirements may include the type of feature and the feature date requested for loading.

[0079] In one embodiment, the back-end device may latitude and longitude range of the candidate ocean environmental field data with the latitude and longitude range of the environmental feature to be loaded. If the latitude and longitude range of a certain data entry contains the latitude and longitude range of the environmental feature to be loaded, then select this data entry as the target ocean environmental field data. If the latitude and longitude ranges of all entries do not completely contain the latitude and longitude range of the environmental feature to be loaded, then calculate the matching degree of the latitude and longitude ranges , and then select the entry data with the largest value as the target ocean environmental field data.

[0080]

[0081] Step 108: Determine the sampling rule according to the data spatial resolution and the screen spatial resolution.

[0082] Step 110: Sample the target ocean environmental field data from the storage location according to the sampling rule to obtain ocean environmental field adaptive resolution data, and send it back to the front-end device.

[0083] In one embodiment, the back-end device may determine the sampling step according to the ratio of the screen spatial resolution to the data spatial resolution. Sample the target ocean environmental field data from the storage location according to the sampling step to obtain ocean environmental field adaptive resolution data, and send it back to the front-end device.

[0084] In one embodiment, the server configuration of the back-end device used in this application is as Figure 3 shown, and one can refer to this configuration to select a machine to execute the method in this application.

[0085] 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 for data processing and transmission, 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 in 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 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 of the present application avoids these cumbersome and time-consuming preprocessing processes, especially in some special scenarios that emphasize timeliness and stability, such as environmental forecasting, offshore exploration, military operations, etc., improving the loading efficiency and rendering efficiency of the marine environmental field data.

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

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

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

[0089] 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 longitudinally classified 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 original vector data scale recommended 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.

[0090] Table 1

[0091]

[0092] In one embodiment, the backend device can determine the screen spatial resolution and the spatial coordinates of each vertex of the window according to the screen display scale, the spatial coordinates of the window reference point, and the window resolution, and determine the spatial range of the environmental elements to be loaded according to the spatial coordinates of each vertex of the window. Among them, each vertex of the window can be the four corner points of the window. The spatial coordinates of each vertex of the window can be the longitude and latitude coordinates of the four corner points of the window.

[0093] 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 window resolution, and then determine the screen spatial resolution and the spatial coordinates of each vertex of the window according to the actual distance, the spatial coordinates of the window reference point, and the window resolution, and determine the spatial range of the environmental elements to be loaded according to the spatial coordinates of each vertex of the window.

[0094] In the above embodiments, according to the earth display level, the corresponding screen display scale is determined. According to the screen display scale, the spatial coordinates of the window reference point, and the window 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.

[0095] 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 window reference point, and the window resolution includes: determining the actual distance corresponding to a unit pixel in the screen according to the screen display scale and the window resolution; determining the screen spatial resolution according to the actual distance and the spatial coordinates of the window reference point; determining the spatial coordinates of each vertex of the window according to the screen spatial resolution, the window resolution, and the spatial coordinates of the window reference point; and determining the spatial range of the environmental elements to be loaded according to the spatial coordinates of each vertex of the window.

[0096] In one embodiment, the actual distance corresponding to a unit pixel and the longitude and latitude coordinates of the window reference point are used to determine the longitude and latitude range (i.e., screen space resolution) corresponding to a unit pixel.

[0097] In one embodiment, the longitude and latitude range (i.e., screen space resolution) corresponding to a unit pixel can be determined according to the following formula:

[0098]

[0099] 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 longitude and latitude coordinates of the window reference point.

[0100] In one embodiment, determining the spatial coordinates of each vertex of the window according to the screen space resolution, window resolution, and spatial coordinates of the window reference point includes: determining the offsets of the spatial coordinates of each vertex of the window relative to the spatial coordinates of the window reference point according to the screen space resolution and window resolution, and then determining the spatial coordinates of each vertex of the window according to the spatial coordinates of the window reference point and the offsets corresponding to each vertex. and the spatial coordinates of each vertex of the window are determined.

[0101] In one embodiment, the spatial coordinates of each vertex of the window can be determined according to the following formula:

[0102]

[0103] where, respectively represent the longitude and latitude coordinates of each vertex of the window. represents the longitude and latitude 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.

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

[0105] In one embodiment, according to the data spatial resolution and the screen spatial resolution, a sampling rule is determined, including: determining a first sampling step in a first direction according to the screen spatial resolution in the first direction and the data spatial resolution in the first direction; determining a second sampling step in a second direction according to the screen spatial resolution in the second direction and the data spatial 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, 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.

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

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

[0108] In one embodiment, the first sampling step and the second sampling step can be determined according to the following formula:

[0109]

[0110] 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 space resolution in the y direction. Represents the data space resolution in the x direction. Represents the data space resolution in the y direction.

[0111] In one embodiment, the target ocean environmental field data can be sampled according to the following formula:

[0112]

[0113] Wherein, Represents the self - 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).

[0114] 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. According to 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.

[0115] Table 2

[0116]

[0117] The effect of reducing the amount of data generated by the self - 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. According to 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 front - end device for the ocean environmental field data can be greatly improved, and the amount of data transmitted by multiple threads can be reduced.

[0118] Table 3

[0119]

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

[0121] 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 in the candidate ocean environmental field data from the pre-constructed metadata table database.

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

[0123] In the above embodiments, 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, and querying the storage location and data space resolution of the target ocean environmental field data that meets the spatial range in the candidate ocean environmental field data 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 filtered 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.

[0124] 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 of the earth display level - 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 of the earth display level - downsampling rate, the sampling step is calculated, and the target ocean environmental field data is sampled and loaded according to the sampling step.

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

[0126] 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, and the spatial range is used to determine the storage location and data space resolution of the target ocean environmental field data. The data space resolution and the screen space resolution are used to determine the sampling rule.

[0127] 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 at the storage location according to the sampling rule.

[0128] 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 can be 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 for data processing and transmission, 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.

[0129] In one embodiment, the method further includes: splitting 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 of the map in the window.

[0130] 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 of 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 steps are 1, 6, 12, 30, 60 respectively, Figure 6 in (f) is the legend schematic diagram.

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

[0132] 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. Another example: the grading rule can be a rule for grading according to the temperature data in the ocean environmental field adaptive resolution data.

[0133] 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 endpoint data of the data intervals of each level respectively.

[0134] 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 under the target dimension, and then, according to the distances between the data of the ocean environmental field adaptive resolution data to be rendered under the target dimension and the two endpoints of the target data interval respectively, perform weighted summation on the color values corresponding to the two endpoints 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.

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

[0136]

[0137] Wherein, represents the data of the ocean environmental field adaptive resolution data to be rendered under the target dimension. represents the target color value corresponding to the ocean environmental field adaptive resolution data to be rendered. and represent the endpoint data of the target data interval. and represent and the color values corresponding to respectively.

[0138] For example Figure 7As shown, 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 sets 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.

[0139] 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 adopting 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.

[0140] Table 4

[0141]

[0142] In the above embodiments, multiple threads are used to perform color rendering on each set of ocean environmental field adaptive resolution data in parallel and display it at the corresponding position on the map in the window, which can improve the rendering efficiency.

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

[0144] S1. Pre-build a database of the ocean environmental field data metadata table.

[0145] S2. The front-end device responds to the ocean environmental field data loading request and determines the spatial coordinates of the Earth display level, window resolution, and window reference point.

[0146] S3. The back-end device obtains the metadata information of the ocean environmental field data in the metadata table database.

[0147] 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 by combining the window resolution and the spatial coordinates of the window reference point through the level-scale mapping relationship.

[0148] S5. The front-end device responds to the return of the ocean environmental field data adaptive block and the color palette and classification rules specified by the user, and performs multi-threaded rendering on the ocean environmental field data adaptive block in combination with the color palette and classification rules to generate the corresponding image for front-end loading.

[0149] As Figure 10 shown, it is a detailed process schematic diagram of data loading and color rendering in the marine environmental field data loading method in each embodiment of the present application.

[0150] As Figure 11 shown, it is an interaction schematic diagram between the front-end device and the back-end device. The front-end device obtains the spatial coordinates of the earth display level, window resolution, and window reference point and sends them to the back-end device. The back-end device calculates the spatial range and 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.

[0151] Next, the marine environmental field data loading device provided by the present invention will be described. 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:

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

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

[0154] The data query module 1206 is used to query 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.

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

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

[0157] In one embodiment, the scale mapping module 1204 is further configured to 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; and determine the spatial range of the environmental elements to be loaded according to the spatial coordinates of each vertex of the window.

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

[0159] 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 in the candidate ocean environmental field data from the pre-constructed metadata table database.

[0160] 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 mutually referred to with 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:

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

[0162] A data receiving module 1304, configured to receive the ocean environmental field adaptive resolution data transmitted back by a backend device; the ocean environmental field adaptive resolution data is obtained by sampling target ocean environmental field data according to a sampling rule from a storage location.

[0163] In one embodiment, as Figure 13 shown, the ocean environmental field data loading device 1300 further includes:

[0164] A data rendering module 1306, configured to divide the ocean environmental field adaptive resolution data into multiple groups according to the longitude or latitude corresponding to the ocean environmental field adaptive resolution data; and use multiple threads to perform color rendering on each group of the ocean environmental field adaptive resolution data in parallel and display it at the corresponding position of the map in the window.

[0165] Figure 14 An example of a schematic physical structure diagram of an electronic device is shown in Figure 14 As 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 communication with each other through the communication bus 1440. The processor 1410 may call logic instructions in the memory 1430 to execute an ocean environmental field data loading method, and 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 according to the sampling rule from the storage location to obtain ocean environmental field adaptive resolution data, and transmitting it back to the front-end device. Or execute another ocean environmental field data loading method, and the method includes: in response to an ocean environmental field data loading request, sending window parameters to a backend 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 backend device; the ocean environmental field adaptive resolution data is obtained by sampling the target ocean environmental field data according to the sampling rule from the storage location.

[0166] 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 this 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 according to the 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.

[0167] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program that 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 the above-mentioned various 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 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 according to the sampling rule from the storage location to obtain ocean environment field adaptive resolution data, and sending 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 environmental elements to be loaded, the spatial range is used to determine the storage location and data space resolution of 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 sent back by the back-end device; the ocean environment field adaptive resolution data is obtained by sampling the target ocean environment field data according to the sampling rule from the storage location.

[0168] In another aspect, the present invention also 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 according to the sampling rule from the storage location 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 according to the sampling rule from the storage location.

[0169] 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 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. Those of ordinary skill in the art can understand and implement it without creative efforts.

[0170] 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 such an understanding, the above technical solution, 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 disc, 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.

[0171] 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 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 make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for loading marine environmental field data, characterized in that, The method is applied to a backend device; the method includes: Obtaining window parameters sent by a front-end device in response to a marine environment field data loading request; Determining the screen space resolution and the spatial range of environmental elements to be loaded according to the window parameters; the screen space resolution is the longitude and latitude range corresponding to a unit pixel in the screen; the spatial range of environmental elements to be loaded is the longitude and latitude range of the environmental elements to be loaded; Querying the storage location and data space resolution of target marine environment field data that meets the spatial range from a pre-constructed metadata table database; the data space resolution is the longitude and latitude range corresponding to a unit data point in the marine environment field data; Determining a sampling rule according to the data space resolution and the screen space resolution; Sampling the target marine environment field data according to the sampling rule from the storage location to obtain marine environment field adaptive resolution data, and transmitting it back to the front-end device; The determining the sampling rule according to the data space resolution and the screen space resolution includes: Determining a 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; Determining a 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; The sampling the target marine environment field data according to the sampling rule to obtain marine environment field adaptive resolution data includes: Sampling the target marine environment field data from the first direction according to the first sampling step and from the second direction according to the second sampling step to obtain marine environment field adaptive resolution data; the first direction and the second direction respectively correspond to the rows and columns of the target marine environment field data.

2. The method for loading marine environmental field data according to claim 1, wherein The window parameters include the earth display level, the spatial coordinates of the window reference point, and the window resolution; The determining the screen space resolution and the spatial range of 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 environmental elements to be loaded according to the screen display scale, the spatial coordinates of the window reference point, and the window resolution.

3. The method for loading marine environmental field data according to claim 2, wherein The determining the screen space resolution and the spatial range of environmental elements to be loaded according to the screen display scale, the spatial coordinates of the window reference point, and the window resolution includes: Determining the actual distance corresponding to a unit pixel in the screen according to the screen display scale and the window resolution; Determining the screen space resolution according to the actual distance and the spatial coordinates of the window reference point; Determining 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; Determining the spatial range of environmental elements to be loaded according to the spatial coordinates of each vertex of the window.

4. The method for loading marine environmental field data according to any one of claims 1 to 3, characterized in that The method further includes: Obtain the feature type and feature date requested to be loaded sent by the front-end device in response to the marine environment field data loading request; Query the candidate marine environment field data that meets the feature type and the feature date from the pre-constructed metadata table database; The querying of the storage location and data spatial resolution of the target marine environment 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 environment field data that meets the spatial range among the candidate marine environment field data from the pre-constructed metadata table database.

5. A method for loading marine environmental field data, characterized in that, The method is applied to the front-end device; the method includes: In response to the marine environment 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 environment field data, the data spatial resolution and the screen spatial resolution are used to determine the sampling rule; the screen spatial resolution is the longitude and latitude range corresponding to a unit pixel in the screen; the spatial range of the environmental elements to be loaded is the longitude and latitude range of the environmental elements to be loaded; the data spatial resolution is the longitude and latitude range corresponding to a unit data point in the marine environment field data; the sampling rule is determined by the following method: according to the screen spatial resolution in the first direction and the data spatial resolution in the first direction, determine the first sampling step in the first direction; according to the screen spatial resolution in the second direction and the data spatial resolution in the second direction, determine the second sampling step in the second direction; Receive the marine environment field adaptive resolution data returned by the back-end device; the marine environment field adaptive resolution data is obtained by sampling the target marine environment field data from the storage location according to the sampling rule; The sampling of the target marine environment field data according to the sampling rule includes: sampling the target marine environment field data from the first direction according to the first sampling step and from the second direction according to the second sampling step to obtain the marine environment field adaptive resolution data; the first direction and the second direction respectively correspond to the rows and columns of the target marine environment field data.

6. The method for loading marine environmental field data according to claim 5, characterized in that The method further includes: Slice 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; Use multiple threads to parallelly perform color rendering on each group of marine environment field adaptive resolution data and display it at the corresponding position of the map in the window.

7. An apparatus for loading marine environmental field data, characterized in that, Set in the back-end device, including: A data acquisition module, configured 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, configured to determine the screen space resolution and the spatial range of environmental elements to be loaded according to the window parameters; the screen space resolution is the longitude and latitude range corresponding to a unit pixel in the screen; the spatial range of environmental elements to be loaded is the longitude and latitude range of the environmental elements to be loaded; A data query module, configured to query the storage location and data space resolution of target ocean environmental field data that meet the spatial range from a pre-constructed metadata table database; the data space resolution is the longitude and latitude range corresponding to a unit data point in the ocean environmental field data; A data sampling module, configured to determine a sampling rule according to the data space resolution and the screen space resolution; sample the target ocean environmental field data according to the sampling rule from the storage location to obtain ocean environmental field adaptive resolution data, and send it back to the front-end device; the determining of the sampling rule according to the data space resolution and the screen space resolution includes: determining a 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; determining a 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; the sampling of the target ocean environmental field data according to the sampling rule to obtain ocean environmental field adaptive resolution data includes: 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.

8. An apparatus for loading marine environmental field data, characterized in that, It is set in the front-end device and includes: A data sending module, 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 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, the data space resolution and the screen space resolution are used to determine the sampling rule; the screen space resolution is the longitude and latitude range corresponding to a unit pixel in the screen; the spatial range of environmental elements to be loaded is the longitude and latitude range of the environmental elements to be loaded; the data space resolution is the longitude and latitude range corresponding to a unit data point in the ocean environmental field data; the sampling rule is determined in the following manner: determining a 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; determining a 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; A data receiving module, configured to receive the ocean environment field adaptive resolution data returned by the backend 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; the sampling of the target ocean environment field data according to the sampling rule includes: sampling the target ocean environment field data in the first direction according to the first sampling step size and in the second direction according to the second sampling step size to obtain the ocean environment field adaptive resolution data; the first direction and the second direction respectively correspond to the rows and columns of the target ocean environment field data.

9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the ocean environment field data loading method according to any one of claims 1 to 4, or the ocean environment field data loading method according to claim 5 or 6.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the ocean environment field data loading method according to any one of claims 1 to 4, or the ocean environment field data loading method according to claim 5 or 6.

11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the ocean environment field data loading method according to any one of claims 1 to 4, or the ocean environment field data loading method according to claim 5 or 6.

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