A raster data visualization method and system based on three-dimensional earth model

By creating Canvas elements and filling background color, and creating texture maps with global vector data, the problem of high complexity of recreation of three-dimensional earth model when data resolution changes in the existing technology is solved, and efficient raster data visualization and interactivity are achieved.

CN114387418BActive Publication Date: 2025-05-02SUN YAT SEN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111680312.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2025-05-02
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

In the prior art, when the input data resolution changes, it is necessary to recreate the three-dimensional earth model, resulting in high complexity and slow import speed, and the preprocessed information data cannot be displayed directly.

Method used

By receiving the raster data file uploaded by the user, creating Canvas elements and filling the background color, combining global vector data to create texture maps containing national boundaries, building an interactive three-dimensional earth model based on the initial three-dimensional earth model, and displaying grid data in response to user operations.

Benefits of technology

It realizes raster data visualization without recreating the three-dimensional earth model when the data resolution changes, improves the efficiency and interactivity of data visualization, and can directly display information data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114387418B_ABST
    Figure CN114387418B_ABST
Patent Text Reader

Abstract

The present invention discloses a raster data visualization method and system based on a three-dimensional earth model, including: receiving a raster data file uploaded by a user, and performing data processing on the raster data file to obtain a plurality of grid point data; creating a Canvas element according to the plurality of grid point data and filling the background color of each grid point to obtain a data heat map; creating a texture map containing national boundaries based on the created initial three-dimensional earth model in combination with the data heat map and global vector data to obtain a corresponding interactive three-dimensional earth model; and displaying the corresponding grid point data on the interactive three-dimensional earth model in response to user operations. The present invention uses the grid point data corresponding to the raster data file to create a Canvas element and fill the background color thereof, and then combines the global vector data to obtain a texture map of the interactive three-dimensional earth model, and displays the corresponding grid point data in response to user operations to realize the visualization of the raster data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data visualization, and in particular to a raster data visualization method and system based on a three-dimensional earth model. Background Art

[0002] With the rapid development of network communication technology and multimedia technology, a concept of a three-dimensional earth with multiple resolutions that can be embedded with geographic data has emerged. For a long time, people have established many visualization models based on the existing computer development level for different research backgrounds and application purposes, according to various data types, algorithms and mathematical theories, to display the earth, the earth's environment and activities on the earth in three dimensions to achieve data visualization. In the prior art, based on the elevation data and image data after data layering and block processing, a triangulated three-dimensional earth model with different resolutions is created, and the pre-processed information data is drawn into an image and displayed in a scene with the above-mentioned triangulated three-dimensional earth model as the background. However, the above-mentioned triangulated three-dimensional earth model is created by an irregular triangulated network. For information data with different resolutions, different three-dimensional earth models need to be created and imported. In addition, for high-resolution three-dimensional earth models, the import speed may be slow. Furthermore, the image drawn from the pre-processed information data is a model view matrix, not an image file. An algorithm is required to correctly place the model view matrix on the three-dimensional earth model, and it cannot be displayed directly. Summary of the invention

[0003] The present invention provides a raster data visualization method and system based on a three-dimensional earth model to solve the technical problem of high complexity in recreating a three-dimensional earth model when the resolution of input data changes.

[0004] In order to solve the above technical problems, an embodiment of the present invention provides a raster data visualization method based on a three-dimensional earth model, comprising:

[0005] Receiving a raster data file uploaded by a user, and performing data processing on the raster data file to obtain a plurality of grid point data;

[0006] A Canvas element is created according to the plurality of grid point data; wherein the resolution of the Canvas element is determined according to the corresponding plurality of grid point data, the Canvas element is provided with the same number of grid points as the number of the grid point data, and each grid point corresponds to one grid point data;

[0007] According to a preset filling rule, each grid point of the Canvas element is filled with a background color to obtain a data heat map;

[0008] Based on the created initial three-dimensional earth model, the data heat map and global vector data are combined to create a texture map containing national boundaries to obtain a corresponding interactive three-dimensional earth model;

[0009] In response to the user's operation, grid point data corresponding to the operation is displayed on the interactive three-dimensional earth model.

[0010] Furthermore, the background color is filled for each grid point of the Canvas element according to the preset filling rule to obtain a data heat map, specifically:

[0011] Performing dimensionality reduction processing on the plurality of grid point data to obtain digital features of the plurality of grid point data;

[0012] Based on the digital feature and the color code selected by the user, combined with a preset creation rule, a Hex code list having multiple Hex codes is created; wherein one Hex code corresponds to one color;

[0013] According to the correspondence between the grid point data and the Hex code, each grid point of the Canvas element is filled with a background color in turn to obtain a data heat map.

[0014] Furthermore, the initial three-dimensional earth model created is combined with the data heat map and global vector data to create a texture map containing national boundaries to obtain a corresponding interactive three-dimensional earth model, specifically:

[0015] According to the resolution of the Canvas element, create the first echarts object;

[0016] Combine the global vector data, and set the data heat map as the background of the first echarts object to obtain a second echarts object, and create a texture map containing national boundaries based on the second echarts object;

[0017] Based on the created initial three-dimensional earth model, constructing a three-dimensional earth model containing national boundaries according to the texture map;

[0018] A camera, a renderer and an orbit controller are added to the three-dimensional earth model to obtain a corresponding interactive three-dimensional earth model.

[0019] Furthermore, in response to the user's operation, the grid data corresponding to the operation is displayed on the interactive three-dimensional earth model, specifically:

[0020] In response to a double-click operation by the user, determining a first grid point where the mouse is located, marking the country where the first grid point is located, and displaying first grid point data corresponding to the first grid point on the interactive three-dimensional earth model;

[0021] Alternatively, in response to the user's input of longitude and latitude operations, a second grid point corresponding to the camera's initial position and a third grid point corresponding to the camera's target position are determined to create a tracking animation of the camera, and third grid point data corresponding to the third grid point are displayed on the interactive three-dimensional earth model.

[0022] Further, in response to the double-click operation of the user, determining the first grid point where the mouse is located, marking the country where the first grid point is located, and displaying the first grid point data corresponding to the first grid point on the interactive three-dimensional earth model, specifically:

[0023] In response to a double-click operation by the user, determining a first grid point where the mouse is located when the double-click occurs and a country where the first grid point is located;

[0024] Displaying the name of the country on the interactive three-dimensional earth model and adjusting the background color of the country to complete marking the country where the first grid point is located;

[0025] According to the coordinates of the first grid point, a first three-dimensional object corresponding to the first grid point is created to mark the first grid point, and the longitude and latitude range of the first grid point and the first grid point data corresponding to the first grid point are displayed on the interactive three-dimensional earth model.

[0026] Furthermore, in response to the user's input of the latitude and longitude operation, the second grid point corresponding to the initial position of the camera and the third grid point corresponding to the target position of the camera are determined to create a tracking animation of the camera, and the third grid point data corresponding to the third grid point is displayed on the interactive three-dimensional earth model, specifically:

[0027] In response to the user's input of longitude and latitude, determine the second grid point corresponding to the initial position of the camera, and calculate the third grid point corresponding to the target position of the camera according to the longitude and latitude input by the user;

[0028] Creating a second three-dimensional object corresponding to the first grid point according to the coordinates of the third grid point to mark the third grid point;

[0029] According to the coordinates of the second grid points and the coordinates of the third grid points, the number of frames of the camera tracking animation is determined to create the camera tracking animation, and the longitude and latitude range of the third grid points and the third grid point data corresponding to the third grid points are displayed on the interactive three-dimensional earth model.

[0030] Furthermore, after creating a texture map containing national boundaries based on the created initial three-dimensional earth model, combining the data heat map and global vector data to obtain a corresponding interactive three-dimensional earth model, the method further includes:

[0031] Creating a corresponding color bar on the interactive three-dimensional earth model according to the color code selected by the user;

[0032] According to the magnitudes of the plurality of grid point data, corresponding scales are added to the color bar.

[0033] In order to solve the same technical problem, the present invention also provides a raster data visualization system based on a three-dimensional earth model, comprising:

[0034] A data processing module is used to receive a raster data file uploaded by a user, and perform data processing on the raster data file to obtain a plurality of grid point data;

