Terrain elevation value determination method and device, electronic equipment and storage medium

By collecting elevation data during vehicle driving and dividing the coordinate grid, and using the elevation value containing the vehicle position coordinates to determine the elevation values ​​of other coordinate grids, the problem of long time-consuming acquisition of terrain elevation data in the existing technology is solved, and high efficiency is achieved. The elevation value is determined.

CN118730034APending Publication Date: 2024-10-01BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310341540.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The process of obtaining terrain elevation data in the existing technology is time-consuming and requires a lot of manpower and material resources. Especially when producing high-precision maps, it cannot be completed quickly when the terrain elevation data is missing.

Method used

By collecting elevation data while the vehicle is driving, the geographical space area where it is located is divided into multiple coordinate grids, and the elevation values ​​of the coordinate grid containing the vehicle position coordinates are used to determine the elevation values ​​of other coordinate grids, thereby improving the elevation values. determination efficiency.

Benefits of technology

It realizes the rapid acquisition of terrain elevation data without relying on topographic surveyors, improves the efficiency of determining elevation values, and avoids the need to collect coordinate elevation values ​​at other locations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118730034A_ABST
    Figure CN118730034A_ABST
Patent Text Reader

Abstract

The invention relates to a terrain elevation value determination method and device, electronic equipment and a storage medium, and is applied to the technical field of data processing, the method comprises the steps that multiple pieces of elevation data collected in the driving process of a vehicle are acquired, and each piece of elevation data comprises a vehicle position coordinate and an elevation value corresponding to the vehicle position coordinate; dividing a geographic space region where the elevation data is located into a plurality of coordinate grids; for each coordinate grid containing the vehicle position coordinates, determining the elevation value of the coordinate grid based on the elevation values of the vehicle position coordinates contained in the coordinate grid; for each coordinate grid not containing the vehicle position coordinates, selecting N first target coordinate grids containing the vehicle position coordinates from other coordinate grids according to the position relationship between the other coordinate grids and the coordinate grid; and based on the elevation values of the N first target coordinate grids, determining the elevation value of the coordinate grid which does not contain the vehicle position coordinates. The method can improve the efficiency of determining the elevation value of the terrain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device, electronic device and storage medium for determining terrain elevation values. Background Art

[0002] Terrain elevation refers to the distance from a point along the plumb line to the absolute base surface. In related technologies, the process of obtaining terrain elevation data is that terrain surveyors use professional instruments to observe the terrain and use the observed values ​​to obtain terrain elevation data. This method is time-consuming and requires a lot of manpower and material resources. Especially in the process of making high-precision maps, due to the large amount of terrain elevation data that needs to be measured, when terrain elevation data is missing, it is impossible to complete the production of high-precision maps in a short time. Therefore, without using surveyors to measure the terrain, quickly obtaining terrain elevation data has become an urgent problem to be solved. Summary of the invention

[0003] In order to solve the above technical problems, the present application provides a method, device, electronic device and storage medium for determining terrain elevation values.

[0004] According to a first aspect of the present application, a method for determining a terrain elevation value is provided, comprising:

[0005] Acquire multiple elevation data collected by the vehicle during driving, wherein each elevation data includes a vehicle position coordinate and an elevation value corresponding to the vehicle position coordinate;

[0006] Dividing the geographic space region where the elevation data is located into a plurality of coordinate grids;

[0007] For each coordinate grid containing vehicle position coordinates, determining the elevation value of the coordinate grid based on the elevation value of the vehicle position coordinates contained in the coordinate grid;

[0008] For each coordinate grid that does not include the vehicle position coordinates, select N first target coordinate grids that include the vehicle position coordinates from other coordinate grids in the plurality of coordinate grids according to the positional relationship between the coordinate grid and the other coordinate grids, where N is a positive integer;

[0009] Based on the elevation values ​​of the N first target coordinate grids, the elevation value of the coordinate grid that does not include the vehicle position coordinates is determined.

[0010] Optionally, after determining the elevation values ​​of the multiple coordinate grids, the method further includes:

[0011] For each of the coordinate grids, M second target coordinate grids are selected from the remaining coordinate grids in the plurality of coordinate grids in order from near to far from the coordinate grid, where M is a positive integer;

[0012] Based on the M elevation values ​​of the second target coordinate grids, the elevation values ​​of the coordinate grids are smoothed to obtain smoothed elevation values ​​of the coordinate grids.

[0013] Optionally, determining the elevation value of a coordinate grid that does not include the vehicle position coordinates based on the elevation values ​​of the N first target coordinate grids includes:

[0014] Determine the average of the elevation values ​​of the N first target coordinate grids as the elevation value of the coordinate grid that does not include the vehicle position coordinates; or,

