Road network elevation data generation method and device, equipment and storage medium

By gridding the target area and calculating the inverse distance weighted average, and combining the road network data to generate road network elevation data, the problem of high cost and low efficiency in the existing technology is solved, and efficient and accurate road network elevation data is achieved. generate.

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

Patent Information

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

AI Technical Summary

Technical Problem

In the existing technology, the cost of generating road network elevation data is high and the efficiency is low, making it difficult to achieve low-cost and high-efficiency data generation.

Method used

By gridding the map data of the target area, multiple grid areas are obtained, and the elevation data is mapped to these areas. Combined with the road network data for sampling, the characteristic points around the sampling points are determined, and the inverse distance weighted average is used Calculate the elevation value of the sampling point to generate road network elevation data.

Benefits of technology

It achieves low-cost and efficient generation of road network elevation data, improves the scale and accuracy of data generation, and has good usability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118730073A_ABST
    Figure CN118730073A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a road network elevation data generation method and device, equipment and a storage medium, and the method comprises the steps: carrying out the grid processing of map data of a target region, obtaining a plurality of grid regions, enabling the elevation data of the target region to be mapped into the plurality of grid regions, and obtaining the elevation data of the target region; the method comprises the following steps of: determining elevation information of each grid region, sampling road network data of a target region to obtain a plurality of sampling points, and aiming at each sampling point, respectively executing the following steps: determining a plurality of feature points meeting a preset condition around the sampling point as target feature points, obtaining elevation values of the sampling point according to the elevation values of the plurality of target feature points, and obtaining elevation information of the target feature points according to the elevation values of the target feature points; and determining the elevation values of the plurality of sampling points as road network elevation data of the target area. According to the road network elevation data generation method provided by the embodiment of the invention, the road network elevation data can be generated with low cost and high efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of road network elevation data, and in particular to a road network elevation data generating method, a road network elevation data generating device, an electronic device, and a computer-readable storage medium. Background Art

[0002] With the development of computer technology and Internet technology, the application of autonomous driving in different business scenarios has increased significantly. In practical applications, when unmanned equipment realizes autonomous driving, it usually relies on pre-built autonomous driving map data, and plans and predicts the driving route by analyzing the information in the autonomous driving map data. Autonomous driving map data can include different types of data that record different types of information. For example, autonomous driving map data can include elevation data, which records the altitude of each part of the target area, and can also include road network data, which records the road elements of each road in the target area.

[0003] In order for unmanned equipment to obtain driving routes more accurately, it is usually necessary to combine multiple data in the autonomous driving map data. For example, when elevation data and road network data are combined, road network elevation data can be generated. Road network elevation data can effectively show the elevation information of each multi-layer road in the presence of overlapping multi-layer roads, which plays an important role in the realization of autonomous driving functions. However, in the related art, the road network elevation data is mainly generated by collecting elevation data through detection vehicles, and then manually annotating the road network data according to the elevation data, which is not only costly but also inefficient. Therefore, how to generate road network elevation data at low cost and high efficiency has become an important technical issue in this field. Summary of the invention

[0004] The embodiments of the present application provide a road network elevation data generation method, a road network elevation data generation device, an electronic device, and a computer-readable storage medium, which can generate road network elevation data at low cost and high efficiency.

[0005] On the one hand, an embodiment of the present application provides a method for generating road network elevation data, including: gridding the map data of a target area to obtain multiple grid areas, each grid area including a feature point; mapping the elevation data of the target area to the multiple grid areas to determine the elevation information of each grid area; sampling the road network data of the target area to obtain multiple sampling points; for each sampling point, respectively executing: determining multiple feature points around the sampling point that meet preset conditions as target feature points, and, based on the elevation values ​​of the multiple target feature points, obtaining the elevation value of the sampling point; and determining the elevation values ​​of the multiple sampling points as the road network elevation data of the target area.