[0035] A first creation module, used to create a Canvas element according to the plurality of grid point data; wherein the resolution of the Canvas element is determined according to the corresponding plurality of grid point data, the Canvas element is provided with the same number of grid points as the number of the grid point data, and each grid point corresponds to one grid point data;

[0036] A filling module, used to fill each grid point of the Canvas element with a background color according to a preset filling rule to obtain a data heat map;

[0037] A second creation module is used to create a texture map containing national boundaries based on the created initial three-dimensional earth model in combination with the data heat map and global vector data to obtain a corresponding interactive three-dimensional earth model;

[0038] The display module is used to respond to user operations and display grid point data corresponding to the operations on the interactive three-dimensional earth model.

[0039] Furthermore, the display module further includes:

[0040] A first marking unit is used to respond to a double-click operation of the user, determine a first grid point where the mouse is located when the double-click occurs and a country where the first grid point is located, display the name of the country on the interactive three-dimensional earth model, adjust the background color of the country, and complete marking of the country where the first grid point is located;

[0041] a first display unit, configured to create a first three-dimensional object corresponding to the first grid point according to the coordinates of the first grid point, so as to mark the first grid point, and to display the latitude and longitude range of the first grid point and first grid point data corresponding to the first grid point on the interactive three-dimensional earth model;

[0042] a second marking unit, configured to respond to a user input operation of longitude and latitude, determine a second grid point corresponding to an initial position of the camera, calculate a third grid point corresponding to a target position of the camera according to the longitude and latitude input by the user, and create a second three-dimensional object corresponding to the first grid point according to the coordinates of the third grid point, so as to mark the third grid point;

[0043] The second display unit is used to determine the frame number of the camera tracking animation according to the coordinates of the second grid point and the coordinates of the third grid point to create the camera tracking animation, and display the longitude and latitude range of the third grid point and the third grid point data corresponding to the third grid point on the interactive three-dimensional earth model.

[0044] Furthermore, the three-dimensional earth model-based raster data visualization system further includes:

[0045] The third creation module is used to create a corresponding color bar on the interactive three-dimensional earth model according to the color scale selected by the user, and add corresponding scales to the color bar according to the magnitudes of the plurality of grid point data.

[0046] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0047] The present invention provides a raster data visualization method and system based on a three-dimensional earth model. The method uses the grid point data corresponding to the raster data file to create a Canvas element with the same number of grid points as the grid point data, fills the Canvas element with a background color, and combines the global vector data to obtain a texture map containing national boundaries. Then, based on the created initial three-dimensional earth model, the texture map is used as a texture to create an interactive three-dimensional earth model. The corresponding grid point data is displayed in response to the user's operation on the interactive three-dimensional earth model to achieve visualization of the raster data.

[0048] Furthermore, by adding a track controller to the model, the interactive functions of the model can be realized, including zooming, rotating and fast positioning. Among them, the user can not only double-click any grid point of the model with the mouse to view and mark any grid point, but also track and mark specific grid points by entering the preset longitude and latitude. In addition, using the created color bar, the final color of the model can be adjusted according to needs to improve the data visualization performance of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 : A flow chart of an embodiment of a raster data visualization method based on a three-dimensional earth model provided by the present invention;

[0050] Figure 2: A flow chart of another embodiment of a raster data visualization method based on a three-dimensional earth model provided by the present invention;

[0051] Figure 3 : A structural schematic diagram of a raster data visualization system based on a three-dimensional earth model provided by the present invention;

[0052] Figure 4 : A structural schematic diagram of a display module of a raster data visualization system based on a three-dimensional earth model provided by the present invention. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] Embodiment 1:

[0055] Please refer to Figure 1 , a raster data visualization method based on a three-dimensional earth model provided by an embodiment of the present invention, comprising:

[0056] Step 101: receiving a raster data file uploaded by a user, and performing data processing on the raster data file to obtain a plurality of grid point data.

[0057] In this embodiment, the papaparse.js library is used to convert the raster data file in CSV format uploaded by the user into a two-dimensional Array object that is easy to process in JavaScript, wherein the two-dimensional Array object includes multiple grid point data, which is convenient for subsequent data use. Other methods or software can also be used to convert the raster data file into a two-dimensional Array object containing multiple grid point data.

[0058] Step 102: Create a Canvas element according to the multiple grid point data; wherein the resolution of the Canvas element is determined according to the corresponding multiple grid point data, the Canvas element is provided with grid points having the same number as the grid point data, and each grid point corresponds to one grid point data.

[0059] In this embodiment, the resolution of the Canvas element is determined according to the resolution of the distribution of multiple grid point data in the two-dimensional Array object, and then a Canvas element with the same number of grid points as the grid point data is created. Since the aspect ratio of the conventional CSV format raster data file is 2:1, the aspect ratio of the distribution of multiple grid point data in the converted two-dimensional Array object is also 2:1. At this time, the resolution of the Canvas element should also be a multiple of the ratio of 2:1. If the aspect ratio of the CSV format raster data file uploaded by the user is not 2:1, a warning reminder will appear and subsequent operations will be stopped until the aspect ratio of the CSV format raster data file uploaded by the user is 2:1. Then, the subsequent operations will continue. In addition, without freezing, the highest possible resolution is selected. In this embodiment, the resolution of the Canvas element is 2000×1000. Among them, since the Canvas element is provided with the same number of grid points as the grid point data, when the number of grid point data contained in the uploaded data file is different, the resolution of the Canvas element finally created is also different, so as to achieve the creation of an interactive three-dimensional earth model suitable for different resolutions. That is, the resolution of the Canvas element is not fixed and can be adjusted according to actual needs to create Canvas elements of different resolutions to accommodate input data of different data volumes.

[0060] Step 103: Fill each grid point of the Canvas element with a background color according to a preset filling rule to obtain a data heat map.

[0061] Furthermore, step 103 is specifically as follows:

[0062] Perform dimensionality reduction processing on multiple grid point data to obtain digital features of multiple grid point data;

[0063] Based on the digital features and the color code selected by the user, combined with the preset creation rules, a Hex code list with multiple Hex codes is created; wherein one Hex code corresponds to one color;

[0064] According to the correspondence between the grid point data and the Hex code, the background color is filled in each grid point of the Canvas element in turn to obtain a data heat map.

[0065] In this embodiment, multiple grid point data in a two-dimensional Array object are flattened and dimensionally reduced, and the default fill value for missing values ​​in the data processing process is eliminated to obtain the corresponding one-dimensional data to obtain the digital features of the multiple grid point data. Among them, the digital features include: the 5th percentile and the 95th percentile in the one-dimensional data, and the larger of the above two values ​​is recorded as absMax. At the same time, when the color scale style is "centered on 0", the corresponding values ​​of the colors at the bottom, middle, and top of the color scale are determined to be -absMax, 0, and absMax, respectively.

[0066] In this embodiment, based on the color mark selected by the user, N Hex codes that equally divide the color mark are determined, thereby obtaining a Hex code list containing multiple Hex codes. Given two adjacent Hex codes, 100 Hex codes that constitute the gradient color Hex code list can be obtained. Therefore, when the 8 Hex codes that equally divide the color mark are determined, 700 Hex codes are obtained to form the Hex code list. Among them, one Hex code corresponds to one color.

[0067] It should be noted that, according to the numerical value of the grid data, the corresponding Hex code in the Hex code list is selected to fill the background color of the corresponding grid to obtain the data heat map. When the color scale style is "default", if the numerical value of the grid data is less than the 5th percentile in the digital feature, the first Hex code in the Hex code list (usually the lightest color in the color scale) is selected to fill the corresponding grid. If the numerical value of the grid data is greater than the 95th percentile in the digital feature, the last Hex code in the Hex code list (usually the darkest color in the color scale) is selected to fill the corresponding grid. If the grid data is missing, gray is filled by default. When the numerical value of the grid data is between the 5th percentile and the 95th percentile, the number of digits of the Hex code in the Hex code list is determined according to formula (1):

[0068]

[0069] According to the above method, fill the background color of each grid point of the Canvas element to obtain the data heat map.