[0015] Determine the weights corresponding to the N first target coordinate grids based on the distances between the N first target coordinate grids and the coordinate grid that does not include the vehicle position coordinates;

[0016] According to the weights, weighted average is performed on the elevation values ​​of the N first target coordinate grids, and the obtained weighted average is determined as the elevation value of the coordinate grid that does not include the vehicle position coordinates.

[0017] Optionally, determining the weights corresponding to the N first target coordinate grids based on the distances between the N first target coordinate grids and the coordinate grid that does not include the vehicle position coordinates, includes:

[0018] Based on the distances between the N first target coordinate grids and the coordinate grid that does not include the vehicle position coordinates, an inverse distance weighting method is used to obtain an inverse distance weight of each first target coordinate grid.

[0019] Optionally, determining the elevation value of the coordinate grid based on the elevation value of the vehicle position coordinates contained in the coordinate grid includes:

[0020] Determine the average value of the elevation values ​​of the vehicle position coordinates contained in the coordinate grid as the elevation value of the coordinate grid; or,

[0021] The maximum value of the elevation values ​​of the vehicle position coordinates contained in the coordinate grid is determined as the elevation value of the coordinate grid.

[0022] Optionally, the smoothing the elevation values ​​of the coordinate grid based on the M elevation values ​​of the second target coordinate grids to obtain the smoothed elevation values ​​of the coordinate grid includes:

[0023] Determining a target elevation value according to the elevation values ​​of the M second target coordinate grids and the elevation value of the coordinate grid;

[0024] The target elevation value is determined as the smoothed elevation value of the coordinate grid.

[0025] Optionally, before dividing the geographic space region where the elevation data is located into a plurality of coordinate grids, the method further comprises:

[0026] Obtaining the maximum latitude, minimum latitude, maximum longitude and minimum longitude of the vehicle position coordinates in the elevation data;

[0027] A quadrilateral area formed by the maximum latitude, the minimum latitude, the maximum longitude and the minimum longitude is determined as the geographic space area where the elevation data is located.

[0028] Optionally, selecting N first target coordinate grids including vehicle position coordinates from other coordinate grids in the plurality of coordinate grids according to a positional relationship between the coordinate grid and the other coordinate grids includes:

[0029] Selecting N first target coordinate grids containing the vehicle position coordinates from other coordinate grids in the plurality of coordinate grids in order from near to far from the coordinate grids; or,

[0030] A coordinate grid adjacent to the coordinate grid and including the vehicle position coordinates is selected from the other coordinate grids, and the selected coordinate grids are used as N first target coordinate grids.

[0031] According to a second aspect of the present application, a device for determining a terrain elevation value is provided, comprising:

[0032] An elevation data acquisition module, used to acquire a plurality of elevation data collected by the vehicle during driving, wherein each elevation data includes a vehicle position coordinate and an elevation value corresponding to the vehicle position coordinate;

[0033] A geographic space region division module, used for dividing the geographic space region where the elevation data is located into a plurality of coordinate grids;

[0034] A grid elevation value determination module, for determining, for each coordinate grid containing vehicle position coordinates, an elevation value of the coordinate grid based on the elevation value of the vehicle position coordinates contained in the coordinate grid;

[0035] A first target coordinate grid selection module is used for selecting, for each coordinate grid that does not include the vehicle position coordinates, N first target coordinate grids that include the vehicle position coordinates from other coordinate grids in the plurality of coordinate grids according to the positional relationship between the coordinate grid and the other coordinate grids, wherein N is a positive integer;

[0036] The grid elevation value determination module is further used to determine the elevation value of the coordinate grid that does not include the vehicle position coordinates based on the elevation values ​​of the N first target coordinate grids.

[0037] Optionally, the terrain elevation value determining device further includes:

[0038] A second target coordinate grid selection module is used to select, for each of the coordinate grids, M second target coordinate grids from the remaining coordinate grids in the plurality of coordinate grids in order from near to far from the coordinate grid, where M is a positive integer;

[0039] The elevation value smoothing processing module is used to smooth the elevation value of the coordinate grid based on the elevation values ​​of the M second target coordinate grids to obtain the smoothed elevation value of the coordinate grid.

[0040] Optionally, the grid elevation value determination module is specifically used to determine the average value of the elevation values ​​of the N first target coordinate grids as the elevation value of the coordinate grid that does not include the vehicle position coordinates; or, based on the distances between the N first target coordinate grids and the coordinate grid that does not include the vehicle position coordinates, determine the weights corresponding to the N first target coordinate grids respectively; according to the weights, perform weighted averaging on the elevation values ​​of the N first target coordinate grids, and determine the obtained weighted average value as the elevation value of the coordinate grid that does not include the vehicle position coordinates.