[0006] In some embodiments, the elevation data is mapped to a plurality of grid areas to determine the elevation information of each grid area, including: obtaining a plurality of terrain sampling points of the elevation data and elevation values ​​of the plurality of terrain sampling points; determining a plurality of terrain sampling points located in each grid area according to the coordinates of the plurality of terrain sampling points; averaging the elevation values ​​of the plurality of terrain sampling points in each grid area, and determining the average value as the elevation information corresponding to each grid area.

[0007] In some embodiments, determining multiple terrain sampling points located in each grid area based on the coordinates of multiple terrain sampling points includes: obtaining the coordinates of the multiple terrain sampling points and the coordinate ranges of the multiple grid areas; for each terrain sampling point, respectively performing: comparing the coordinates of the terrain sampling point with the coordinate ranges of the multiple grid areas; and determining that the terrain sampling point is located in the target grid area when the coordinates of the terrain sampling point fall within the coordinate range of the target grid area, the target grid area being any one of the multiple grid areas.

[0008] In some embodiments, sampling the road network data to obtain multiple sampling points includes: interpolating multiple road network sampling points of the road network data of the target area to obtain multiple interpolation points; determining the multiple road network sampling points and the multiple interpolation points as multiple sampling points.

[0009] In some embodiments, multiple feature points satisfying preset conditions around a sampling point are determined as target feature points, including: calculating the distance between the sampling point and the multiple feature points according to the coordinates of the sampling point and the coordinates of the multiple feature points; selecting the top N distances from the multiple distances in ascending order; and determining the N feature points corresponding to the top N distances as target feature points; wherein N is a positive integer.

[0010] In some embodiments, the elevation value of the sampling point is obtained according to the elevation values ​​of multiple target feature points, including: calculating the inverse distance weight of each target feature point respectively; calculating the inverse distance weighted average according to the elevation values ​​and inverse distance weights of the multiple target feature points; and determining the inverse distance weighted average as the elevation value of the sampling point.

[0011] In some embodiments, respectively calculating the inverse distance weight of each target feature point includes: respectively calculating the inverse distance weight of each target feature point according to the following formula (1); the calculation formula of the inverse distance weight includes:

[0012]

[0013] Among them, h i is the distance from the i-th feature point to the sampling point among the N feature points of the target feature point, h j is the distance from the jth feature point to the sampling point among the N feature points of the target feature point, wi is the inverse distance weight of the i-th feature point.

[0014] On the other hand, an embodiment of the present application provides a road network elevation data generation device, including: a gridding module, used to grid the map data of the target area to obtain multiple grid areas; a first processing module, used to map the elevation data of the target area to the multiple grid areas to determine the elevation information of each grid area; a sampling module, used to sample the road network data of the target area to obtain multiple sampling points; a second processing module, used to execute for each sampling point: determine multiple feature points around the sampling point that meet preset conditions as target feature points, and, according to the elevation values ​​of the multiple target feature points, obtain the elevation value of the sampling point; a generation module, used to determine the elevation values ​​of the multiple sampling points as the road network elevation data of the target area.

[0015] On the other hand, an electronic device provided by an embodiment of the present application includes: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the above road network elevation data generation method is implemented.

[0016] Another aspect of an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the above method for generating road network elevation data is implemented.

[0017] The road network elevation data generation method of the embodiment of the present application first evenly divides the map data of the target area into a plurality of grid areas, then associates the map data of the target area with the elevation data, obtains the elevation information of each grid area according to the elevation data, and after sampling the road network data to obtain a plurality of sampling points, associates the elevation data of the target area with the road network data, for each sampling point, determines a plurality of feature points satisfying preset conditions around the sampling point as target feature points, then obtains the elevation value of the sampling point according to the elevation values ​​of the plurality of target feature points, and uses the elevation values ​​of the plurality of sampling points as the road network elevation data of the target area, so that the map data, elevation data and road network data of the target area can be combined with each other, and the road network elevation data can be generated at low cost and high efficiency, and the accuracy of the generated road network elevation data can be guaranteed while improving the generation scale of the road network elevation data, and the method has good usability. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 It is a flowchart of a method for generating road network elevation data provided by an embodiment of the present application;

[0020] Figure 2 Shows Figure 1 An exemplary schematic diagram of some steps in the flowchart shown;

