A rapid mapping method and device for meteorological emergencies
By automatically analyzing and dividing meteorological grid point data, generating and rendering meteorological grid point space layers, combined with three-dimensional topographic layers, dynamic adjustment and visual preview are achieved, solving the problem of single and solidifying mapping results in the existing technology, and improving the efficiency and flexibility of meteorological data mapping.
Patent Information
- Application Number
- CN202411158264.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2044-08-22
AI Technical Summary
The existing meteorological data mapping technology is difficult to meet the needs of rapid response and flexible adjustment of meteorological emergencies. The mapping results are single and solidified, making it difficult to dynamically interactively adjust.
By automatically obtaining and analyzing meteorological grid point data, dividing grid points and generating meteorological grid point space layers, combining three-dimensional terrain layers with fusion rendering, dynamically adjusting the map display level, scale, height, pitch angle and other contents, generating an interactive drawing preview form, and finally outputting the drawing results.
It realizes dynamic adjustment and visual preview according to the needs of meteorological emergencies, improves mapping efficiency, and can quickly output mapping results with different scales and spatial ranges, meeting the needs of meteorological emergencies for efficient mapping.
Smart Images

Figure CN119107421B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of meteorological mapping, and in particular to a rapid mapping method and device for meteorological emergencies. Background Art
[0002] Traditional meteorological data mapping uses desktop software tools to load various meteorological element data and map data resources through human-computer interaction, and then manually configure graphic conformance and style to finally produce mapping images. This method has a high degree of mapping sophistication, but it requires a lot of manpower and time, and has problems such as slow mapping cycle and high mapping cost. It is difficult to meet the needs of rapid mapping in scenarios such as rapid response to emergencies, major event support, and review of major historical events.
[0003] Rapid generation of existing meteorological data Figure 1 Generally, the BS architecture is adopted, and the canvas technology is used based on the browser. A method similar to "screenshot" is used to convert the two-dimensional map and various meteorological element data displayed on the browser into pictures of fixed size, fixed map scale and format for output. Compared with the traditional method, it reduces manual interactive processing and improves the efficiency of mapping. However, there are problems such as single and solid mapping results, difficulty in dynamic interactive adjustment, and difficulty in ensuring the mapping effect. It is difficult to meet the needs of sudden meteorological disasters for fast and flexible mapping.
[0004] The existing meteorological data mapping adopts the method of statically generating images on canvas. On the map form page, if the mapping range size is determined, the mapping parameters cannot be adjusted dynamically, and only graphics with fixed spatial range and scale can be output. Summary of the invention
[0005] (I) Purpose of the invention
[0006] The purpose of the present invention is to provide a method and device for rapid mapping of meteorological emergencies, which can be adjusted and produced in time according to actual needs when facing meteorological emergencies.
[0007] (II) Technical solution
[0008] To solve the above problems, the first aspect of the present invention provides a method for rapid mapping of meteorological emergencies, comprising the following steps:
[0009] Grid point division step: automatically acquiring and parsing meteorological grid point data, determining the spatial resolution, starting longitude and starting latitude of the two-dimensional matrix of the meteorological grid point data, and dividing the area corresponding to the meteorological grid point data into a plurality of grid points according to the starting longitude and the starting latitude;
[0010] The step of generating a meteorological grid point spatial layer is as follows: each grid point in the meteorological grid point data is used as a spatial grid center point to generate a meteorological grid point spatial layer, wherein the grid point is a square, and the side length is the resolution of the grid point data, and the meteorological grid point spatial layer is composed of a plurality of spatial grids corresponding to the grid points one by one;
[0011] Constructing a map window step: constructing a map window with a length of L and a width of W for visually loading the meteorological grid point space layer and the three-dimensional terrain layer, fusing the meteorological grid point space layer with the three-dimensional terrain layer and rendering;
[0012] Creating a mapping template step: creating a mapping template according to a preset rule, and creating a preview container for displaying the contents of all objects in the map window according to the set value of the mapping template;
[0013] Generating a mapping preview window step: generating a preview window according to the mapping template, adjusting the angle, height, direction, map level, and scale of the content displayed in the preview window according to the requirements of the meteorological emergency scene, and performing dynamic adjustment and visual preview;
[0014] Output drawing result step: confirm the final content in the preview window and output the final drawing result.
[0015] Furthermore, in the above-mentioned rapid mapping method for meteorological emergencies
[0016] In the grid point division step, the grid point Z ij The calculation formulas for the four longitudes and latitudes are as follows:
[0017] Min loni =lon+(i-1)×r
[0018] Max loni =lon+i×r
[0019] Min latj = lat + j × r
[0020] Max latj = lat + (j-1) × r
[0021] Among them, Min loni is the lattice point Z ij The minimum longitude, Max loni is the lattice point Z ij The maximum longitude, Min latj is the lattice point Z ij The minimum latitude, Max latj is the lattice point Z ij The maximum latitude of i is the grid point Z ijThe grid row number i, j is the grid point Z ij The number of grid point columns j, r is the spatial resolution of the two-dimensional matrix of the meteorological grid point data, lon is the starting longitude, and lat is the starting latitude.
[0022] Furthermore, in the above-mentioned rapid mapping method for meteorological emergencies
[0023] In the step of generating the meteorological grid point spatial layer, the grid point is consistent with the size of the spatial grid, and the longitude and latitude of the grid point in the step of dividing the grid point are corrected. The corrected calculation formula is as follows:
[0024] RE-Min loni =lon+(i-1)×r+r / 2
[0025] RE-Max loni =lon+i×r+r / 2
[0026] RE-Min latj =lat+j×r+r / 2
[0027] RE-Max latj = lat + (j-1) × r + r / 2
[0028] Among them, RE-Min loni is the modified grid point Z ij Minimum longitude, RE-Max loni is the modified grid point Z ij Maximum longitude, RE-Min latj is the modified grid point Z ij Minimum latitude, RE-Max latj is the modified grid point Z ij The maximum latitude.
[0029] Furthermore, in the above-mentioned rapid mapping method for meteorological emergencies
[0030] In the step of generating a meteorological grid point spatial layer, a meteorological grid point spatial layer is generated using GIS technology, and the specific steps are as follows:
[0031] Creating a spatial data set, the spatial data set includes: a grid point index number field, a longitude field, a latitude field, and a grid point data field;
[0032] Traversing the meteorological grid point data according to the starting longitude and the starting latitude;
[0033] After reading every 10,000 meteorological grid point data, storing the meteorological grid point data that has been read into the grid point data field in the spatial data set;
[0034] Create a spatial index for the spatial dataset.
[0035] Furthermore, in the above-mentioned rapid mapping method for meteorological emergencies
[0036] In the step of constructing a map window, the weather grid layer and the three-dimensional terrain layer are visually loaded using WebGL technology and geographic information technology. The weather grid layer is displayed above the three-dimensional terrain layer and is rendered and loaded in sequence from bottom to top.
[0037] Furthermore, in the above-mentioned rapid mapping method for meteorological emergencies
[0038] In the step of creating a cartographic template, the preset rules include: map size, cartographic scale, cartographic unit, longitude and latitude grid, and compass, and are displayed in the cartographic template;
[0039] The pixel coordinates of the upper left corner and the lower right corner of the preview container are obtained, and the pixel coordinates are converted to the longitude and latitude of the meteorological grid data to convert the pixel coordinates into three-dimensional geographic coordinates, as follows:
[0040] x_geo=a×col+b×row+a×0.5+b×0.5+c
[0041] y_geo=d×col+e×row+d×0.5+e×0.5+f
[0042] Among them, x_geo is the column coordinate of the three-dimensional geographic coordinates, x_geo is the row coordinate of the three-dimensional geographic coordinates, col is the column coordinate of the pixel coordinates, row is the row coordinate of the pixel coordinates, and a, b, c, d, e and f are geographic conversion parameters.
[0043] The second aspect of the present invention provides a meteorological data rapid mapping device, comprising the following modules:
[0044] Grid point division module: used to automatically acquire and parse meteorological grid point data, determine the spatial resolution, starting longitude and starting latitude of the two-dimensional matrix of the meteorological grid point data, and divide the area corresponding to the meteorological grid point data into a plurality of grid points according to the starting longitude and the starting latitude;
[0045] A meteorological grid point spatial layer generation module is used to generate a meteorological grid point spatial layer using each of the grid points in the meteorological grid point data as a spatial grid center point, wherein the grid point is a square with a side length equal to the resolution of the grid point data, and the meteorological grid point spatial layer is composed of a plurality of spatial grids corresponding to the grid points one by one;
[0046] Constructing a map window module: used to construct a map window with a length of L and a width of W and used to visually load the meteorological grid point space layer and the three-dimensional terrain layer, merge the meteorological grid point space layer with the three-dimensional terrain layer and render;
[0047] A mapping template creation module: used to create a mapping template according to preset rules, and to create a preview container for displaying the contents of all objects in the map window according to the set values of the mapping template;
[0048] Generate a mapping preview window module: used to generate a preview window according to the mapping template, adjust the angle, height, direction, map level, scale of the content displayed in the preview window according to the needs of the meteorological emergency scene, and perform dynamic adjustment and visual preview;
[0049] Output drawing result module: used to confirm the final content in the preview window and output the final drawing result.
[0050] By parsing the meteorological grid data, and fusing the meteorological grid data with the three-dimensional terrain data and rendering it, it is displayed in the preview container and can be dynamically adjusted and visually previewed according to actual needs. In the preview window, the display level, scale, height, pitch angle and other contents of the map can be dynamically adjusted according to the actual scene needs of the meteorological emergency. It can output mapping results of different scales and different spatial ranges under the conditions of a certain mapping template without the need to re-map again, which greatly improves the efficiency of rapid mapping for meteorological emergencies, solves the demand for efficient mapping of meteorological emergencies, and greatly improves mapping efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is a schematic diagram of the process of the embodiment shown in the present invention;
[0052] Figure 2 It is a schematic diagram of the final mapping result of the embodiment shown in the present invention;
[0053] Figure 3 It is a structural block diagram of the embodiment shown in the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.
[0055] The embodiments of the present invention will be described below with reference to the accompanying drawings.
[0056] refer to Figure 1 , the embodiment provided by the present invention comprises the following steps:
[0057] Grid point division step: automatically obtain and parse meteorological grid point data, such as data in .NC or .Grib2 format, determine the spatial resolution, starting longitude and starting latitude of the two-dimensional matrix of meteorological grid point data, and divide the area corresponding to the meteorological grid point data into several grid points according to the starting longitude and starting latitude;
[0058] Grid Z ij The calculation formulas for the four longitudes and latitudes are as follows:
[0059] Min loni =lon+(i-1)×r
[0060] Max loni =lon+i×r
[0061] Min latj = lat + j × r
[0062] Max latj = lat + (j-1) × r
[0063] Among them, Min loni is the grid point Z ij The minimum longitude, Max loni is the grid point Z ij The maximum longitude, Min latj is the grid point Z ij The minimum latitude, Max latj is the grid point Z ij The maximum latitude of i is the grid point Z ij Grid row number i, j is grid point Z ij The number of grid columns j, r is the spatial resolution of the two-dimensional matrix of meteorological grid data, lon is the starting longitude, and lat is the starting latitude.
[0064] The step of generating a meteorological grid point spatial layer is as follows: each grid point in the meteorological grid point data is used as a spatial grid center point to generate a meteorological grid point spatial layer, wherein the grid point is a square, and the side length is the resolution of the grid point data, and the meteorological grid point spatial layer is composed of a plurality of spatial grids corresponding to the grid points one by one;
[0065] Each grid point is at the center of its corresponding spatial grid, and each grid point is the same size as the spatial grid. In order to make the center of the grid point at the upper left corner of the spatial grid, all grid points need to be offset to the upper left corner by r / 2. The corrected longitude and latitude calculation formula is as follows:
[0066] RE-Min loni=lon+(i-1)×r+r / 2
[0067] RE-Max loni =lon+i×r+r / 2
[0068] RE-Min latj =lat+j×r+r / 2
[0069] RE-Max latj = lat + (j-1) × r + r / 2
[0070] Among them, RE-Min loni is the modified grid point Z ij Minimum longitude, RE-Max loni is the modified grid point Z ij Maximum longitude, RE-Min latj is the modified grid point Z ij Minimum latitude, RE-Max latj is the modified grid point Z ij The maximum latitude.
[0071] In the step of generating a meteorological grid point spatial layer, a meteorological grid point spatial layer is generated using GIS technology, and the specific steps are as follows:
[0072] Creating a spatial data set, the spatial data set includes: a grid point index number field, a longitude field, a latitude field, and a grid point data field;
[0073] Traversing the meteorological grid point data according to the starting longitude and the starting latitude;
[0074] After reading every 10,000 meteorological grid point data, storing the meteorological grid point data that has been read into the grid point data field in the spatial data set;
[0075] Create a spatial index for the spatial dataset.
[0076] Constructing a map window step: constructing a map window with a length of L and a width of W for visually loading the weather grid layer and the three-dimensional terrain layer, fusing the weather grid layer with the three-dimensional terrain layer and rendering;
[0077] The meteorological grid layer and the three-dimensional terrain layer are visually loaded using WebGL technology and geographic information technology. The meteorological grid layer is displayed above the three-dimensional terrain layer and is rendered and loaded in sequence from bottom to top.
[0078] Creating a mapping template step: creating a mapping template according to preset rules, and creating a preview container for displaying all object contents in the map window according to the set values of the mapping template; the preset rules include: map size, mapping scale, mapping unit, latitude and longitude grid, and compass, which are displayed in the mapping template;
[0079] The pixel coordinates of the upper left corner and the lower right corner of the preview container are obtained, and the pixel coordinates are converted to the longitude and latitude of the meteorological grid data to convert the pixel coordinates into three-dimensional geographic coordinates, as follows:
[0080] x_geo=a×col+b×row+a×0.5+b×0.5+c
[0081] y_geo=d×col+e×row+d×0.5+e×0.5+f
[0082] Among them, x_geo is the column coordinate of the three-dimensional geographic coordinates, x_geo is the row coordinate of the three-dimensional geographic coordinates, col is the column coordinate of the pixel coordinates, row is the row coordinate of the pixel coordinates, and a, b, c, d, e and f are geographic conversion parameters.
[0083] After the coordinate conversion, the displayable three-dimensional geographic coordinate range of the preview container is calculated, thereby forming a dynamic and interactive preview view.
[0084] Generating a mapping preview window step: generating a preview window according to the mapping template, adjusting the angle, height, direction, map level, and scale of the content displayed in the preview window according to the requirements of the meteorological emergency scene, and performing dynamic adjustment and visual preview;
[0085] Output drawing result step: confirm the final content in the preview window and output the final drawing result, such as Figure 2 shown.
[0086] refer to Figure 3 The present invention also provides a meteorological data rapid mapping device, comprising the following modules:
[0087] Grid point division module: used to automatically acquire and parse meteorological grid point data, determine the spatial resolution, starting longitude and starting latitude of the two-dimensional matrix of the meteorological grid point data, and divide the area corresponding to the meteorological grid point data into a plurality of grid points according to the starting longitude and the starting latitude;
[0088] A meteorological grid point spatial layer generation module is used to generate a meteorological grid point spatial layer using each of the grid points in the meteorological grid point data as a spatial grid center point, wherein the grid point is a square with a side length equal to the resolution of the grid point data, and the meteorological grid point spatial layer is composed of a plurality of spatial grids corresponding to the grid points one by one;
[0089] Constructing a map window module: used to construct a map window with a length of L and a width of W and used to visually load the meteorological grid point space layer and the three-dimensional terrain layer, merge the meteorological grid point space layer with the three-dimensional terrain layer and render;
[0090] A mapping template creation module: used to create a mapping template according to preset rules, and to create a preview container for displaying the contents of all objects in the map window according to the set values of the mapping template;
[0091] Generate a mapping preview window module: used to generate a preview window according to the mapping template, adjust the angle, height, direction, map level, scale of the content displayed in the preview window according to the needs of the meteorological emergency scene, and perform dynamic adjustment and visual preview;
[0092] Output drawing result module: used to confirm the final content in the preview window and output the final drawing result.
[0093] It should be understood that the above specific embodiments of the present invention are only used to illustrate or explain the principles of the present invention, and do not constitute a limitation of the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. In addition, the appended claims of the present invention are intended to cover all changes and modifications that fall within the scope and boundaries of the appended claims, or the equivalent forms of such scope and boundaries.
Claims
1. A rapid mapping method for meteorological emergencies, characterized in that: The steps include: Grid point division step: automatically acquiring and parsing meteorological grid point data, determining the spatial resolution, starting longitude and starting latitude of the two-dimensional matrix of the meteorological grid point data, and dividing the area corresponding to the meteorological grid point data into a plurality of grid points according to the starting longitude and the starting latitude; The step of generating a meteorological grid point spatial layer is as follows: each grid point in the meteorological grid point data is used as a spatial grid center point to generate a meteorological grid point spatial layer, wherein the grid point is a square, and the side length is the resolution of the grid point data, and the meteorological grid point spatial layer is composed of a plurality of spatial grids corresponding to the grid points one by one; Constructing a map window step: constructing a map window with a length of L and a width of W for visually loading the meteorological grid point space layer and the three-dimensional terrain layer, fusing the meteorological grid point space layer with the three-dimensional terrain layer and rendering; Creating a mapping template step: creating a mapping template according to a preset rule, and creating a preview container for displaying the contents of all objects in the map window according to the set value of the mapping template; Generating a mapping preview window step: generating a preview window according to the mapping template, adjusting the angle, height, direction, map level, and scale of the content displayed in the preview window according to the requirements of the meteorological emergency scene, and performing dynamic adjustment and visual preview; Output drawing result step: confirm the final content in the preview window and output the final drawing result.
2. The method for rapid mapping of meteorological emergencies according to claim 1 is characterized in that: In the grid point division step, the grid point Z ij The calculation formulas for the four longitudes and latitudes are as follows: My loni =lon+(i-1)×r Max loni =lon+i×r Min latj =lat+j×r Max latj =lat+(j-1)×r Among them, Min loni is the lattice point Z ij The minimum longitude, Max loni is the lattice point Z ij The maximum longitude, Min latj is the lattice point Z ij The minimum latitude, Max latj is the lattice point Z ij The maximum latitude of i is the grid point Z ij The grid row number i, j is the grid point Z ij The number of grid point columns j, r is the spatial resolution of the two-dimensional matrix of the meteorological grid point data, lon is the starting longitude, and lat is the starting latitude.
3. The method for rapid mapping of meteorological emergencies according to claim 2 is characterized in that: In the step of generating a meteorological grid point spatial layer, the grid point Z ij In accordance with the size of the spatial grid, the longitude and latitude of the grid points in the grid point division step are corrected, and the corrected calculation formula is as follows: RE-Min loni =lon+(i-1)×r+r / 2 RE-Max loni =lon+i×r+r / 2 RE-Min latj =lat+j×r+r / 2 RE-Max latj =lat+(j-1)×r+r / 2 Among them, RE-Min loni is the modified grid point Z ij Minimum longitude, RE-Max loni is the modified grid point Z ij Maximum longitude, RE-Min latj is the modified grid point Z ij Minimum latitude, RE-Max latj is the modified grid point Z ij The maximum latitude.
4. The method for rapid mapping of meteorological emergencies according to claim 1 is characterized in that: In the step of generating a meteorological grid point spatial layer, a meteorological grid point spatial layer is generated using GIS technology, and the specific steps are as follows: Creating a spatial data set, the spatial data set includes: a grid point index number field, a longitude field, a latitude field, and a grid point data field; Traversing the meteorological grid point data according to the starting longitude and the starting latitude; After reading every 10,000 meteorological grid point data, storing the meteorological grid point data that has been read into the grid point data field in the spatial data set; Create a spatial index for the spatial dataset.
5. The method for rapid mapping of meteorological emergencies according to claim 1 is characterized in that: In the step of constructing a map window, the meteorological grid space layer and the three-dimensional terrain layer are visually loaded using WebGL technology and geographic information technology. The meteorological grid space layer is displayed above the three-dimensional terrain layer and is rendered and loaded in sequence from bottom to top.
6. The method for rapid mapping of meteorological emergencies according to claim 1 is characterized in that: In the step of creating a cartographic template, the preset rules include: map size, cartographic scale, cartographic unit, longitude and latitude grid, and compass, and are displayed in the cartographic template; The pixel coordinates of the upper left corner and the lower right corner of the preview container are obtained, and the pixel coordinates are converted to the longitude and latitude of the meteorological grid data to convert the pixel coordinates into three-dimensional geographic coordinates, as follows: x_geo=a×col+b×row+a×0.5+b×0.5+c y_geo=d×col+e×row+d×0.5+e×0.5+f Among them, x_geo is the column coordinate of the three-dimensional geographic coordinates, x_geo is the row coordinate of the three-dimensional geographic coordinates, col is the column coordinate of the pixel coordinates, row is the row coordinate of the pixel coordinates, and a, b, c, d, e and f are geographic conversion parameters.
7. A meteorological data rapid mapping device, characterized in that: Includes the following modules: Grid point division module: used to automatically acquire and parse meteorological grid point data, determine the spatial resolution, starting longitude and starting latitude of the two-dimensional matrix of the meteorological grid point data, and divide the area corresponding to the meteorological grid point data into a plurality of grid points according to the starting longitude and the starting latitude; A meteorological grid point spatial layer generation module is used to generate a meteorological grid point spatial layer using each of the grid points in the meteorological grid point data as a spatial grid center point, wherein the grid point is a square with a side length equal to the resolution of the grid point data, and the meteorological grid point spatial layer is composed of a plurality of spatial grids corresponding to the grid points one by one; Constructing a map window module: used to construct a map window with a length of L and a width of W and used to visually load the meteorological grid point space layer and the three-dimensional terrain layer, merge the meteorological grid point space layer with the three-dimensional terrain layer and render; A mapping template creation module: used to create a mapping template according to preset rules, and to create a preview container for displaying the contents of all objects in the map window according to the set values of the mapping template; Generate a mapping preview window module: used to generate a preview window according to the mapping template, adjust the angle, height, direction, map level, scale of the content displayed in the preview window according to the needs of the meteorological emergency scene, and perform dynamic adjustment and visual preview; Output drawing result module: used to confirm the final content in the preview window and output the final drawing result.
Citation Information
Patent Citations
Three-dimensional terrain rendering method and device based on Threejs and Geoserver
CN117333631A
System for generating stereoscopic image of fractal landscape, and program for generating stereoscopic image of fractal landscape
WO2024135622A1