[0041] Optionally, the grid elevation value determination module is specifically used to determine the weights corresponding to the N first target coordinate grids based on the distances between the N first target coordinate grids and the coordinate grid that does not include the vehicle position coordinates in the following manner:

[0042] Based on the distances between the N first target coordinate grids and the coordinate grid that does not include the vehicle position coordinates, an inverse distance weighting method is used to obtain an inverse distance weight of each first target coordinate grid.

[0043] Optionally, the grid elevation value determination module is specifically used to determine the average value of the elevation values ​​of the vehicle position coordinates contained in the coordinate grid as the elevation value of the coordinate grid; or, to determine the maximum value of the elevation values ​​of the vehicle position coordinates contained in the coordinate grid as the elevation value of the coordinate grid.

[0044] Optionally, the elevation value smoothing processing module is specifically used to determine the target elevation value according to the elevation values ​​of the M second target coordinate grids and the elevation value of the coordinate grid; and determine the target elevation value as the smoothed elevation value of the coordinate grid.

[0045] Optionally, the terrain elevation value determining device further includes:

[0046] The geographic space area determination module is used to obtain the maximum latitude, minimum latitude, maximum longitude and minimum longitude of the vehicle position coordinates in the elevation data; and determine the quadrilateral area formed by the maximum latitude, minimum latitude, maximum longitude and minimum longitude as the geographic space area where the elevation data is located.

[0047] Optionally, the first target coordinate grid selection module is specifically used to select, for each coordinate grid that does not contain the vehicle position coordinates, N first target coordinate grids containing the vehicle position coordinates from other coordinate grids in the multiple coordinate grids in order from near to far from the coordinate grid; or, to select a coordinate grid adjacent to the coordinate grid and containing the vehicle position coordinates from the other coordinate grids, and use the selected coordinate grids as the N first target coordinate grids.

[0048] According to a third aspect of the present application, an electronic device is provided, comprising: a processor, the processor being used to execute a computer program stored in a memory, the computer program implementing the method for determining terrain elevation values ​​described in the first aspect when executed by the processor.

[0049] According to a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for determining terrain elevation values ​​described in the first aspect is implemented.

[0050] According to a fifth aspect of the present application, a computer program product is provided. When the computer program product is run on a computer, the computer is enabled to execute the method for determining terrain elevation values ​​described in the first aspect.

[0051] Compared with the prior art, the technical solution provided by the embodiments of the present application has the following advantages:

[0052] By acquiring multiple elevation data collected by the vehicle during driving, each elevation data includes the vehicle position coordinates and the elevation value corresponding to the vehicle position coordinates, the geographic space area where the elevation data is located can be divided into multiple coordinate grids. For each coordinate grid containing the vehicle position coordinates, the elevation value of the coordinate grid is determined directly based on the elevation value of the vehicle position coordinates contained in the coordinate grid. For each coordinate grid that does not contain the vehicle position coordinates, N first target coordinate grids containing the vehicle position coordinates can be selected from other coordinate grids according to the positional relationship between other coordinate grids and the coordinate grid in the multiple coordinate grids, N is a positive integer, and then based on the elevation values ​​of the N first target coordinate grids, the elevation value of the coordinate grid that does not contain the vehicle position coordinates is determined, thereby obtaining the elevation value of each coordinate grid in the geographic space area. It can be seen that the present application collects a small amount of elevation data by the vehicle during driving, and can determine the elevation values ​​of other position coordinates in the geographic space area where the elevation data is located according to the elevation values ​​of a small amount of vehicle position coordinates, thereby avoiding the collection of elevation values ​​of other position coordinates in the geographic space area, and therefore, the efficiency of determining the elevation value in the geographic space area can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0054] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0055] Figure 1 A schematic diagram showing a system architecture of an exemplary application environment of the method for determining terrain elevation values ​​according to an embodiment of the present application;

[0056] Figure 2 A flow chart of a method for determining terrain elevation values ​​in an embodiment of the present application;

[0057] Figure 3 It is another flow chart of the method for determining terrain elevation value in the embodiment of the present application;

[0058] Figure 4 A schematic diagram of a structure of a device for determining terrain elevation values ​​in an embodiment of the present application;

[0059] Figure 5 A schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0060] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0061] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only part of the embodiments of the present application, rather than all of the embodiments.

[0062] Figure 1 A schematic diagram of a system architecture of an exemplary application environment that can be applied to the method for determining terrain elevation values ​​according to an embodiment of the present application is shown.

[0063] like Figure 1 As shown, the system architecture 100 may include a GPS device 101, a network 102, and a server 103. The network 102 is used to provide a medium for a communication link between the GPS device 101 and the server 103. It should be understood that Figure 1 The number of GPS devices 101, networks and servers in the figure is only for illustration. According to the implementation requirements, there may be any number of GPS devices, networks and servers. For example, the server 103 may be a server cluster composed of multiple servers. The GPS device may be installed in a vehicle, and the elevation data may be collected while the vehicle is traveling.