[0021] Figure 3 Shows Figure 2 An exemplary schematic diagram of some steps in the flowchart shown;

[0022] Figure 4 Shows Figure 1 An exemplary schematic diagram of some steps in the flowchart shown;

[0023] Figure 5 Shows Figure 1 An exemplary schematic diagram of some steps in the flowchart shown;

[0024] Figure 6 Shows Figure 1 An exemplary schematic diagram of some steps in the flowchart shown;

[0025] Figure 7 It is a structural schematic diagram of a road network elevation data generating device provided in an embodiment of the present application.

[0026] In the attached figure:

[0027] 100-Road network elevation data generating device; 1-Gridding module; 2-First processing module; 3-Sampling module; 4-Second processing module and generating module; 5-Generation module. DETAILED DESCRIPTION

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

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

[0030] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in the embodiments of the present application should have the common meanings understood by technicians in the field to which the embodiments of the present application belong.

[0031] In addition, the technical terms "first", "second", etc. are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0032] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, technical terms such as "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.

[0033] Figure 1 FIG. 1 is a flow chart of a method for generating road network elevation data provided by an embodiment of the present application. Figure 1 As shown, the method for generating road network elevation data includes the following steps.

[0034] S100 , gridding the map data of the target area to obtain a plurality of grid areas, each of which includes a feature point.

[0035] S200, mapping the elevation data of the target area to a plurality of grid areas to determine the elevation information of each grid area.

[0036] S300: Sampling the road network data of the target area to obtain multiple sampling points.

[0037] For each sampling point, steps S400 - S500 are respectively performed.

[0038] S400: Determine multiple feature points around the sampling point that meet preset conditions as target feature points.

[0039] S500: Obtaining the elevation value of the sampling point according to the elevation values ​​of the plurality of target feature points.

[0040] S600: Determine the elevation values ​​of the plurality of sampling points as the road network elevation data of the target area.

[0041] Among them, the target area can be any area where the road network elevation data is to be obtained. Map data can record map elements such as place names and the corresponding coordinates of the map elements, elevation data can record altitude elements such as terrain and corresponding coordinates, and road network data can record road elements such as road directions and corresponding coordinates. In other words, the map data, elevation data, and map elements, altitude elements, and road elements of the road network data can correspond to each other through coordinates. In some examples, the map data, elevation data, and road network data of the target area can be directly obtained from the system or database or any storage medium. In other examples, the map elements, altitude elements, and road elements of the target area can also be collected through a collection device.

[0042] In step S100, the map data records the dimensions of the target area in the two-dimensional plane, that is, the longitude direction and the latitude direction. The longitude dimension and the latitude dimension of the target area can be obtained according to the coordinates of the map elements of the target area recorded in the map data, and the unit dimensions in the longitude direction and the latitude direction are respectively obtained according to the longitude dimension and the latitude dimension, and the longitude dimension is divided by the unit dimension in the longitude direction, and the latitude dimension is divided by the unit dimension in the latitude direction, so that the map data of the target area is divided into a plurality of grids, that is, the map data is gridded. Optionally, the unit dimension in the longitude direction and the unit dimension in the latitude direction used to divide the map data can be equal or unequal. In the case of a larger unit dimension, the number of grid areas formed by segmentation is smaller, and in the case of a smaller unit dimension, the number of grid areas formed by segmentation is more. The number of grid areas is proportional to the accuracy of the subsequent generation of road network elevation data, that is, the more the number of grid areas, the higher the accuracy of the generated road network elevation data. Each grid area includes a feature point, and optionally, the feature point can be any point in the grid area or the center point of the grid area.

[0043] In step S200, the elevation data is data that can reflect the correlation between the altitude element and the coordinates of the target area. In some optional embodiments, the elevation data can be a contour map, which includes multiple terrain sampling points, and the terrain sampling points can record the altitude of the current position. In the process of collecting elevation data, the altitude elements of multiple terrain sampling points in the area to be collected are collected, and then the coordinates of the terrain sampling points are matched with the altitude elements. In other words, the elevation data is composed of the coordinates of multiple terrain sampling points and the altitude elements. In order to associate the elevation data with the map data, the elevation data can be mapped to the multiple grid areas obtained by segmentation, that is, the elevation value corresponding to each grid area is obtained according to the elevation data. Each grid area includes a feature point. In some examples, the elevation value corresponding to the grid area can be obtained according to the average value of multiple terrain sampling points in the grid area. In other examples, the elevation value of the feature point of the current grid area can be regarded as the elevation value corresponding to the grid area.

[0044] In step S300, the road network data is data that can reflect the correlation between the road elements and the coordinates of the target area. In some optional embodiments, the road network data can be a road network map, the road network map includes a plurality of road network sampling points, the road network sampling points can record the road network shape and direction of the current position, and the road network map can also include a plurality of road sections, each of which can connect two adjacent road network sampling points to show the direction of the road. In the process of collecting road network data, the road elements of the plurality of road network sampling points in the area to be collected are collected, and then the coordinates of the road network sampling points are made to correspond to the road elements. That is to say, the road network data is composed of the coordinates of the plurality of road network sampling points and the road elements. In some examples, when sampling the road network data, the entire road can be sampled to obtain a plurality of sampling points, and in other examples, the road sections between the adjacent road network sampling points can be sampled to obtain a plurality of sampling points, and at this time, the sampling points can include the road network sampling points.

[0045] In step S400, for each sampling point, multiple feature points satisfying preset conditions around the current sampling point may be obtained, and the multiple feature points satisfying the conditions may be target feature points. The preset condition may be a condition on the distance between the current sampling point and the feature point. In some examples, the target feature point may be a predetermined number of feature points with the smallest distance from the current sampling point. In other examples, the target feature point may be a plurality of feature points with a distance from the current sampling point that does not exceed a preset threshold.

[0046] In step S500, for each sampling point, the elevation value of the sampling point can be obtained according to the elevation values ​​of the multiple target feature points corresponding to the current sampling point. In the case where multiple target feature points are obtained by screening based on the condition of the distance between the current sampling point and the feature point, the multiple target feature points are located around the current sampling point, and the elevation values ​​of the multiple target feature points can reflect the elevation value of the sampling point. In the case where the sampling point is obtained based on the road network data, it is convenient to combine the road network data with the elevation data. In some examples, the elevation value of the sampling point can be obtained according to the average value of the elevation values ​​of the multiple target feature points. In other examples, the inverse distance weight of each target feature point relative to the current sampling point can also be obtained, and the inverse distance weighted average value of the elevation values ​​of the multiple target feature points is calculated according to the inverse distance weight, thereby obtaining the elevation value of the sampling point.

[0047] In step S600, when the sampling point is obtained by sampling the road network data, and the elevation value of the sampling point is obtained by the elevation value of the target feature point provided by the elevation data, the elevation data and the road network data can be associated through the sampling point, that is, the road network elevation data of the target area is obtained. The road network elevation data can be regarded as a collection of multiple sampling points, each sampling point includes a corresponding road element, an altitude element and a coordinate. Therefore, the road network elevation data records the altitude elements and road elements of multiple coordinate points, which can play an important role in the realization of the automatic driving function.

[0048] Figure 2 Shows Figure 1 An exemplary schematic diagram of some steps in the flowchart shown in FIG. Figure 2 As shown, in some embodiments of the present application, step S200 includes the following steps.

[0049] S210: Acquire multiple terrain sampling points of elevation data and elevation values ​​of the multiple terrain sampling points.

[0050] S220: Determine a plurality of terrain sampling points located in each grid area according to the coordinates of the plurality of terrain sampling points.

[0051] S230, averaging the elevation values ​​of a plurality of terrain sampling points in each grid area, and determining the average value as elevation information corresponding to each grid area.

[0052] In step S210, in the process of collecting elevation data, by collecting the altitude elements of multiple terrain sampling points in the area to be collected, and then making the coordinates of the terrain sampling points correspond to the altitude elements, multiple terrain sampling points of the elevation data, each terrain sampling point records the coordinates of the current position and the altitude. Multiple terrain sampling points can be obtained according to the elevation data, and then the elevation values ​​corresponding to the multiple terrain sampling points are obtained, wherein each terrain sampling point can be marked by the coordinates of the terrain sampling point.

[0053] In step S220, after the elevation data is mapped to a plurality of grid areas, each of the plurality of grid areas may include a plurality of terrain sampling points, and it can be determined in which grid area each terrain sampling point is located according to the coordinates of the terrain sampling point.

[0054] In step S230, after obtaining the corresponding terrain sampling points in each grid area, the average elevation value of all terrain sampling points in the current grid area can be obtained based on the elevation values ​​of multiple terrain sampling points located in the current grid area, and the obtained average value can be regarded as the elevation information of the current grid area.

[0055] Figure 3 Shows Figure 2 An exemplary schematic diagram of some steps in the flowchart shown in FIG. Figure 3 As shown, in some embodiments of the present application, step S220 includes the following steps.

[0056] S221. Obtain the coordinates of multiple terrain sampling points and the coordinate ranges of multiple grid areas.

[0057] For each terrain sampling point, steps S222 - S223 are performed respectively.

[0058] S222: Compare the coordinates of the terrain sampling points with the coordinate ranges of the multiple grid areas.

[0059] S223: When the coordinates of the terrain sampling point fall within the coordinate range of the target grid area, determine that the terrain sampling point is located in the target grid area, and the target grid area is any one of the multiple grid areas.

[0060] In step 2321, while obtaining the elevation value of the terrain sampling point according to the elevation data, the coordinates of the terrain sampling point can be obtained. According to the unit dimension in the longitude direction and the unit dimension in the latitude direction, when the grid area is formed as a quasi-rectangle, the coordinate points located at the four corners of the grid area can be obtained, and according to the coordinates of the coordinate points of the four corners and the coordinate difference in the longitude direction and the latitude direction, the coordinate range of each grid area can be obtained.

[0061] In step S222, for each terrain sampling point, the coordinates of the current terrain sampling point can be compared with the coordinate ranges of multiple grid areas. In some examples, the following operations can be performed for each terrain sampling point: the position of the terrain sampling point in longitude is determined based on the longitude coordinate of the terrain sampling point, and the position of the terrain sampling point in latitude is determined based on the latitude coordinate of the terrain sampling point, thereby determining in which grid area the terrain sampling point is located.

[0062] In step S223, for each terrain sampling point, when the current terrain sampling point falls within the coordinate range of any grid area, it can be determined that the terrain sampling point is located in the target grid area, that is, the grid area where the current terrain sampling point is located is regarded as the target grid area. Optionally, when the terrain sampling point falls on the edge of the grid area, the terrain sampling point can be simultaneously included in two grid areas adjacent to each other through the current edge, or the terrain sampling point can be deleted, or according to the number of terrain sampling points in the adjacent grid area, the current terrain sampling point can be included in the grid area including fewer terrain sampling points, and the embodiment of the present application does not limit this.

[0063] Figure 4 Shows Figure 1 An exemplary schematic diagram of some steps in the flowchart shown in FIG. Figure 4 As shown, in some embodiments of the present application, step S300 includes the following steps.

[0064] S310: Perform interpolation processing on multiple road network sampling points of the road network data to obtain multiple interpolation points.

[0065] S320: Determine a plurality of road network sampling points and a plurality of interpolation points as a plurality of sampling points.

[0066] In step S310, during the interpolation process of the road network data, interpolation points can be set along the current road section at a preset distance. The preset distance should be smaller than the distance between two adjacent road network sampling points, so that multiple interpolation points are located between two adjacent road network sampling points.

[0067] In step S320, the sampling points may include multiple road network sampling points and multiple interpolation points set between each two adjacent road network sampling points. In the process of collecting road network data, the road elements of multiple road network sampling points in the area to be collected are collected, and then the coordinates of the road network sampling points are matched with the road elements. Each of the multiple road network sampling points of the road network data records the road network shape and direction of the current position. By interpolating the road network sampling points, it is possible to increase the points that record the coordinates and the road network shape and direction, thereby increasing the resolution of the road network data, so as to increase the accuracy of the subsequent combination of elevation data and road network data.