[0070] Step 104: Based on the created initial three-dimensional earth model, a texture map containing national boundaries is created in combination with the data heat map and global vector data to obtain a corresponding interactive three-dimensional earth model.

[0071] Furthermore, step 104 is specifically as follows:

[0072] According to the resolution of the Canvas element, create the first echarts object;

[0073] Combine the global vector data and set the data heat map as the background of the first echarts object to obtain the second echarts object, and create a texture map containing national boundaries based on the second echarts object;

[0074] Based on the created initial three-dimensional earth model, a three-dimensional earth model containing national boundaries is constructed according to the texture map;

[0075] Add a camera, a renderer, and an orbit controller to the 3D earth model to obtain the corresponding interactive 3D earth model.

[0076] In this embodiment, the echart.js library is used to create a first echarts object of the map category, and then the world.js library is used to import vector data of countries around the world on the first echarts object to add global national boundaries, and the echart.js library is used to adjust the background of the first echarts object to a data heat map, and the second echarts object is obtained by synthesis, and finally the three.js library is used to create a texture map containing national boundaries. Further, the three.js library is used to create a three-dimensional earth model with the above texture map as the texture based on the initial three-dimensional earth model created, and a matching camera and renderer are added, and then the OrbitControls.js library is used to add an orbit controller to realize interactive functions including dragging, scaling, and restoring, and obtain a corresponding interactive three-dimensional earth model.

[0077] As an example of this embodiment, the raster data visualization method based on the three-dimensional earth model of the present invention also includes a color bar creation process (step 201), which is described in detail in Figure 2 , step 201 is as follows:

[0078] Step 201: Create a corresponding color bar on the interactive three-dimensional earth model according to the color scale selected by the user, and add corresponding scales to the color bar according to the magnitudes of multiple grid point data.

[0079] In this embodiment, by using the created color bar, the color finally presented by the model can be adjusted independently according to demand to improve the data visualization performance of the model.

[0080] Step 105: In response to the user's operation, the grid data corresponding to the operation is displayed on the interactive three-dimensional earth model.

[0081] Further, step 105 may be the following two cases, specifically:

[0082] In response to a double-click operation by the user, determining a first grid point where the mouse is located, marking a country where the first grid point is located, and displaying first grid point data corresponding to the first grid point on an interactive three-dimensional earth model;

[0083] Alternatively, in response to the user's input of longitude and latitude operations, a second grid point corresponding to the camera's initial position and a third grid point corresponding to the camera's target position are determined to create a camera tracking animation, and third grid point data corresponding to the third grid point are displayed on an interactive three-dimensional earth model.

[0084] Further, in response to the user's double-click operation, the first grid point where the mouse is located is determined, the country where the first grid point is located is marked, and the first grid point data corresponding to the first grid point is displayed on the interactive three-dimensional earth model, specifically:

[0085] In response to a double-click operation by the user, determine the first grid point where the mouse is located when the double-click occurs and the country where the first grid point is located;

[0086] Display the name of the country on the interactive three-dimensional earth model, adjust the background color of the country, and complete the marking of the country where the first grid point is located;

[0087] According to the coordinates of the first grid point, a first three-dimensional object corresponding to the first grid point is created to mark the first grid point, and the longitude and latitude range of the first grid point and the first grid point data corresponding to the first grid point are displayed on the interactive three-dimensional earth model.

[0088] In this embodiment, a virtual mouse event is simulated on the second echarts object corresponding to the texture map of the interactive three-dimensional earth model to display the name of the country selected by double-clicking, and a three-dimensional object is created to mark the first grid point where the mouse is located when double-clicking, so that the user can quickly find the last selected grid point after dragging and scaling the interactive three-dimensional earth model, thereby improving the data visualization performance of the model.

[0089] Further, in response to the user's input latitude and longitude operation, the second grid point corresponding to the initial position of the camera and the third grid point corresponding to the target position of the camera are determined to create a tracking animation of the camera, and the third grid point data corresponding to the third grid point is displayed on the interactive three-dimensional earth model, specifically:

[0090] In response to the user's input of longitude and latitude, determine the second grid point corresponding to the initial position of the camera, and calculate the third grid point corresponding to the target position of the camera according to the longitude and latitude input by the user;