[0064] The terrain elevation value determination method provided in the embodiment of the present application is generally executed by the server 103, and accordingly, the terrain elevation value determination device can be set in the server 103. For example, the server 103 can obtain multiple elevation data collected by the vehicle during driving from the GPS device 101, each elevation data includes the vehicle position coordinates and the elevation value corresponding to the vehicle position coordinates, and divides the geographic space area where the elevation data is located into multiple coordinate grids. For each coordinate grid containing the vehicle position coordinates, the elevation value of the coordinate grid is determined based on the elevation value of the vehicle position coordinates contained in the coordinate grid; for each coordinate grid that does not contain the vehicle position coordinates, according to the positional relationship between other coordinate grids in the multiple coordinate grids and the coordinate grid, N first target coordinate grids containing the vehicle position coordinates are selected from other coordinate grids. Based on the elevation values ​​of the N first target coordinate grids, the elevation value of the coordinate grid that does not contain the vehicle position coordinates is determined. It can be seen that the present application can determine the elevation values ​​of other position coordinates in the geographic space area where the elevation data is located based on the elevation values ​​of a small number of vehicle position coordinates by collecting a small amount of elevation data during the vehicle's driving process, thereby avoiding the collection of elevation values ​​of other position coordinates in the geographic space area. Therefore, the efficiency of determining the elevation values ​​in the geographic space area can be improved.

[0065] The following first introduces in detail the method for determining the terrain elevation value in the embodiment of the present application.

[0066] See also Figure 2 , Figure 2 A flow chart of a method for determining terrain elevation values ​​in an embodiment of the present application may include the following steps:

[0067] Step S210, obtaining a plurality of elevation data collected during the driving process of the vehicle, wherein each elevation data includes a vehicle position coordinate and an elevation value corresponding to the vehicle position coordinate.

[0068] In the embodiment of the present application, elevation data can be collected by a GPS device, and the elevation data is the elevation value of different position coordinates. During the driving process of the vehicle, the elevation values ​​of different position coordinates can be collected by a GPS device installed in the vehicle. For example, during the driving process of the vehicle, the elevation data is collected once every preset time period (such as 1 second), and the elevation values ​​of different vehicle position coordinates can be obtained.

[0069] Step S220, dividing the geographic space area where the elevation data is located into a plurality of coordinate grids.

[0070] The geographic space region where the elevation data is located refers to the geographic space region that contains all the elevation data. The geographic space region can be a continuous region or multiple discontinuous regions, which can be determined according to the specific distribution of the elevation data. In some embodiments, if all the elevation data are distributed relatively evenly, the geographic space region where the elevation data is located can be one region; if all the elevation data are distributed unevenly, the geographic space region where the elevation data is located can be multiple regions, and the elevation data in each region is relatively concentrated as a whole.

[0071] In the embodiment of the present application, the geographic space area where the elevation data is located can be divided into granularities to obtain multiple coordinate grids, each of which corresponds to a smaller geographic space area. It is understandable that the finer the granularity of the geographic space area, the more coordinate grids are obtained, and the more accurate the elevation value of each coordinate grid is finally determined. However, the more coordinate grids there are, the more calculations will be increased. Here, a suitable granularity can be selected, and the calculation accuracy will not be increased too much.

[0072] Step S230: for each coordinate grid including the vehicle position coordinates, determine the elevation value of the coordinate grid based on the elevation value of the vehicle position coordinates included in the coordinate grid.

[0073] If the coordinate grid contains the vehicle position coordinates, it indicates that the elevation value of the vehicle position coordinates in the coordinate grid is collected, and the elevation value of the coordinate grid can be directly obtained based on the elevation value of the vehicle position coordinates. In some embodiments, the average value of the elevation values ​​of the vehicle position coordinates contained in the coordinate grid can be determined as the elevation value of the coordinate grid. It can be understood that when the coordinate grid contains a vehicle position coordinate, the elevation value of the vehicle position coordinate is the elevation value of the coordinate grid. Alternatively, the maximum value of the elevation value of the vehicle position coordinates contained in the coordinate grid can also be determined as the elevation value of the coordinate grid.

[0074] Step S240, for each coordinate grid that does not contain the vehicle position coordinates, select N first target coordinate grids that contain the vehicle position coordinates from other coordinate grids according to the positional relationship between the coordinate grid and the other coordinate grids in the plurality of coordinate grids, where N is a positive integer.