[0068] Figure 5 Shows Figure 1 An exemplary schematic diagram of some steps in the flowchart shown in FIG. Figure 5 As shown, in some embodiments of the present application, step S400 includes the following steps.

[0069] S410: Obtain the coordinates of the sampling points and the coordinates of multiple feature points.

[0070] S420: Calculate the distance between the sampling point and the multiple feature points according to the coordinates of the sampling point and the coordinates of the multiple feature points.

[0071] S430, selecting N distances with the highest ranking from a plurality of distances in ascending order.

[0072] S440: Determine N feature points corresponding to the top N distances as target feature points.

[0073] Wherein, N is a positive integer.

[0074] In step S410, for each sampling point, the coordinates of the current sampling point can be obtained according to the road network data, and the coordinates of the feature points of multiple grid areas can be obtained according to the map data. In some examples, when the feature point is the center point of the grid area, the coordinates of the feature point can be obtained according to the coordinate range of the grid area.

[0075] In step S420, the distance between the sampling point and the plurality of feature points can reflect the distance between the sampling point and each grid area. Therefore, the elevation value of the feature point closer to the sampling point can have a greater impact on the elevation value of the sampling point.

[0076] In step S430, in some examples, when multiple distances between the sampling point and multiple grid areas are obtained, the multiple distances may be sorted from small to large to obtain a distance sequence, and then the first N distances are selected from the distance sequence. Optionally, N may be an integer from 6 to 20.

[0077] In step S440, when the top N distances are selected from multiple distances in ascending order, N feature points corresponding to the N distances can be obtained, and the N feature points are taken as N target feature points, that is, the N feature points closest to the sampling point are selected.

[0078] Figure 6 Shows Figure 1 An exemplary schematic diagram of some steps in the flowchart shown in FIG. Figure 6 As shown, in some embodiments of the present application, step S500 includes the following steps.

[0079] S510 , respectively calculating the inverse distance weight of each target feature point.

[0080] S520: Calculate an inverse distance weighted average value according to the elevation values ​​of the plurality of target feature points and the inverse distance weights.

[0081] S530: Determine the inverse distance weighted average as the elevation value of the sampling point.

[0082] In step S510, the inverse distance weight of the target feature point can be calculated according to the distance between the target feature point and the sampling point. The inverse distance weight can reflect the influence of the elevation value of the target feature point on the elevation value of the sampling point according to the distance between the current target feature point and the sampling point. The closer the distance between the target feature point and the sampling point, the greater the influence of the elevation value of the target feature point on the elevation value of the sampling point.

[0083] In step S520, the inverse distance weighted average value can be calculated according to the elevation value of the target feature point and the inverse distance weight by using a weighted average method, that is, the inverse distance weighted average value of the elevation values ​​of multiple target feature points is calculated.

[0084] In step S530, the obtained inverse distance weighted average is assigned to the sampling point as the elevation value of the sampling point.

[0085] In some embodiments of the present application, in step 510, the inverse distance weight of each target feature point is calculated according to the following formula (1):

[0086]

[0087] Among them, h i is the distance from the i-th feature point to the sampling point among the N feature points of the target feature point, h j is the distance from the jth feature point to the sampling point among the N feature points of the target feature point, w i is the inverse distance weight of the i-th feature point.

[0088] In some embodiments of the present application, in step S520, the inverse distance weight is calculated according to the following formula (2):

[0089]

[0090] Among them, H i is the elevation value of the i-th feature point, and X is the inverse distance weighted average.

[0091] In some optional embodiments, the road network elevation data generating method may be implemented by the road network elevation data generating device 100, or may be implemented by the road network elevation data generating device 100 together with other units, components or devices, and the embodiments of the present application do not impose any restrictions on this.

[0092] Figure 7 FIG. 1 is a schematic diagram of the structure of a road network elevation data generating device 100 provided in one embodiment of the present application. Figure 6 As shown, the road network elevation data generating device 100 includes a gridding module 1, a first processing module 2, a sampling module 3, a second processing module 4 and a generating module 5.