[0091] Creating a second three-dimensional object corresponding to the first grid point according to the coordinates of the third grid point to mark the third grid point;

[0092] The frame number of the camera tracking animation is determined according to the coordinates of the second grid point and the third grid point to create the camera tracking animation, and the latitude and longitude range of the third grid point and the third grid point data corresponding to the third grid point are displayed on the interactive three-dimensional earth model.

[0093] In this embodiment, the number of frames of the camera tracking animation is determined by the coordinates of the second grid point and the third grid point, and the camera tracking animation is created with the number of frames. That is, the number of frames of the tracking animation is adaptively adjusted according to the distance between the second grid point and the third grid point to avoid the tracking animation being displayed too fast or too slow due to the length of the distance between the two grid points, which affects the user experience. Furthermore, a three-dimensional object is created to mark the third grid point corresponding to the input longitude and latitude, so that the user can quickly find the last selected grid point after dragging and scaling the interactive three-dimensional earth model, thereby improving the data visualization performance of the model.

[0094] To solve the same technical problem, please refer to Figure 3 The present invention also provides a raster data visualization system based on a three-dimensional earth model, comprising:

[0095] Data processing module 1, used for receiving the raster data file uploaded by the user, and performing data processing on the raster data file to obtain a plurality of grid point data;

[0096] A first creation module 2 is used to create a Canvas element according to a plurality of grid point data; wherein the resolution of the Canvas element is determined according to the corresponding plurality of grid point data, the Canvas element is provided with the same number of grid points as the number of grid point data, and each grid point corresponds to one grid point data;

[0097] Filling module 3, used to fill the background color of each grid point of the Canvas element according to a preset filling rule to obtain a data heat map;

[0098] The second creation module 4 is used to create a texture map containing national boundaries based on the created initial three-dimensional earth model, combined with the data heat map and global vector data, to obtain a corresponding interactive three-dimensional earth model;

[0099] The display module 5 is used to respond to the user's operation and display the grid data corresponding to the operation on the interactive three-dimensional earth model.

[0100] Furthermore, the raster data visualization system based on the three-dimensional earth model further includes:

[0101] The third creation module 6 is used to create a corresponding color bar on the interactive three-dimensional earth model according to the color scale selected by the user, and add corresponding scales to the color bar according to the magnitudes of multiple grid point data.

[0102] For further information, please refer to Figure 4 , the display module 5 further includes:

[0103] A first marking unit is used to respond to a double-click operation by the user, determine the first grid point where the mouse is located when the double-click occurs and the country where the first grid point is located, display the name of the country on the interactive three-dimensional earth model, adjust the background color of the country, and complete the marking of the country where the first grid point is located;

[0104] A first display unit, for creating a first three-dimensional object corresponding to the first grid point according to the coordinates of the first grid point, for marking the first grid point, and displaying the latitude and longitude range of the first grid point and the first grid point data corresponding to the first grid point on the interactive three-dimensional earth model;

[0105] A second marking unit is used to respond to the user's input of longitude and latitude, determine the second grid point corresponding to the initial position of the camera, calculate the third grid point corresponding to the target position of the camera according to the longitude and latitude input by the user, and create a second three-dimensional object corresponding to the first grid point according to the coordinates of the third grid point to mark the third grid point;

[0106] The second display unit is used to determine the frame number of the camera tracking animation according to the coordinates of the second grid point and the coordinates of the third grid point to create the camera tracking animation, and display the latitude and longitude range of the third grid point and the third grid point data corresponding to the third grid point on the interactive three-dimensional earth model.

[0107] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0108] The present invention provides a raster data visualization method and system based on a three-dimensional earth model. The method uses the grid point data corresponding to the raster data file to create a Canvas element with the same number of grid points as the grid point data, fills the Canvas element with a background color, and combines the global vector data to obtain a texture map containing national boundaries. Then, based on the created initial three-dimensional earth model, the texture map is used as a texture to create an interactive three-dimensional earth model. The corresponding grid point data is displayed in response to the user's operation on the interactive three-dimensional earth model to achieve visualization of the raster data.