[0075] If the coordinate grid does not contain the vehicle position coordinates, it means that the elevation values ​​of each position in the coordinate grid have not been collected by the GPS device. At this time, the elevation value of the coordinate grid can be determined by interpolation. In some embodiments, N first target coordinate grids containing vehicle position coordinates can be selected from other coordinate grids in multiple coordinate grids in order from near to far from the coordinate grid. Among them, N can be a preset value or a fixed value. Alternatively, a coordinate grid adjacent to the coordinate grid and containing the vehicle position coordinates is selected from other coordinate grids, and the selected coordinate grid is used as the N first target coordinate grids. In this case, for different coordinate grids, the number of first target coordinate grids finally selected may be different.

[0076] Step S250: determining the elevation value of the coordinate grid that does not include the vehicle position coordinates based on the elevation values ​​of the N first target coordinate grids.

[0077] After selecting N first target coordinate grids, the average of the elevation values ​​of the N first target coordinate grids can be directly determined as the elevation value of the coordinate grid that does not contain the vehicle position coordinates. Alternatively, the weights corresponding to the N first target coordinate grids can be determined based on the distances between the N first target coordinate grids and the coordinate grid that does not contain the vehicle position coordinates; based on the weights, the elevation values ​​of the N first target coordinate grids are weighted averaged, and the obtained weighted average is determined as the elevation value of the coordinate grid that does not contain the vehicle position coordinates. It can be understood that the closer the distance between the first target coordinate grid and the coordinate grid, the greater the weight corresponding to the first target coordinate grid, and vice versa, the smaller the weight corresponding to the first target coordinate grid.

[0078] In some embodiments, the inverse distance weight of each first target coordinate grid may be obtained by an inverse distance weighting method based on the distances between the N first target coordinate grids and the coordinate grid that does not include the vehicle position coordinates.

[0079] Specifically, it can be expressed by the following formula:

[0080] Determine a weight corresponding to the first target coordinate grid;

[0081] Among them, w i represents the weight corresponding to the i-th first target coordinate grid, h i Represents the distance between the i-th first target coordinate grid and the coordinate grid that does not contain the vehicle position coordinates.

[0082] The elevation value determination method of the embodiment of the present application can divide the geographic space area where the elevation data is located into multiple coordinate grids by acquiring multiple elevation data collected by the vehicle during driving, each elevation data includes the vehicle position coordinates and the elevation value corresponding to the vehicle position coordinates. For each coordinate grid containing the vehicle position coordinates, the elevation value of the coordinate grid is determined directly based on the elevation value of the vehicle position coordinates contained in the coordinate grid. For each coordinate grid that does not contain the vehicle position coordinates, N first target coordinate grids containing the vehicle position coordinates can be selected from other coordinate grids according to the positional relationship between other coordinate grids in the multiple coordinate grids and the coordinate grid, N is a positive integer, and then based on the elevation values ​​of the N first target coordinate grids, the elevation value of the coordinate grid that does not contain the vehicle position coordinates is determined, thereby obtaining the elevation value of each coordinate grid in the geographic space area. It can be seen that the present application collects a small amount of elevation data by the vehicle during driving, and can determine the elevation values ​​of other position coordinates in the geographic space area where the elevation data is located according to the elevation values ​​of a small amount of vehicle position coordinates, thereby avoiding the collection of the elevation values ​​of other position coordinates in the geographic space area, and therefore, the efficiency of determining the elevation value in the geographic space area can be improved.

[0083] See also Figure 3 , Figure 3 This is another flow chart of a method for determining terrain elevation values ​​in an embodiment of the present application, which may include the following steps:

[0084] Step S310, obtaining a plurality of elevation data collected during the driving process of the vehicle, wherein each elevation data includes a vehicle position coordinate and an elevation value corresponding to the vehicle position coordinate.

[0085] Step S320, obtaining the maximum latitude, minimum latitude, maximum longitude and minimum longitude of the vehicle position coordinates in the elevation data, and determining the quadrilateral area formed by the maximum latitude, minimum latitude, maximum longitude and minimum longitude as the geographic space area where the elevation data is located.

[0086] In the embodiment of the present application, in order to obtain the elevation values ​​of more position coordinates, a larger geographic space area can be obtained as much as possible. Therefore, the quadrilateral area composed of the maximum latitude, minimum latitude, maximum longitude and minimum longitude of the vehicle position coordinates in the elevation data can be used as the geographic space area where the elevation data is located.

[0087] Step S330, dividing the geographic space area where the elevation data is located into a plurality of coordinate grids.

[0088] For example, the minimum longitude value of the vehicle position coordinate in the elevation data is l1, the maximum longitude value is l2, the minimum latitude value is a1, and the maximum latitude value is a2. Based on these four values, a quadrilateral is obtained, and the quadrilateral is divided equally to obtain s*d rectangular planes. It should be noted that the coordinate grid of the boundary area can be supplemented or deleted so that the final coordinate grid is a rectangle.