[0093] The gridding module 1 is used to grid the map data of the target area to obtain multiple grid areas. The first processing module 2 is used to map the elevation data of the target area to multiple grid areas to determine the elevation information of each grid area. The sampling module 3 is used to sample the road network data of the target area to obtain multiple sampling points. The second processing module 4 is used to execute, for each sampling point, respectively: determine multiple feature points around the sampling point that meet preset conditions as target feature points, and, based on the elevation values ​​of the multiple target feature points, obtain the elevation value of the sampling point. The generation module 5 is used to determine the elevation values ​​of the multiple sampling points as the road network elevation data of the target area.

[0094] In some embodiments of the present application, the first processing module 2 is also used to obtain multiple terrain sampling points of elevation data and the elevation values ​​of the multiple terrain sampling points, determine the multiple terrain sampling points located in each grid area according to the coordinates of the multiple terrain sampling points, and average the elevation values ​​of the multiple terrain sampling points in each grid area, and determine the average value as the elevation information corresponding to each grid area. In some optional embodiments, the first processing module 2 is also used to obtain the coordinates of the multiple terrain sampling points and the coordinate ranges of the multiple grid areas, and, for each terrain sampling point, respectively perform: compare the coordinates of the terrain sampling point with the coordinate ranges of the multiple grid areas, and, when the coordinates of the terrain sampling point fall within the coordinate range of the target grid area, determine that the terrain sampling point is located in the target grid area, and the target grid area is any one of the multiple grid areas.

[0095] In some embodiments of the present application, the sampling module 3 is further used to perform interpolation processing on multiple road network sampling points of the road network data to obtain multiple interpolation points, and to determine the multiple road network sampling points and the multiple interpolation points as multiple sampling points.

[0096] In some embodiments of the present application, the second processing module 4 is also used to obtain the coordinates of the sampling point and the coordinates of multiple feature points, calculate the distance between the sampling point and the multiple feature points based on the coordinates of the sampling point and the coordinates of the multiple feature points, select the top N distances from the multiple distances in ascending order, and determine the N feature points corresponding to the top N distances as target feature points.

[0097] In some embodiments of the present application, the second processing module 4 is also used to calculate the inverse distance weight of each target feature point respectively, calculate the inverse distance weighted average according to the elevation values ​​and inverse distance weights of multiple target feature points, and determine the inverse distance weighted average as the elevation value of the sampling point.

[0098] Based on the above description, an embodiment of the present application further provides an electronic device, the electronic device comprising a processor and a memory storing computer program instructions. When the processor executes the computer program instructions, the above method for generating road network elevation data is implemented.

[0099] The processor may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0100] The memory may include a large capacity memory for data or instructions. For example, the memory may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of the above. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory is a non-volatile solid-state memory.

[0101] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of an embodiment of the present application.

[0102] In addition, in combination with the above description, the embodiment of the present application further provides a computer storage medium. The computer readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the above road network elevation data generation method can be implemented.

[0103] In summary, the road network elevation data generation method provided in the embodiment of the present application first divides the map data of the target area evenly into multiple grid areas, then associates the map data of the target area with the elevation data, obtains the elevation information of each grid area according to the elevation data, and after sampling the road network data to obtain multiple sampling points, associates the elevation data of the target area with the road network data, for each sampling point, determines multiple feature points that meet preset conditions around the sampling point as target feature points, then obtains the elevation value of the sampling point according to the elevation values ​​of the multiple target feature points, and uses the elevation values ​​of the multiple sampling points as the road network elevation data of the target area, which can combine the map data, elevation data and road network data of the target area with each other, and generate road network elevation data at low cost and high efficiency, while improving the generation scale of road network elevation data, can ensure the accuracy of the generated road network elevation data, and has good usability.

[0104] 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 term "comprises" or any other variant thereof is 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.

Claims