[0109] Furthermore, by adding a track controller to the model, the interactive functions of the model can be realized, including zooming, rotating and fast positioning. Among them, the user can not only double-click any grid point of the model with the mouse to view and mark any grid point, but also track and mark specific grid points by entering the preset longitude and latitude. In addition, using the created color bar, the final color of the model can be adjusted according to needs to improve the data visualization performance of the model.

[0110] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A raster data visualization method based on a three-dimensional earth model, characterized in that: include: Receiving a raster data file uploaded by a user, and performing data processing on the raster data file to obtain a plurality of grid point data; A Canvas element is created according to the plurality of grid point data; wherein the resolution of the Canvas element is determined according to the corresponding plurality of grid point data, the Canvas element is provided with the same number of grid points as the plurality of grid point data, and each grid point corresponds to one grid point data; According to a preset filling rule, each grid point of the Canvas element is filled with a background color to obtain a data heat map; Based on the created initial three-dimensional earth model, the data heat map and global vector data are combined to create a texture map containing national boundaries to obtain a corresponding interactive three-dimensional earth model; In response to a user operation, displaying grid point data corresponding to the operation on the interactive three-dimensional earth model; Among them, the background color is filled for each grid point of the Canvas element according to the preset filling rule to obtain a data heat map, specifically: Performing dimensionality reduction processing on the plurality of grid point data to obtain digital features of the plurality of grid point data; Based on the digital feature and the color code selected by the user, combined with a preset creation rule, a Hex code list having multiple Hex codes is created; wherein one Hex code corresponds to one color; According to the correspondence between the grid point data and the Hex code, each grid point of the Canvas element is filled with a background color in turn to obtain a data heat map.

2. A method for visualizing raster data based on a three-dimensional earth model as claimed in claim 1, characterized in that: The initial three-dimensional earth model created based on the data heat map and the global vector data is combined to create a texture map containing national boundaries to obtain a corresponding interactive three-dimensional earth model, specifically: According to the resolution of the Canvas element, create the first echarts object; Combine the global vector data, and set the data heat map as the background of the first echarts object to obtain a second echarts object, and create a texture map containing national boundaries based on the second echarts object; Based on the created initial three-dimensional earth model, constructing a three-dimensional earth model containing national boundaries according to the texture map; A camera, a renderer and an orbit controller are added to the three-dimensional earth model to obtain a corresponding interactive three-dimensional earth model.

3. A method for visualizing raster data based on a three-dimensional earth model as claimed in claim 1, characterized in that: The step of responding to the user's operation and displaying the grid point data corresponding to the operation on the interactive three-dimensional earth model is specifically: In response to a double-click operation by the user, determining a first grid point where the mouse is located, marking the country where the first grid point is located, and displaying first grid point data corresponding to the first grid point on the interactive three-dimensional earth model; Alternatively, in response to the user's input of longitude and latitude operations, a second grid point corresponding to the camera's initial position and a third grid point corresponding to the camera's target position are determined to create a tracking animation of the camera, and third grid point data corresponding to the third grid point are displayed on the interactive three-dimensional earth model.

4. A method for visualizing raster data based on a three-dimensional earth model as claimed in claim 3, characterized in that: The step of responding to the double-click operation of the user, determining the first grid point where the mouse is located, marking the country where the first grid point is located, and displaying the first grid point data corresponding to the first grid point on the interactive three-dimensional earth model, is specifically: In response to a double-click operation by the user, determining a first grid point where the mouse is located when the double-click occurs and a country where the first grid point is located; Displaying the name of the country on the interactive three-dimensional earth model and adjusting the background color of the country to complete marking the country where the first grid point is located; According to the coordinates of the first grid point, a first three-dimensional object corresponding to the first grid point is created to mark the first grid point, and the longitude and latitude range of the first grid point and the first grid point data corresponding to the first grid point are displayed on the interactive three-dimensional earth model.