[0089] Step S340: for each coordinate grid including the vehicle position coordinates, determine the elevation value of the coordinate grid based on the elevation value of the vehicle position coordinates included in the coordinate grid.

[0090] Step S350, for each coordinate grid that does not contain the vehicle position coordinates, select N first target coordinate grids that contain the vehicle position coordinates from other coordinate grids according to the positional relationship between the coordinate grid and the other coordinate grids in the plurality of coordinate grids, where N is a positive integer.

[0091] Step S360: Determine the elevation value of the coordinate grid that does not include the vehicle position coordinates based on the elevation values ​​of the N first target coordinate grids.

[0092] Step S370 , for each coordinate grid, select M second target coordinate grids from the remaining coordinate grids in the plurality of coordinate grids in order from near to far from the coordinate grid, where M is a positive integer.

[0093] In the embodiment of the present application, after obtaining the elevation values ​​of all coordinate grids, the elevation values ​​of the coordinate grids can also be smoothed to improve the accuracy of the elevation values ​​of the coordinate grids. For each coordinate grid, M second target coordinate grids that are closer to the grid can be selected to smooth the elevation values ​​of the coordinate grid through the M second target coordinate grids. Among them, the second target coordinate grid can be a coordinate grid adjacent to the coordinate grid, and can also include a coordinate grid that is not adjacent to the coordinate grid but is relatively close to it.

[0094] Step S380, based on the elevation values ​​of the M second target coordinate grids, the elevation values ​​of the coordinate grids are smoothed to obtain smoothed elevation values ​​of the coordinate grids.

[0095] In the embodiment of the present application, the target elevation value can be determined according to the elevation values ​​of the M second target coordinate grids and the elevation value of the coordinate grid, and the target elevation value is determined as the smoothed elevation value of the coordinate grid. For example, the average value of the elevation values ​​of the M second target coordinate grids and the elevation value of the coordinate grid can be directly determined as the smoothed elevation value of the coordinate grid. Alternatively, the weights of each second target coordinate grid and the weight corresponding to the coordinate grid itself can be determined first, and the elevation values ​​of the second target coordinate grid and the elevation values ​​of the coordinate grid are weighted averaged, and the obtained weighted average value is determined as the smoothed elevation value of the coordinate grid. Among them, the weights corresponding to the second target coordinate grid are all less than the weights corresponding to the coordinate grid itself, and the closer the second target coordinate grid is to the coordinate grid, the greater the weight corresponding to the second target coordinate grid is.

[0096] Above Figure 3 Example and Figure 2 For details of the same embodiments, see Figure 2 The description in the embodiments is sufficient and will not be repeated here.

[0097] In order to obtain the elevation values ​​of more position coordinates, the elevation value determination method of the embodiment of the present application can determine the quadrilateral formed by the maximum latitude, minimum latitude, maximum longitude and minimum longitude of the vehicle position coordinates in the elevation data as the geographic space area where the elevation data is located. By dividing the geographic space area into granularities, multiple coordinate grids are obtained, and the elevation value of each coordinate grid is determined. Afterwards, the elevation value of each coordinate grid can be further smoothed to improve the accuracy of the coordinate grid elevation value determination.

[0098] Corresponding to the above method embodiment, the present application embodiment also provides a terrain elevation value determination device, see Figure 4 , the terrain elevation value determining device 400 comprises:

[0099] The elevation data acquisition module 410 is used to acquire a plurality of elevation data collected during the driving process of the vehicle, wherein each elevation data includes the vehicle position coordinates and the elevation value corresponding to the vehicle position coordinates;

[0100] A geographic space region division module 420 is used to divide the geographic space region where the elevation data is located into a plurality of coordinate grids;

[0101] A grid elevation value determination module 430 is used to determine the elevation value of each coordinate grid containing the vehicle position coordinates based on the elevation value of the vehicle position coordinates contained in the coordinate grid;

[0102] A first target coordinate grid selection module 440 is used to select N first target coordinate grids containing the vehicle position coordinates from other coordinate grids according to the positional relationship between the other coordinate grids and the coordinate grid, for each coordinate grid that does not contain the vehicle position coordinates, where N is a positive integer;

[0103] The grid elevation value determination module 430 is further configured to determine the elevation value of the coordinate grid that does not include the vehicle position coordinates based on the elevation values ​​of the N first target coordinate grids.

[0104] Optionally, the terrain elevation value determining device 400 further includes:

[0105] A second target coordinate grid selection module is used to select M second target coordinate grids from the remaining coordinate grids in the plurality of coordinate grids in order from near to far from each coordinate grid, where M is a positive integer;

[0106] The elevation value smoothing processing module is used to smooth the elevation values ​​of the coordinate grid based on the elevation values ​​of the M second target coordinate grids to obtain the smoothed elevation values ​​of the coordinate grid.

[0107] Optionally, the grid elevation value determination module 430 is specifically used to determine the average value of the elevation values ​​of the N first target coordinate grids as the elevation value of the coordinate grid that does not include the vehicle position coordinates; or, based on the distances between the N first target coordinate grids and the coordinate grid that does not include the vehicle position coordinates, determine the weights corresponding to the N first target coordinate grids respectively; according to the weights, perform weighted averaging on the elevation values ​​of the N first target coordinate grids, and determine the obtained weighted average value as the elevation value of the coordinate grid that does not include the vehicle position coordinates.

[0108] Optionally, the grid elevation value determination module 430 is specifically configured to determine the weights corresponding to the N first target coordinate grids based on the distances between the N first target coordinate grids and the coordinate grid that does not include the vehicle position coordinates in the following manner:

[0109] Based on the distances between the N first target coordinate grids and the coordinate grid that does not include the vehicle position coordinates, an inverse distance weighting method is used to obtain an inverse distance weight of each first target coordinate grid.

[0110] Optionally, the grid elevation value determination module 430 is specifically used to determine the average value of the elevation values ​​of the vehicle position coordinates contained in the coordinate grid as the elevation value of the coordinate grid; or, to determine the maximum value of the elevation values ​​of the vehicle position coordinates contained in the coordinate grid as the elevation value of the coordinate grid.

[0111] Optionally, the elevation value smoothing processing module is specifically used to determine the target elevation value according to the elevation values ​​of the M second target coordinate grids and the elevation value of the coordinate grid; and determine the target elevation value as the smoothed elevation value of the coordinate grid.

[0112] Optionally, the terrain elevation value determining device 400 further includes:

[0113] The geographic space area determination module is used to obtain the maximum latitude, minimum latitude, maximum longitude and minimum longitude of the vehicle position coordinates in the elevation data; and determine the quadrilateral area formed by the maximum latitude, minimum latitude, maximum longitude and minimum longitude as the geographic space area where the elevation data is located.

[0114] Optionally, the first target coordinate grid selection module 440 is specifically used to select, for each coordinate grid that does not contain the vehicle position coordinates, N first target coordinate grids that contain the vehicle position coordinates from other coordinate grids in multiple coordinate grids in order from near to far distance from the coordinate grid; or, to select a coordinate grid that is adjacent to the coordinate grid and contains the vehicle position coordinates from other coordinate grids, and use the selected coordinate grids as the N first target coordinate grids.

[0115] The specific details of each module or unit in the above device have been described in detail in the corresponding method, so they will not be repeated here.

[0116] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0117] In an exemplary embodiment of the present application, an electronic device is also provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the above-mentioned method for determining terrain elevation values ​​in this exemplary embodiment.

[0118] Figure 5 This is a schematic diagram of the structure of an electronic device in an embodiment of the present application. It should be noted that: Figure 5 The electronic device 500 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0119] like Figure 5 As shown, electronic device 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In RAM 503, various programs and data required for system operation are also stored. Central processing unit 501, ROM 502 and RAM 503 are connected to each other via a bus 504. Input / output (I / O) interface 505 is also connected to bus 504.

[0120] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a local area network (LAN) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.

[0121] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 509, and / or installed from a removable medium 511. When the computer program is executed by the central processing unit 501, various functions defined in the device of the present application are executed.

[0122] In an embodiment of the present application, a computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned method for determining terrain elevation values ​​is implemented.

[0123] It should be noted that the computer-readable storage medium shown in the present application may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, radio frequency, etc., or any suitable combination of the above.

[0124] In an embodiment of the present application, a computer program product is also provided. When the computer program product is run on a computer, the computer executes the above-mentioned method for determining terrain elevation values.

[0125] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0126] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for determining terrain elevation, characterized in that: The method comprises: Acquire multiple elevation data collected during the vehicle's travel, wherein each elevation data includes a vehicle position coordinate and an elevation value corresponding to the vehicle position coordinate; Dividing the geographic space region where the elevation data is located into a plurality of coordinate grids; For each coordinate grid containing vehicle position coordinates, determining an elevation value of the coordinate grid based on the elevation value of the vehicle position coordinates contained in the coordinate grid; For each coordinate grid that does not include the vehicle position coordinates, selecting N first target coordinate grids that include the vehicle position coordinates from other coordinate grids in the plurality of coordinate grids based on a positional relationship between the coordinate grid and the other coordinate grids, where N is a positive integer; Based on the elevation values ​​of the N first target coordinate grids, an elevation value of a coordinate grid that does not include the vehicle position coordinates is determined.

2. The method according to claim 1, characterized in that After determining the elevation values ​​of the plurality of coordinate grids, the method further includes: For each of the coordinate grids, selecting M second target coordinate grids from the remaining coordinate grids in the plurality of coordinate grids in order from near to far from the coordinate grid, where M is a positive integer; Based on the M elevation values ​​of the second target coordinate grids, the elevation values ​​of the coordinate grids are smoothed to obtain smoothed elevation values ​​of the coordinate grids.

3. The method according to claim 1 or 2, characterized in that The determining, based on the elevation values ​​of the N first target coordinate grids, the elevation value of the coordinate grid excluding the vehicle position coordinates comprises: Determine the average of the elevation values ​​of the N first target coordinate grids as the elevation value of the coordinate grid that does not include the vehicle position coordinates; or, Determining weights corresponding to the N first target coordinate grids based on distances between the N first target coordinate grids and the coordinate grid that does not include the vehicle position coordinates; According to the weights, a weighted average is performed on the elevation values ​​of the N first target coordinate grids, and the obtained weighted average is determined as the elevation value of the coordinate grid that does not include the vehicle position coordinates.

4. The method according to claim 3, characterized in that The determining weights corresponding to the N first target coordinate grids based on the distances between the N first target coordinate grids and the coordinate grid that does not include the vehicle position coordinates, includes: Based on the distances between the N first target coordinate grids and the coordinate grid that does not include the vehicle position coordinates, an inverse distance weighting method is used to obtain an inverse distance weight of each first target coordinate grid.

5. The method according to claim 1 or 2, characterized in that Determining the elevation value of the coordinate grid based on the elevation value of the vehicle position coordinates contained in the coordinate grid includes: Determine the average value of the elevation values ​​of the vehicle position coordinates contained in the coordinate grid as the elevation value of the coordinate grid; or, The maximum value of the elevation values ​​of the vehicle position coordinates contained in the coordinate grid is determined as the elevation value of the coordinate grid.

6. The method according to claim 2, characterized in that The step of smoothing the elevation values ​​of the coordinate grid based on the M elevation values ​​of the second target coordinate grids to obtain the smoothed elevation values ​​of the coordinate grid includes: Determining a target elevation value based on the elevation values ​​of the M second target coordinate grids and the elevation value of the coordinate grid; The target elevation value is determined as the smoothed elevation value of the coordinate grid.

7. The method according to claim 1, characterized in that Before dividing the geographic space region where the elevation data is located into a plurality of coordinate grids, the method further includes: Obtaining the maximum latitude, minimum latitude, maximum longitude, and minimum longitude of the vehicle position coordinates in the elevation data; A quadrilateral area formed by the maximum latitude, the minimum latitude, the maximum longitude and the minimum longitude is determined as the geographic space area where the elevation data is located.

8. The method according to claim 1, characterized in that The selecting N first target coordinate grids including the vehicle position coordinates from other coordinate grids in the plurality of coordinate grids according to the positional relationship between the coordinate grid and the other coordinate grids includes: Selecting N first target coordinate grids containing the vehicle position coordinates from other coordinate grids in the plurality of coordinate grids in order from near to far from the coordinate grid; or, A coordinate grid adjacent to the coordinate grid and containing the vehicle position coordinates is selected from the other coordinate grids, and the selected coordinate grids are used as N first target coordinate grids.

9. A device for determining terrain elevation, characterized in that: The device comprises: An elevation data acquisition module is used to acquire a plurality of elevation data collected by the vehicle during driving, wherein each elevation data includes a vehicle position coordinate and an elevation value corresponding to the vehicle position coordinate; A geographic space region division module, used for dividing the geographic space region where the elevation data is located into a plurality of coordinate grids; a grid elevation value determination module, configured to determine, for each coordinate grid containing vehicle position coordinates, an elevation value of the coordinate grid based on the elevation value of the vehicle position coordinates contained in the coordinate grid; a first target coordinate grid selection module configured to select, for each coordinate grid that does not include the vehicle position coordinates, N first target coordinate grids that include the vehicle position coordinates from other coordinate grids in the plurality of coordinate grids based on a positional relationship between the other coordinate grids and the coordinate grid, where N is a positive integer; The grid elevation value determination module is further configured to determine the elevation value of a coordinate grid that does not include the vehicle position coordinates based on the elevation values ​​of the N first target coordinate grids.

10. An electronic device, characterized in that: include: A processor, the processor being configured to execute a computer program stored in a memory, wherein the computer program, when executed by the processor, implements the method for determining terrain elevation values ​​according to any one of claims 1 to 7.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for determining terrain elevation values ​​according to any one of claims 1 to 7 is implemented.