1. A method for generating road network elevation data, characterized in that: include: Gridding the map data of the target area to obtain a plurality of grid areas, each of which includes a feature point; Mapping the elevation data of the target area to the plurality of grid areas to determine the elevation information of each grid area; Sampling the road network data of the target area to obtain multiple sampling points; For each of the sampling points, respectively: determining a plurality of the feature points satisfying preset conditions around the sampling point as target feature points, and obtaining an elevation value of the sampling point according to the elevation values ​​of the plurality of target feature points; The elevation values ​​of the plurality of sampling points are determined as the road network elevation data of the target area.

2. The method for generating road network elevation data according to claim 1, characterized in that: Mapping the elevation data to the plurality of grid areas to determine elevation information of each grid area includes: Acquire multiple terrain sampling points of the elevation data and the elevation values ​​of the multiple terrain sampling points; Determine, according to the coordinates of the plurality of terrain sampling points, a plurality of the terrain sampling points located in each of the grid areas; An average of the elevation values ​​of the plurality of terrain sampling points in each of the grid areas is taken, and the average is determined as the elevation information corresponding to each of the grid areas.

3. The method for generating road network elevation data according to claim 2, characterized in that: The step of determining the plurality of terrain sampling points located in each of the grid areas according to the coordinates of the plurality of terrain sampling points comprises: Obtaining coordinates of a plurality of the terrain sampling points and coordinate ranges of a plurality of the grid areas; For each terrain sampling point, execute respectively: Comparing the coordinates of the terrain sampling point with the coordinate ranges of a plurality of the grid areas; When the coordinates of the terrain sampling point fall within the coordinate range of the target grid area, it is determined that the terrain sampling point is located in the target grid area, and the target grid area is any one of the multiple grid areas.

4. The method for generating road network elevation data according to claim 1, characterized in that: The sampling of the road network data of the target area to obtain a plurality of sampling points includes: Performing interpolation processing on a plurality of road network sampling points of the road network data to obtain a plurality of interpolation points; Determine a plurality of the road network sampling points and a plurality of the interpolation points as a plurality of the sampling points.

5. The method for generating road network elevation data according to claim 1, characterized in that: The step of determining a plurality of feature points satisfying preset conditions around the sampling point as target feature points includes: Calculating the distance between the sampling point and the plurality of feature points according to the coordinates of the sampling point and the coordinates of the plurality of feature points; Selecting the top N distances from the plurality of distances in ascending order; Determine the N feature points corresponding to the first N distances as the target feature points; Wherein, N is a positive integer.

6. The method for generating road network elevation data according to claim 5, characterized in that: The step of obtaining the elevation value of the sampling point according to the elevation values ​​of the plurality of target feature points comprises: Calculating the inverse distance weight of each target feature point respectively; Calculating an inverse distance weighted average value according to the elevation values ​​of the plurality of target feature points and the inverse distance weights; The inverse distance weighted average is determined as the elevation value of the sampling point.

7. The method for generating road network elevation data according to claim 6, characterized in that: The respectively calculating the inverse distance weight of each target feature point comprises: Calculate the inverse distance weight of each target feature point according to the following formula (1); The calculation formula of the inverse distance weight includes: Among them, h i is the distance from the i-th feature point among the N feature points of the target feature point to the sampling point, h j is the distance from the jth feature point among the N feature points of the target feature point to the sampling point, w i is the inverse distance weight of the i-th feature point.

8. A road network elevation data generating device, characterized in that: include: A gridding module is used to perform gridding processing on the map data of the target area to obtain multiple grid areas; A first processing module, used for mapping the elevation data of the target area to the plurality of grid areas to determine the elevation information of each grid area; A sampling module, used for sampling the road network data of the target area to obtain a plurality of sampling points; The second processing module is used to respectively perform, for each of the sampling points: determining a plurality of the feature points around the sampling point that meet preset conditions as target feature points, and obtaining an elevation value of the sampling point according to the elevation values ​​of the plurality of the target feature points; A generating module is used to determine the elevation values ​​of the plurality of sampling points as the road network elevation data of the target area.

9. An electronic device, characterized in that: include: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the road network elevation data generation method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for generating road network elevation data as described in any one of claims 1 to 7 is implemented.