5. A method for visualizing raster data based on a three-dimensional earth model as claimed in claim 3, characterized in that: In response to the user's input of the latitude and longitude operation, determining the second grid point corresponding to the initial position of the camera and the third grid point corresponding to the target position of the camera to create the tracking animation of the camera, and displaying the third grid point data corresponding to the third grid point on the interactive three-dimensional earth model, specifically: In response to the user's input of longitude and latitude, determine the second grid point corresponding to the initial position of the camera, and calculate the third grid point corresponding to the target position of the camera according to the longitude and latitude input by the user; Creating a second three-dimensional object corresponding to the first grid point according to the coordinates of the third grid point to mark the third grid point; According to the coordinates of the second grid points and the coordinates of the third grid points, the number of frames of the camera tracking animation is determined to create the camera tracking animation, and the longitude and latitude range of the third grid points and the third grid point data corresponding to the third grid points are displayed on the interactive three-dimensional earth model.

6. A method for visualizing raster data based on a three-dimensional earth model as claimed in claim 1, characterized in that: After creating a texture map containing national boundaries based on the created initial three-dimensional earth model and combining the data heat map and global vector data to obtain a corresponding interactive three-dimensional earth model, the method further includes: Creating a corresponding color bar on the interactive three-dimensional earth model according to the color code selected by the user; According to the magnitudes of the plurality of grid point data, corresponding scales are added to the color bar.

7. A raster data visualization system based on a three-dimensional earth model, characterized in that: include: A data processing module is used to receive a raster data file uploaded by a user, and perform data processing on the raster data file to obtain a plurality of grid point data; A first creation module is used to create a Canvas element according to the plurality of grid point data; wherein the resolution of the Canvas element is determined according to the corresponding plurality of grid point data, the Canvas element is provided with the same number of grid points as the plurality of grid point data, and each grid point corresponds to one grid point data; A filling module, used to fill each grid point of the Canvas element with a background color according to a preset filling rule to obtain a data heat map; A second creation module is used to create a texture map containing national boundaries based on the created initial three-dimensional earth model in combination with the data heat map and global vector data to obtain a corresponding interactive three-dimensional earth model; A display module, for responding to a user's operation and displaying grid point data corresponding to the operation on the interactive three-dimensional earth model; Among them, the background color is filled for each grid point of the Canvas element according to the preset filling rule to obtain a data heat map, specifically: Performing dimensionality reduction processing on the plurality of grid point data to obtain digital features of the plurality of grid point data; Based on the digital feature and the color code selected by the user, combined with a preset creation rule, a Hex code list having multiple Hex codes is created; wherein one Hex code corresponds to one color; According to the correspondence between the grid point data and the Hex code, each grid point of the Canvas element is filled with a background color in turn to obtain a data heat map.

8. A raster data visualization system based on a three-dimensional earth model as claimed in claim 7, characterized in that: The display module further includes: A first marking unit is used to respond to a double-click operation of the user, determine a first grid point where the mouse is located when the double-click occurs and a country where the first grid point is located, display the name of the country on the interactive three-dimensional earth model, adjust the background color of the country, and complete marking of the country where the first grid point is located; a first display unit, configured to create a first three-dimensional object corresponding to the first grid point according to the coordinates of the first grid point, so as to mark the first grid point, and to display the latitude and longitude range of the first grid point and first grid point data corresponding to the first grid point on the interactive three-dimensional earth model; a second marking unit, configured to respond to a user input operation of longitude and latitude, determine a second grid point corresponding to an initial position of the camera, calculate a third grid point corresponding to a target position of the camera according to the longitude and latitude input by the user, and create a second three-dimensional object corresponding to the first grid point according to the coordinates of the third grid point, so as to mark the third grid point; The second display unit is used to determine the frame number of the camera tracking animation according to the coordinates of the second grid point and the coordinates of the third grid point to create the camera tracking animation, and display the longitude and latitude range of the third grid point and the third grid point data corresponding to the third grid point on the interactive three-dimensional earth model.

9. A raster data visualization system based on a three-dimensional earth model as claimed in claim 7, characterized in that: Also includes: The third creation module is used to create a corresponding color bar on the interactive three-dimensional earth model according to the color scale selected by the user, and add corresponding scales to the color bar according to the magnitudes of the plurality of grid point data.

Citation Information

Patent Citations

  • Method for adaptive layout of target label in VTS system

    CN112348896A

  • Canvas-based three-dimensional sphere content display implementation method

    CN112825039A