CN112765299B - Visualization method and device for irregular raster data, electronic equipment and storage medium - Google Patents

Visualization method and device for irregular raster data, electronic equipment and storage medium Download PDF

Info

Publication number
CN112765299B
CN112765299B CN202110107239.9A CN202110107239A CN112765299B CN 112765299 B CN112765299 B CN 112765299B CN 202110107239 A CN202110107239 A CN 202110107239A CN 112765299 B CN112765299 B CN 112765299B
Authority
CN
China
Prior art keywords
grid
data
regular
irregular
assigned
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110107239.9A
Other languages
Chinese (zh)
Other versions
CN112765299A (en
Inventor
吴阿丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Northwest Institute of Eco Environment and Resources of CAS
Original Assignee
Northwest Institute of Eco Environment and Resources of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Northwest Institute of Eco Environment and Resources of CAS filed Critical Northwest Institute of Eco Environment and Resources of CAS
Priority to CN202110107239.9A priority Critical patent/CN112765299B/en
Publication of CN112765299A publication Critical patent/CN112765299A/en
Application granted granted Critical
Publication of CN112765299B publication Critical patent/CN112765299B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/904Browsing; Visualisation therefor
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Abstract

The application provides a visualization method, a visualization device, electronic equipment and a computer-readable storage medium for irregular raster data, wherein the method comprises the following steps: constructing a regular grid matched with irregular grid data according to the resolution and the coverage range of the irregular grid data to be processed; determining grids to be assigned according to the regional properties corresponding to each grid in the regular grids; for each grid to be assigned in the regular grids, assigning the grid to be assigned according to the variable value of a target grid which is closest to the grid to be assigned in the irregular grid data to obtain regular grid data; and after the regular raster data are converted into a specified data format, performing visual presentation according to the converted regular raster data. According to the scheme, three-dimensional visual presentation of irregular raster data is achieved.

Description

Visualization method and device for irregular raster data, electronic equipment and storage medium
Technical Field
The present application relates to the field of geographic information science and technology, and in particular, to a method and an apparatus for visualizing irregular grid data, an electronic device, and a computer-readable storage medium.
Background
Visual presentation of sea ice data is one of the contents of polar research. At present, sea ice Information service systems of various countries provide rich sea ice data, the visualization function of the systems mainly takes a traditional two-dimensional WebGIS (WebGeogrAN _ SNhic Information System) map as a main part, and the deformation is too large and is not intuitive enough when data are rendered in the arctic region. Therefore, three-dimensional visualization presentation of polar region sea ice data has become an urgent need. However, sea ice data obtained by means of sounding observation, ground observation, model simulation, and the like is raster data, and is spatially unevenly distributed, which is irregular raster data. When three-dimensional visualization presentation is performed based on irregular grid data, the sea ice data (including sea ice density data and sea ice thickness data) of the irregular grid cannot effectively show the sea ice thickness and the space distribution of the sea ice density on the WebGIS platform because a data visualization interface provided by the WebGIS platform has strict requirements on the format and the coordinate system of the data. In addition, for subsequent application analysis, for example, when navigation risk calculation is performed through sea ice density data and sea ice thickness data, the requirement of matrix operation cannot be met due to the fact that different irregular grid data have large differences in resolution, grid number, data format and the like.
In the related art, irregular raster data are converted into regular raster data which are continuous in space through an interpolation method of spatial data, so that visual display and online analysis are realized on a Cesium spherical system of a sea ice information service platform. Common interpolation methods include both global interpolation and local interpolation. However, when the interpolation method is used for generating three-dimensional visual data for the sea ice information service platform, the following disadvantages exist: firstly, the interpolation requirements for sea ice thickness data and sea ice density data are limited to a sea ice coverage area, the interpolation method can interpolate the whole rectangular area where irregular raster data are located, mask cutting is carried out on a land area after interpolation is completed, and the complexity of flow data processing is increased; secondly, in the interpolation method application process, parameters of an interpolation function need to be adjusted repeatedly through interpolation results, the interpolation results are known to accord with general spatial distribution conditions, parameter adjustment is completed manually, and the method has certain subjectivity.
Disclosure of Invention
The embodiment of the application aims to provide a visualization method and device for irregular raster data, an electronic device and a computer-readable storage medium, which are used for realizing visualization presentation of the irregular raster data.
In one aspect, the present application provides a method for visualizing irregular raster data, including:
constructing a regular grid matched with irregular grid data according to the resolution and the coverage range of the irregular grid data to be processed;
determining grids to be assigned according to the regional properties corresponding to each grid in the regular grids;
for each grid to be assigned in the regular grids, assigning the grid to be assigned according to the variable value of the target grid which is closest to the grid to be assigned in the irregular grid data to obtain regular grid data;
and after the regular raster data are converted into a specified data format, performing visual presentation according to the converted regular raster data.
In an embodiment, before said building a regular grid adapted to said irregular grid data, said method further comprises:
acquiring the irregular raster data; wherein the irregular grid data includes spatial information and variable values for each grid.
In one embodiment, the irregular raster data includes at least two types of raster data to be processed;
the method for constructing the regular raster matched with the irregular raster data according to the resolution and the coverage range of the irregular raster data to be processed comprises the following steps:
determining the maximum resolution and the maximum coverage range from the raster data to be processed;
determining a resolution level to which the maximum resolution belongs and a specified resolution corresponding to the resolution level;
and constructing the regular grid according to the specified resolution and the maximum coverage range.
In an embodiment, the assigning, for each grid to be assigned in the regular grids, the grid to be assigned according to a variable value of a target grid in the irregular grid data that is closest to the grid to be assigned to obtain regular grid data includes:
aiming at each grid to be assigned in the regular grids, calculating Euclidean distance according to the spatial information of the grid to be assigned and the spatial information of each grid in the irregular grid data;
for each grid to be assigned, determining the closest grid as a target grid according to a plurality of Euclidean distances corresponding to the grid to be assigned;
and assigning the grid to be assigned corresponding to the target grid according to the variable value of the target grid to obtain the regular grid data.
In one embodiment, the regional properties include ocean and land;
determining the grids to be assigned according to the region properties corresponding to each grid in the regular grids comprises the following steps:
determining a local vector map with the same coverage range from preset vector maps according to the coverage range of the irregular raster data; wherein the vector map indicates a marine corresponding region and a land corresponding region;
and taking the local vector map as a mask of the regular grid, and determining the grid with the regional property of the sea in the regular grid as the grid to be assigned.
On the other hand, the application also provides a visualization device for irregular raster data, which comprises:
the building module is used for building a regular grid matched with the irregular grid data according to the resolution and the coverage range of the irregular grid data to be processed;
the determining module is used for determining grids to be assigned according to the regional properties corresponding to each grid in the regular grids;
the assignment module is used for assigning the grids to be assigned according to the variable values of the target grids which are closest to the grids to be assigned in the irregular grid data to obtain regular grid data;
and the display module is used for converting the regular raster data into a specified data format and then performing visual presentation according to the converted regular raster data.
In an embodiment, the irregular raster data includes at least two types of raster data to be processed;
the build module is further configured to:
determining the maximum resolution and the maximum coverage range from the raster data to be processed;
determining a resolution level to which the maximum resolution belongs and a specified resolution corresponding to the resolution level;
and constructing the regular grid according to the specified resolution and the maximum coverage range.
In one embodiment, the regional properties include ocean and land;
the determining module is further configured to:
determining a local vector map with the same coverage range from preset vector maps according to the coverage range of the irregular raster data; wherein the vector map indicates a marine corresponding region and a land corresponding region;
and taking the local vector map as a mask of the regular grid, and determining the grid with the regional property of the sea in the regular grid as the grid to be assigned.
Further, the present application also provides an electronic device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the above visualization method of irregular raster data.
In addition, the present application also provides a computer readable storage medium, wherein the storage medium stores a computer program, and the computer program can be executed by a processor to complete the visualization method of the irregular raster data.
In the embodiment of the application, after the adaptive regular grids are constructed for the irregular grid data to be processed, the grids to be assigned are determined according to the region properties corresponding to each grid in the regular grids, and the grids to be assigned can be assigned according to the variable value of the target grid which is closest to the grids to be assigned in the irregular grid data aiming at each grid to be assigned in the regular grids, so that the regular grid data is obtained; and after the regular raster data are converted into the specified data format, performing visual presentation according to the converted regular raster data. Compared with an interpolation method, the scheme of the application greatly reduces the implementation complexity, avoids the interference of manual parameter adjustment on visual presentation, and realizes the visual presentation of non-raster data.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic application scenario diagram of a visualization method for irregular raster data according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a visualization method for irregular raster data according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a local vector map provided in an embodiment of the present application;
fig. 5 is a schematic flowchart of a method for generating regular raster data according to an embodiment of the present application;
FIG. 6 is a schematic diagram of irregular raster data according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a regular grid according to an embodiment of the present application;
FIG. 8 is a schematic diagram of regular raster data provided in accordance with an embodiment of the present application;
fig. 9 is a block diagram of a visualization apparatus for irregular grid data according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not construed as indicating or implying relative importance.
Fig. 1 is a schematic application scenario diagram of a visualization method for irregular raster data according to an embodiment of the present application. As shown in fig. 1, the application scenario includes a client 20 and a server 30; the client 20 may be an electronic device such as a host, a mobile phone, a tablet computer, and the like, and is configured to initiate a visualization request to the server 30, where the visualization request carries irregular raster data to be displayed; the server 30 may be a server, a server cluster, or a cloud computing center, and may parse the irregular raster data from the visualization request and perform visual presentation on the irregular raster data.
As shown in fig. 2, the present embodiment provides an electronic apparatus 1 including: at least one processor 11 and a memory 12, one processor 11 being exemplified in fig. 2. The processor 11 and the memory 12 are connected by a bus 10, and the memory 12 stores instructions executable by the processor 11, and the instructions are executed by the processor 11 to enable the electronic device 1 to perform all or part of the flow of the method in the embodiments described below. In an embodiment, the electronic device 1 may be the server 30 described above, and is configured to perform a visualization method of irregular raster data.
The Memory 12 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically Erasable Programmable Read-Only Memory (EEPROM), erasable Programmable Read-Only Memory (EPROM), programmable Read-Only Memory (PROM), read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk.
The present application also provides a computer readable storage medium storing a computer program executable by a processor 11 to perform the method for visualizing irregular grid data provided herein.
Referring to fig. 3, a flowchart of a method for visualizing irregular raster data according to an embodiment of the present application is shown in fig. 3, where the method may include the following steps 310 to 340.
Step 310: and constructing a regular grid matched with the irregular grid data according to the resolution and the coverage range of the irregular grid data to be processed.
The irregular raster data can be sea ice data obtained through sounding observation, ground observation, model simulation and the like, and can also be downloaded directly from a sea ice information sharing platform. The sea ice data may be sea ice thickness data and sea ice intensity data.
The resolution of the raster data may be how many rasters are present in the raster data. Illustratively, the resolution is represented as 800 × 600 in width × height, indicating that 480000 grids are present in the grid data. For irregular grid data, the grid corresponding to sea ice data may be in a discrete state and not uniformly distributed.
If only one type of irregular raster data is to be processed, the server side can directly construct a regular raster according to the resolution and the coverage range of the irregular raster data. Illustratively, the server obtains sea ice thickness data with a resolution of 720 × 256 in width × height, and the sea ice thickness data covers a latitude range from 26 degrees north latitude to 90 degrees north latitude and a longitude range from 180 degrees west longitude to 180 degrees east longitude. The server side can construct a regular grid with the resolution of 720 x 256, the coverage range of 26 degrees north latitude to 90 degrees north latitude, and the longitude range of 180 degrees west longitude to 180 degrees east longitude.
If there are at least two types of irregular raster data to be processed, each of the irregular raster data may be regarded as the raster data to be processed. Here, in one case, the at least two kinds of raster data to be processed may be both sea ice thickness data, or both sea ice density data; in another case, the at least two types of raster data to be processed may include sea ice thickness data and sea ice density data.
The server may determine the maximum resolution and the maximum coverage from the raster data to be processed. The server may check the resolution of each raster data to be processed, and thus select the maximum resolution. The server side can determine the maximum width and the maximum height from all the raster data to be processed, so that the maximum resolution is constructed according to the maximum width and the maximum height. Illustratively, the irregular raster data includes three types of raster data to be processed, the rates are respectively represented as 720 × 256, 480 × 256, and 800 × 200, and the server may determine the maximum width to be 800 and the maximum height to be 256, so as to obtain the maximum resolution of 800 × 256. The server may check the coverage of each raster data to be processed, and select the maximum coverage. The server may check the coverage of each to-be-processed raster data and determine the maximum coverage with a collection of the coverage of all to-be-processed raster data.
The server may determine a resolution level to which the maximum resolution belongs and a specified resolution corresponding to the resolution level. The server may pre-configure a plurality of resolution levels, each resolution level corresponds to a resolution interval, the specified resolution is an optimal resolution for the resolution interval, and the specified resolution may be, for example, a maximum resolution in the resolution interval.
The server can construct a regular grid according to the specified resolution and the maximum coverage.
By the aid of the method, the server side can construct the grids with higher resolution ratio for the grid data to be processed, and accordingly subsequent visual display effect is improved.
Step 320: and determining the grids to be assigned according to the region properties corresponding to each grid in the regular grids.
In an embodiment, regional properties may include ocean and land.
When the server visually presents the sea ice data, the grid with the regional property of the sea can be used as the grid to be assigned.
Step 330: and assigning the grid to be assigned according to the variable value of the target grid which is closest to the grid to be assigned in the irregular grid data aiming at each grid to be assigned in the regular grids to obtain the regular grid data.
If the irregular grid data is sea ice thickness data, the variable value of the grid corresponding to the ocean region in the irregular grid data is a sea ice thickness value; if the irregular grid data is sea ice density data, the variable value of the grid corresponding to the sea area in the irregular grid data is the sea ice density value.
The target grid refers to the grid closest to the grid to be assigned in the irregular grid data.
Aiming at each grid to be assigned in the regular grids, the server side can determine a target grid closest to the grid to be assigned from at least one irregular grid data, and assigns the grid to be assigned according to the variable value of the target grid. And when the server assigns the grids to be assigned through the variable value of the target grid closest to each grid to be assigned, regular grid data can be obtained. The regular grid data allows the sea ice data to become continuous in spatial distribution.
Step 340: and after the regular raster data are converted into the specified data format, performing visual presentation according to the converted regular raster data.
Wherein the specified data format may be a data format for visual presentation. Illustratively, the specified data format may be a data format conforming to a three-dimensional WebGIS platform.
After the server side obtains the regular raster Data, the server side can endow the regular raster Data with spatial information through a GDAL (geographic spatial Data Abstraction Library) class Library, and convert the regular raster Data endowed with the spatial information into a specified Data format. Here, the spatial information given to the regular grid data is determined by the coverage and resolution corresponding to the regular grid. Illustratively, the coverage range is latitude range from 26 degrees of north latitude to 90 degrees of north latitude, the longitude range from 180 degrees of west longitude to 180 degrees of east longitude, the resolution is 720 × 256, the latitude difference between the upper and lower rows of grids is 0.25 degrees, and the longitude difference between the left and right columns of grids is 0.5 degrees, so that the longitude and latitude corresponding to each grid can be determined as the spatial information. The server can perform three-dimensional visual presentation on the regular raster data converted into the specified data format through the three-dimensional WebGIS platform.
By the aid of the measures, the data quality of the sea ice data of the irregular grids can be improved, and a good three-dimensional visual presentation effect is achieved.
Before an embodiment, the server may obtain the irregular grid data before constructing the regular grid. Wherein the irregular grid data includes spatial information and variable values for each grid. The spatial information may be latitude and accuracy, and the variable value may be one or both of a sea ice thickness value and a poster density value.
After obtaining the irregular raster data, the server may process a subsequent raster that needs to be processed into data entries, where each data entry may include a raster number, a latitude, a longitude, and a variable value. The server can save the data items to a local spatial database PostGIS.
In an embodiment, when the server performs step 330, the local vector map with the same coverage range may be determined from the preset vector maps according to the coverage range of the irregular raster data. Wherein the vector map indicates a marine corresponding region and a land corresponding region. The vector map may include all possible coverage areas for the application scenario, which is, for example, the processing of sea ice data, and may include south and north poles. Referring to fig. 4, a schematic diagram of a local vector map provided in an embodiment of the present application is shown in fig. 4, where the coverage range of the local vector map is 26 degrees north latitude to 90 degrees north latitude, and the longitude range is 180 degrees west longitude to 180 degrees east longitude. In the local vector map, a region having the same color as the legend 0 represents land, and a region having the same color as the legend 1 represents sea.
The server side can use the local vector map as a mask of the regular grid, so that the grid with the regional property of the ocean in the regular grid is determined as the grid to be assigned. The server side can determine whether the area corresponding to each grid in the regular grid is ocean or land according to the local vector map, and therefore grids with the area property of being the rest are used as grids to be assigned.
In an embodiment, referring to fig. 5, a flowchart of a method for generating regular raster data provided in an embodiment of the present application is shown, and as shown in fig. 5, the method may include the following steps 510 to 530.
Step 510: and aiming at each grid to be assigned in the regular grids, calculating the Euclidean distance according to the spatial information of the grid to be assigned and the spatial information of each grid in the irregular grid data.
Aiming at each grid to be assigned in the regular grid, the server side can determine the latitude difference value and the longitude difference value of the grid to be assigned according to the spatial information of the grid to be assigned and the spatial information of each grid in the irregular grid data, and convert the latitude difference value and the longitude difference value into mileage, and further calculate the Euclidean distance according to the mileage in the latitude direction and the mileage in the longitude direction.
Step 520: and for each grid to be assigned, determining the closest grid as a target grid according to a plurality of Euclidean distances corresponding to the grid to be assigned.
Step 530: and assigning the grid to be assigned corresponding to the target grid according to the variable value of the target grid to obtain regular grid data.
The server side can determine a target grid closest to the grid to be assigned according to the Euclidean distance between the grid to be assigned and each grid in the irregular grid data, and then assigns the grid to be assigned according to the variable value of the target grid. And obtaining regular grid data after all grids to be assigned are assigned.
In practical application, the server can directly issue a query instruction to a spatial database storing data entries, so as to determine a target grid corresponding to a grid to be assigned, and then complete assignment.
The treatment effect of the present embodiment will be described below with reference to the drawings.
Referring to fig. 6, a schematic diagram of irregular grid data according to an embodiment of the present disclosure is shown, where fig. 6 shows sea ice data in a range from 26 degrees north latitude to 90 degrees north latitude, and from 180 degrees west longitude to 180 degrees east longitude. The image in the dotted line frame of fig. 6 is enlarged, and it can be found that the grid points are not uniformly distributed in space, and the grid points at high latitude are very sparse.
Referring to fig. 7, a schematic diagram of a regular grid according to an embodiment of the present application is provided, where the regular grid in fig. 7 is constructed according to the resolution and coverage of the irregular grid data in fig. 6. The enlarged image in the dotted line frame in fig. 7 shows that the grids to be assigned in the regular grids are uniformly distributed in space.
Referring to fig. 8, which is a schematic diagram of regular raster data provided in an embodiment of the present application, the regular raster data in fig. 8 is obtained by assigning values to the regular raster in fig. 7 according to the irregular raster data in fig. 6. The regular grid data in fig. 8 are distributed uniformly in space, and good visual presentation of the sea ice data can be realized.
Referring to fig. 9, a block diagram of an apparatus for visualizing irregular grid data according to an embodiment of the present application is shown in fig. 9, where the apparatus may include:
a constructing module 910, configured to construct a regular raster adapted to irregular raster data according to a resolution and a coverage of the irregular raster data to be processed;
a determining module 920, configured to determine a grid to be assigned according to a region property corresponding to each grid in the regular grids;
an assignment module 930, configured to assign, for each to-be-assigned grid in the regular grid, the to-be-assigned grid according to a variable value of a target grid, which is closest to the to-be-assigned grid, in the irregular grid data, to obtain regular grid data;
and a display module 940, configured to convert the regular raster data into a specified data format, and perform visual presentation according to the converted regular raster data.
In an embodiment, the apparatus further comprises an obtaining module 950 configured to:
acquiring the irregular raster data; wherein the irregular grid data includes spatial information and variable values for each grid.
In one embodiment, the irregular raster data includes at least two types of raster data to be processed;
a building module 910, further configured to:
determining the maximum resolution and the maximum coverage range from the raster data to be processed;
determining a resolution level to which the maximum resolution belongs and a specified resolution corresponding to the resolution level;
and constructing the regular grid according to the specified resolution and the maximum coverage range.
In one embodiment, the assignment module 930 is further configured to:
aiming at each grid to be assigned in the regular grids, calculating Euclidean distance according to the spatial information of the grid to be assigned and the spatial information of each grid in the irregular grid data;
for each grid to be assigned, determining the closest grid as a target grid according to a plurality of Euclidean distances corresponding to the grid to be assigned;
and assigning the grid to be assigned corresponding to the target grid according to the variable value of the target grid to obtain the regular grid data.
In one embodiment, the regional properties include ocean and land;
the determining module 920 is further configured to:
determining a local vector map with the same coverage range from preset vector maps according to the coverage range of the irregular raster data; wherein the vector map indicates a marine corresponding region and a land corresponding region;
and taking the local vector map as a mask of the regular grid, and determining the grid with the regional property of the sea in the regular grid as the grid to be assigned.
The implementation processes of the functions and actions of each module in the device are specifically described in the implementation processes of the corresponding steps in the visualization method of irregular raster data, and are not described herein again.
In the embodiments provided in the present application, the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.

Claims (7)

1. A visualization method for irregular raster data is characterized by comprising the following steps:
constructing a regular grid matched with irregular grid data according to the resolution and the coverage range of the irregular grid data to be processed; wherein the irregular grid data includes spatial information and variable values for each grid;
determining the grids to be assigned according to the region properties corresponding to each grid in the regular grids, wherein the determining comprises the following steps: determining a local vector map with the same coverage range from preset vector maps according to the coverage range of the irregular raster data; wherein the vector map indicates a marine corresponding region and a land corresponding region; taking the local vector map as a mask of the regular grid, and determining the grid with the regional property of the sea in the regular grid as a grid to be assigned; wherein the regional properties include ocean and land;
for each grid to be assigned in the regular grids, assigning the grid to be assigned according to the variable value of the target grid which is closest to the grid to be assigned in the irregular grid data to obtain regular grid data, including: aiming at each grid to be assigned in the regular grids, calculating Euclidean distance according to the spatial information of the grid to be assigned and the spatial information of each grid in the irregular grid data; for each grid to be assigned, determining the closest grid as a target grid according to a plurality of Euclidean distances corresponding to the grid to be assigned; assigning the grid to be assigned corresponding to the target grid according to the variable value of the target grid to obtain the regular grid data;
and after the regular raster data are converted into a specified data format, performing visual presentation according to the converted regular raster data.
2. The method of claim 1, wherein prior to said constructing a regular grid that fits the irregular grid data, the method further comprises:
and acquiring the irregular raster data.
3. The method of claim 2, wherein the irregular raster data comprises at least two types of raster data to be processed;
the method for constructing the regular raster matched with the irregular raster data according to the resolution and the coverage range of the irregular raster data to be processed comprises the following steps:
determining the maximum resolution and the maximum coverage range from the raster data to be processed;
determining a resolution level to which the maximum resolution belongs and a specified resolution corresponding to the resolution level;
and constructing the regular grid according to the specified resolution and the maximum coverage range.
4. An apparatus for visualizing irregular raster data, comprising:
the system comprises a construction module, a processing module and a processing module, wherein the construction module is used for constructing a regular raster matched with irregular raster data according to the resolution and the coverage range of the irregular raster data to be processed; wherein the irregular grid data includes spatial information and variable values for each grid;
the determining module is used for determining the grids to be assigned according to the region properties corresponding to each grid in the regular grids, and comprises the following steps: determining a local vector map with the same coverage range from preset vector maps according to the coverage range of the irregular raster data; wherein the vector map indicates a marine corresponding region and a land corresponding region; taking the local vector map as a mask of the regular grid, and determining the grid with the regional property of the sea in the regular grid as a grid to be assigned; wherein the regional properties include ocean and land;
the assignment module is configured to assign, to each to-be-assigned grid in the regular grids, the to-be-assigned grid according to a variable value of a target grid in the irregular grid data that is closest to the to-be-assigned grid, and obtain regular grid data, and includes: aiming at each grid to be assigned in the regular grids, calculating Euclidean distance according to the spatial information of the grid to be assigned and the spatial information of each grid in the irregular grid data; for each grid to be assigned, determining the closest grid as a target grid according to a plurality of Euclidean distances corresponding to the grid to be assigned; assigning the grid to be assigned corresponding to the target grid according to the variable value of the target grid to obtain the regular grid data;
and the display module is used for converting the regular raster data into a specified data format and then performing visual presentation according to the converted regular raster data.
5. The apparatus of claim 4, wherein the irregular raster data comprises at least two types of raster data to be processed;
the building module is further configured to:
determining the maximum resolution and the maximum coverage range from the raster data to be processed;
determining a resolution level to which the maximum resolution belongs and a specified resolution corresponding to the resolution level;
and constructing the regular grid according to the specified resolution and the maximum coverage range.
6. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of visualizing irregular grid data of any of claims 1-3.
7. A computer-readable storage medium, characterized in that the storage medium stores a computer program executable by a processor to perform the method of visualizing irregular grid data of any one of claims 1-3.
CN202110107239.9A 2021-01-26 2021-01-26 Visualization method and device for irregular raster data, electronic equipment and storage medium Active CN112765299B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110107239.9A CN112765299B (en) 2021-01-26 2021-01-26 Visualization method and device for irregular raster data, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110107239.9A CN112765299B (en) 2021-01-26 2021-01-26 Visualization method and device for irregular raster data, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112765299A CN112765299A (en) 2021-05-07
CN112765299B true CN112765299B (en) 2023-03-10

Family

ID=75705928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110107239.9A Active CN112765299B (en) 2021-01-26 2021-01-26 Visualization method and device for irregular raster data, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112765299B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114328782B (en) * 2021-12-24 2022-11-01 中科三清科技有限公司 Geographic vector data processing method, electronic device and storage medium
CN117131125B (en) * 2023-10-23 2024-02-02 瀚高基础软件股份有限公司 Space raster data visualization system, equipment and medium of database management tool

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100495442C (en) * 2007-03-23 2009-06-03 东南大学 Three-dimensional scanning point cloud compressing method
CN101900817B (en) * 2009-05-27 2013-01-16 中国科学院地理科学与资源研究所 Universal remote sensing data rule gridding method
CN101996258B (en) * 2010-11-30 2012-11-14 重庆大学 Electronic map information grid processing and querying method facilitating quick query
CN102902876B (en) * 2012-08-14 2016-10-12 北京地拓科技发展有限公司 A kind of calculated crosswise method and apparatus of raster data
CN103942841B (en) * 2013-08-15 2017-09-22 中国地质科学院矿产资源研究所 Mineral resource multivariate information processing method and system based on GIS
AU2014400647A1 (en) * 2014-07-07 2017-02-02 eyeBrain Medical, Inc. System for measuring visual fixation disparity
US9165543B1 (en) * 2014-12-02 2015-10-20 Mixed In Key Llc Apparatus, method, and computer-readable storage medium for rhythmic composition of melody
CN105844602B (en) * 2016-04-01 2018-11-20 辽宁工程技术大学 A kind of airborne LIDAR point cloud three-dimensional filtering method based on volume elements
CN107545104A (en) * 2017-08-21 2018-01-05 西安电子科技大学 Irregular terrain profiles radio wave propagation factor prediction method based on three dimensional parabolic equation
CN107765103B (en) * 2017-10-19 2019-07-23 西安电子科技大学 A kind of complex environment Electromagnetic Situation inversion method based on multisensor
CN108537361A (en) * 2018-03-06 2018-09-14 西安大衡天成信息科技有限公司 A kind of addressing appraisal procedure of mobile radar and communication station
CN108491936A (en) * 2018-03-08 2018-09-04 上海同岩土木工程科技股份有限公司 Subway Facilities equipment operation management system based on BIM and method
CN108805063A (en) * 2018-05-31 2018-11-13 王红军 A kind of multiresolution visual perception method to object and environment
CN109917786A (en) * 2019-02-04 2019-06-21 浙江大学 A kind of robot tracking control and system operation method towards complex environment operation
CN111918298B (en) * 2020-08-10 2022-12-02 河南省信息咨询设计研究有限公司 Clustering-based site planning method and device, electronic equipment and storage medium
CN111931934A (en) * 2020-08-24 2020-11-13 深圳市数字城市工程研究中心 Affine transformation solving method under mass control points based on improved genetic algorithm

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于GIS的海洋数值模拟数据可视化研究;张玉良;《中国优秀硕士学位论文全文数据库基础科学辑》;20180615(第06期);A008-19 *

Also Published As

Publication number Publication date
CN112765299A (en) 2021-05-07

Similar Documents

Publication Publication Date Title
US7983474B2 (en) Geospatial modeling system and related method using multiple sources of geographic information
CN112765299B (en) Visualization method and device for irregular raster data, electronic equipment and storage medium
CN110321443B (en) Three-dimensional live-action model database construction method and device and data service system
CN111369657A (en) Three-dimensional thermodynamic diagram generation method and device, computer equipment and storage medium
US20130127852A1 (en) Methods for providing 3d building information
CN115375868B (en) Map display method, remote sensing map display method, computing device and storage medium
CN115796712B (en) Regional land ecosystem carbon reserve estimation method and device and electronic equipment
CN108074279B (en) Three-dimensional meteorological data display method, device and equipment
CN113658292A (en) Method, device and equipment for generating meteorological data color spot pattern and storage medium
US20060164417A1 (en) Imagery-based synthetic environment for computer generated forces
CN112700547B (en) Map making method and related equipment
CN105354326B (en) Spatial position indexing method and system
US20090019382A1 (en) Systems and methods for side angle radar training and simulation
KR101487454B1 (en) method for parallel processing of LOD image
CN117197339A (en) Model display method, device and equipment based on DEM and storage medium
KR102025144B1 (en) Device for predicting construction waste using drone, method and recording medium for performing the method
CN114238528A (en) Map loading method and device, electronic equipment and storage medium
CN114663324A (en) Fusion display method of BIM (building information modeling) model and GIS (geographic information system) information and related components
CN113936106A (en) Three-dimensional visualization method and system of monitoring map and related equipment
JP7086180B2 (en) Dynamic styling of digital maps
CN117539971B (en) Massive geographic coordinate aggregation method and related equipment
CN114860796A (en) Earthquake emergency mapping system, method and device based on big data and storage medium
CN116737392A (en) Non-vector data processing method and device and computing equipment
Chang et al. 4-Dimensional portrayal for volcanic ash diffusion utilizing voxel standardization in case of volcanic ash diffusion models
CN115601525A (en) Gridding partition boundary adsorption method and device for geographic information system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant