Elevation data supplementing method, device and equipment, storage medium and vehicle
By splitting the road network data and using the spreading interpolation algorithm to supplement the elevation data of incomplete road sections, the problem of low efficiency in obtaining terrain elevation data is solved, and the rapid supplement of elevation data and the improvement of labeling efficiency are achieved.
Patent Information
- Application Number
- CN202310336408.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-01
AI Technical Summary
When the existing technology obtains terrain elevation data, especially in the process of making maps, due to the large amount of data and missing data, obtaining elevation values is time-consuming and laborious, and the elevation values in the existing data are incomplete and cannot be effectively supplemented, resulting in labeling costs. High, low efficiency.
By obtaining the road network data, it is split into road sections with complete and incomplete elevation data, and the spreading interpolation algorithm is used to calculate the elevation data of the incomplete road sections. After merging, the complete road network data is formed, which reduces the labeling cost and improves the labeling efficiency.
It realizes rapid supplementation of road network elevation data without directly collecting elevation values, reduces labeling costs, improves labeling efficiency, and is suitable for city-level large-scale road network elevation interpolation supplementation.
Smart Images

Figure CN118730075A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to an elevation data supplementation method, device, equipment, storage medium and vehicle. Background Art
[0002] Terrain elevation refers to the distance from a point to the absolute base surface along the plumb line. In the relevant technology, the process of obtaining terrain elevation data is that the terrain surveyor uses professional instruments to observe the terrain and obtains the terrain elevation data using the observed values. This method consumes a long time and requires a large amount of manpower and material resources. Especially in the process of making maps, due to the large amount of terrain elevation data that needs to be measured, when the terrain elevation data is missing, the map cannot be made in a short time. In addition, some people have proposed to use existing data (such as the elevation value in the vehicle driving data) to obtain the elevation data of the corresponding terrain, but the elevation values in the existing data may not be complete. For example, some roads do not have corresponding elevation values, and it is impossible to use the existing data to obtain the elevation data of the corresponding terrain. At this time, it is necessary to send vehicles to these sections to collect elevation values. The actual process is time-consuming and laborious, and may even cause vehicles to be unable to enter these sections due to various reasons. Therefore, how to obtain the elevation values of these sections without using equipment to actually collect elevation values has become an urgent problem to be solved. Summary of the invention
[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides an elevation data supplement method, device, equipment, storage medium and vehicle to reduce the annotation cost and improve the annotation efficiency.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for supplementing elevation data, including:
[0005] Acquire road network data, wherein the road network includes a plurality of road sections;
[0006] Determine the completeness of the elevation data on the multiple road sections, and split the road network data into a first road section and a second road section, wherein the first road section is a road section with complete elevation data, and the second road section is a road section without elevation data or a road section with incomplete elevation data;
[0007] Calculating the elevation data of the second road section by using a spreading interpolation algorithm according to the elevation data of the first road section to obtain a second road section with complete elevation data;
[0008] The first road section and the second road section with complete elevation data are combined to form a road network with complete elevation data.
[0009] In some embodiments, according to the elevation data of the first road section, the elevation data of the second road section is calculated by a spreading interpolation algorithm to obtain the second road section with complete elevation data, including:
[0010] Selecting a target road section from the second road section without elevation data, wherein a predecessor road section and a successor road section of the target road section both belong to the first road section;
[0011] Selecting the successor node of the predecessor section and the predecessor node of the successor section as the target node;
[0012] The elevation data of the target road section is calculated according to the elevation data of the target node by using a spreading interpolation algorithm.
[0013] In some embodiments, calculating the elevation data of the target road section by using a spreading interpolation algorithm according to the elevation data of the target node includes:
[0014] Associating a predecessor node of the target road segment with a successor node of the predecessor road segment, and assigning an elevation of the predecessor node of the target road segment according to elevation data of the successor node of the predecessor road segment;
[0015] Associating a successor node of the target road segment with a predecessor node of the successor road segment, and assigning an elevation of the successor node of the target road segment according to elevation data of the predecessor node of the successor road segment;
[0016] The elevation of the first sampling point of the target road segment is propagated according to the elevation of the predecessor node of the target road segment and the elevation of the successor node of the target road segment.
[0017] In some embodiments, propagating the elevation of the first sampling point of the target road segment according to the elevation of the predecessor node of the target road segment and the elevation of the successor node of the target road segment includes:
[0018] For any first sampling point, if the first sampling point is associated with two sampling points at the same time, the average elevation of the two associated sampling points is calculated, and the average elevation is used as the elevation of the first sampling point.
[0019] In some embodiments, according to the elevation data of the first road section, the elevation data of the second road section is calculated by a spreading interpolation algorithm to obtain the second road section with complete elevation data, including:
[0020] For the second road section with incomplete elevation data, the elevation data of adjacent sampling points of the second sampling point are propagated according to the elevation data of the second sampling point on the second road section with incomplete elevation data.
[0021] In some embodiments, after merging the second road segment with complete elevation data into the first road segment, the method further includes:
[0022] The steps of selecting a target road section from the second road sections without elevation data are iterated until the elevation data of all the second road sections are complete.
[0023] In a second aspect, an embodiment of the present disclosure provides an elevation data supplement device, comprising:
[0024] An acquisition module, used for acquiring road network data, wherein the road network includes a plurality of road sections;
[0025] A splitting module, used to determine the completeness of the elevation data on the multiple road sections, and split the road network data into a first road section and a second road section, wherein the first road section is a road section with complete elevation data, and the second road section is a road section without elevation data or a road section with incomplete elevation data;
[0026] A calculation module, used to calculate the elevation data of the second road section by a spreading interpolation algorithm according to the elevation data of the first road section, so as to obtain a second road section with complete elevation data;
[0027] The merging module is used to merge the first road section and the second road section with complete elevation data to form a road network with complete elevation data.
[0028] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
[0029] Memory;
[0030] Processor; and
[0031] Computer programs;
[0032] The computer program is stored in the memory and is configured to be executed by the processor to implement the method as described in the first aspect.
[0033] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the method described in the first aspect.
[0034] In a fifth aspect, an embodiment of the present disclosure further provides a vehicle, comprising: an elevation data supplement device as described in the second aspect; or, an electronic device as described in the third aspect; or, a computer-readable storage medium as described in the fourth aspect.
[0035] The elevation data supplementation method, device, equipment, storage medium and vehicle provided by the embodiments of the present disclosure obtain road network data, wherein the road network includes multiple road sections, and it is clarified that the road network is composed of multiple road sections; the completeness of the elevation data on the multiple road sections is determined, and the road network data is split into a first road section and a second road section, wherein the first road section is a road section with complete elevation data, and the second road section is a road section without elevation data or a road section with incomplete elevation data, and the first road section with complete elevation data and the second road section that needs to be supplemented with elevation data are clarified; based on the elevation data of the first road section, the elevation data of the second road section is calculated by a spreading interpolation algorithm to obtain a second road section with complete elevation data, and the elevation data of the second road section is interpolated and supplemented by the spreading interpolation algorithm; the first road section and the second road section with complete elevation data are merged to form a road network with complete elevation data, which can be applied to elevation interpolation and supplement of large-scale road networks at the city level, thereby reducing the annotation cost and improving the annotation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0037] In order to more clearly illustrate the embodiments of the present invention 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.
[0038] Figure 1 A flow chart of the elevation data supplementation method provided in the embodiment of the present disclosure;
[0039] Figure 2 A schematic diagram of an application scenario provided by an embodiment of the present disclosure;
[0040] Figure 3 A schematic diagram of an application scenario provided by an embodiment of the present disclosure;
[0041] Figure 4 A schematic diagram of the structure of an elevation data supplement device provided in an embodiment of the present disclosure;
[0042] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0043] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0044] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0045] The disclosed embodiment provides a method for supplementing elevation data, which is introduced below in conjunction with a specific embodiment.
[0046] Figure 1 A flow chart of the elevation data supplementation method provided in the embodiment of the present disclosure. The method can be executed by an elevation data supplementation device, which can be implemented in software and / or hardware. The elevation data supplementation device can be configured in an electronic device, such as a server or a terminal, wherein the terminal specifically includes an electric vehicle, a fuel vehicle, a hybrid vehicle, etc. In addition, the method can be applied to application scenarios of elevation data supplementation. It can be understood that the elevation data supplementation method provided in the embodiment of the present disclosure can also be applied in other scenarios.
[0047] Below Figure 1 The elevation data supplement method shown in the figure is introduced, and the specific steps of the method are as follows:
[0048] S101. Acquire road network data, where the road network includes multiple road sections.
[0049] The road network data can be road network data among existing data, and the acquisition process can use existing methods, such as obtaining road network data from cloud data through networking. The road network includes multiple road sections. It can be understood that the length of each road section is very short, and the elevation difference of the entire road section in the road section is within a preset range.
[0050] S102, determining the completeness of the elevation data on the multiple road sections, and splitting the road network data into a first road section and a second road section, wherein the first road section is a road section with complete elevation data, and the second road section is a road section without elevation data or a road section with incomplete elevation data.
[0051] According to the above-mentioned road network data, the completeness of the elevation data on multiple road sections can be determined, and according to the completeness of the elevation data on each road section, the multiple road sections in the above-mentioned road network data can be split into a first road section and a second road section. Among them, the first road section is a road section with complete elevation data, that is, each shape point on the first road section has elevation data. It can be understood that the road section is composed of multiple shape points; the second road section is a road section without elevation data, that is, each shape point on the second road section has no elevation data, or a road section with incomplete elevation data, that is, some shape points on the second road section have elevation data, and other shape points do not have elevation data. In general, sampling points will be selected with equal values from the above-mentioned shape points, such as selecting with equal values in units of 1m until the distance between the sampling point and the successor node of the road section is less than 1m. In this way, multiple sampling points can be obtained, and the road section can be described by the elevation data of the sampling point. It can be understood that other numerical values can also be selected as the selection unit of the sampling points of the road section. Figure 2 As shown, section B is composed of multiple shape points. Sampling points on section B are selected based on a preset distance to obtain sampling points b1, b2, b3, b4, b5, b6, and b7.
[0052] S103 , calculating the elevation data of the second road section by using a spreading interpolation algorithm according to the elevation data of the first road section, to obtain a second road section with complete elevation data.
[0053] Interpolation refers to a method of data processing, the purpose of which is to complete missing data.
[0054] Interpolation algorithm refers to the use of existing data that is too little to support analysis. At this time, some mathematical methods are needed to "simulate and generate" some new but more reliable values to meet the needs.
[0055] Based on the elevation data of the first section, the elevation data of the second section can be calculated by the spreading interpolation algorithm, that is, the elevation of the shape points without elevation data in the second section can be determined by the elevation data of the first section and the spreading interpolation algorithm, so as to obtain the second section with complete elevation data.
[0056] S104: Merge the first road section and the second road section with complete elevation data to form road network data with complete elevation data.
[0057] The first road section and the second road section with complete elevation data are combined to form a road network with complete elevation data, thereby obtaining a road network with elevation data.
[0058] The disclosed embodiment acquires road network data, wherein the road network includes multiple road sections, and clarifies that the road network is composed of multiple road sections; determines the completeness of the elevation data on the multiple road sections, and splits the road network data into a first road section and a second road section, wherein the first road section is a road section with complete elevation data, and the second road section is a road section without elevation data or with incomplete elevation data, and clarifies the first road section with complete elevation data and the second road section that needs to be supplemented with elevation data; calculates the elevation data of the second road section by a spreading interpolation algorithm based on the elevation data of the first road section, and obtains the second road section with complete elevation data, and interpolates and supplements the elevation data of the second road section by the spreading interpolation algorithm; merges the first road section and the second road section with complete elevation data to form a road network with complete elevation data, which can be applied to elevation interpolation and supplement of large-scale road networks at the city level, thereby reducing the annotation cost and improving the annotation efficiency.
[0059] On the basis of the above embodiment, according to the elevation data of the first section, the elevation data of the second section is calculated by a spreading interpolation algorithm to obtain a second section with complete elevation data, including: selecting a target section from the second section without elevation data, wherein the predecessor section and the successor section of the target section both belong to the first section; selecting the successor node of the predecessor section and the predecessor node of the successor section as the target node; and calculating the elevation data of the target section by a spreading interpolation algorithm according to the elevation data of the target node.
[0060] A target section is selected from a second section without elevation data, wherein a predecessor section and a successor section of the target section both belong to the first section; a successor node of the predecessor section and a predecessor node of the successor section are selected as the target node; and elevation data of the target section is calculated by a spreading interpolation algorithm based on the elevation data of the target node.
[0061] Specifically, Figure 2 A schematic diagram of an application scenario provided for an embodiment of the present disclosure, wherein section B is selected from a second section without elevation data, section B is the target section, section A is the predecessor section of the target section, section C is the successor section of the target section, sections A and C belong to the first section, b1 is the successor node of section A, b7 is the predecessor node of section C, b1 and b7 are selected as target nodes, and the elevation data of section B is calculated using a spreading interpolation algorithm based on the elevation data of b1 and b7.
[0062] Optionally, the elevation data of the target road section is calculated according to the elevation data of the target node by a spreading interpolation algorithm, including: associating the predecessor node of the target road section with the successor node of the predecessor road section, and assigning the elevation of the predecessor node of the target road section according to the elevation data of the successor node of the predecessor road section; associating the successor node of the target road section with the predecessor node of the successor road section, and assigning the elevation of the successor node of the target road section according to the elevation data of the predecessor node of the successor road section; and spreading the elevation of the first sampling point of the target road section according to the elevation of the predecessor node of the target road section and the elevation of the successor node of the target road section.
[0063] Associate the predecessor node of the target section with the successor node of the predecessor section, and assign the elevation of the predecessor node of the target section according to the elevation data of the successor node of the predecessor section; associate the successor node of the target section with the predecessor node of the successor section, and assign the elevation of the successor node of the target section according to the elevation data of the predecessor node of the successor section; propagate the elevation of the first sampling point of the target section according to the elevation of the predecessor node of the target section and the elevation of the successor node of the target section.
[0064] Specifically, Figure 2 As shown, the predecessor node b1 of section B and the successor node of section A are associated, that is, the predecessor node b1 of section B and the successor node of section A are the same shape point or adjacent shape points, and the elevation of the predecessor node b1 of section B is assigned according to the elevation data of the successor node of section A; the successor node b7 of section B and the predecessor node of section C are associated, that is, the successor node b7 of section B and the predecessor node of section C are the same shape point or adjacent shape points, and the elevation of the successor node b7 of section B is assigned according to the elevation data of the predecessor node of section C, and the elevation of the first sampling point of section B is spread according to the elevation of the predecessor node b1 of section B and the elevation of the successor node b7 of section B. When the elevation of the successor node of section A is 3 and the elevation of the predecessor node of section C is 5, then the elevation of the predecessor node b1 of section B is 3, and the elevation of the successor node b7 of section B is 5. According to the elevation of the predecessor node b1 of section B, the elevations of the first sampling points b2, b3, b4, b5, and b6 are spread. According to the elevation of the successor node b7 of section B, the elevations of the first sampling points b6, b5, b4, b3, and b2 are spread.
[0065] Optionally, the elevation of the first sampling point of the target road section is propagated according to the elevation of the predecessor node of the target road section and the elevation of the successor node of the target road section, including: for any one of the first sampling points, if the first sampling point is simultaneously associated with two sampling points, calculating the average elevation of the two associated sampling points, and using the average elevation as the elevation of the first sampling point.
[0066] Specifically, for any first sampling point, if the first sampling point is associated with two sampling points at the same time, the average elevation of the two associated sampling points is calculated, and the average elevation is used as the elevation of the first sampling point. Figure 2 As shown, for any first sampling point among b2, b3, b4, b5, and b6, such as b6, b6 is associated with two sampling points, b7 and b5, and the elevation of b6 is the average elevation of the two sampling points, that is, the elevation of b6 is (3+5) / 2=4. Similarly, the elevations of b2, b3, b4, and b5 are all 4.
[0067] The disclosed embodiment specifically calculates the elevation data of the target road section and specifically describes the interpolation supplement of the elevation data of the target road section by the spreading interpolation algorithm, thereby improving the flexibility of the elevation data supplement method, reducing the annotation cost, and improving the annotation efficiency.
[0068] In some embodiments, the elevation data of the second road section is calculated by a spreading interpolation algorithm based on the elevation data of the first road section to obtain a second road section with complete elevation data, including: for the second road section with incomplete elevation data, based on the elevation data of the second sampling point on the second road section with incomplete elevation data, spreading the elevation data of adjacent sampling points of the second sampling point.
[0069] For the second road section with incomplete elevation data, the elevation data of adjacent sampling points of the second sampling point are propagated according to the elevation data of the second sampling point on the second road section with incomplete elevation data.
[0070] Figure 3 A schematic diagram of an application scenario provided by an embodiment of the present disclosure, such as Figure 3 As shown in FIG. 1 , if the second sampling point d4 has elevation data, the elevation data of the adjacent sampling point d3 and the adjacent sampling point d5 can be directly propagated. For example, if the elevation of d4 is 4, the elevation of d3 and the elevation of d5 will be propagated to 4.
[0071] The disclosed embodiment specifically calculates the elevation of the second road section with incomplete elevation data, and specifically describes obtaining elevation data of adjacent sampling points by spreading, thereby further improving the flexibility of the elevation data supplementation method, reducing the annotation cost, and improving the annotation efficiency.
[0072] In some embodiments, after merging the second road segment with complete elevation data into the first road segment, the method further includes: iteratively executing steps such as selecting a target road segment from the second road segment without elevation data until the elevation data of all the second road segments are complete.
[0073] When the elevation data of the second road section is complete, it is equivalent to the first road section. Then, after the second road section with complete elevation data is merged into the first road section, the above steps of selecting the target road section from the second road section without elevation data are iterated again until the elevation data of all the second road sections are complete.
[0074] The disclosed embodiment improves the comprehensiveness of the elevation data supplementation method by iteratively executing steps such as selecting a target road section from second road sections without elevation data until the elevation data of all second road sections are complete.
[0075] Figure 4 The elevation data supplement device provided in the embodiment of the present disclosure is a schematic diagram of the structure. The elevation data supplement device may be the terminal as described in the above embodiment, or the elevation data supplement device may be a component or assembly in the terminal. The elevation data supplement device provided in the embodiment of the present disclosure may execute the processing flow provided in the elevation data supplement method embodiment, such as Figure 4 As shown, the elevation data supplement device 40 includes: an acquisition module 41, a splitting module 42, a calculation module 43, and a merging module 44; wherein the acquisition module 41 is used to acquire road network data, and the road network includes multiple road sections; the splitting module 42 is used to determine the completeness of the elevation data on the multiple road sections, and split the road network data into a first road section and a second road section, the first road section is a road section with complete elevation data, and the second road section is a road section without elevation data or a road section with incomplete elevation data; the calculation module 43 is used to calculate the elevation data of the second road section through a spreading interpolation algorithm based on the elevation data of the first road section, and obtain the second road section with complete elevation data; the merging module 44 is used to merge the first road section and the second road section with complete elevation data to form a road network with complete elevation data.
[0076] Optionally, the calculation module 43 is also used to select a target section from the second section without elevation data, and the predecessor section and the successor section of the target section both belong to the first section; select the successor node of the predecessor section and the predecessor node of the successor section as the target node; and calculate the elevation data of the target section through a spreading interpolation algorithm based on the elevation data of the target node.
[0077] Optionally, the calculation module 43 is also used to associate the predecessor node of the target road section with the successor node of the predecessor road section, and assign the elevation of the predecessor node of the target road section according to the elevation data of the successor node of the predecessor road section; associate the successor node of the target road section with the predecessor node of the successor road section, and assign the elevation of the successor node of the target road section according to the elevation data of the predecessor node of the successor road section; and propagate the elevation of the first sampling point of the target road section according to the elevation of the predecessor node of the target road section and the elevation of the successor node of the target road section.
[0078] Optionally, the calculation module 43 is further configured to, for any one of the first sampling points, if the first sampling point is simultaneously associated with two sampling points, calculate an average of the elevations of the two associated sampling points, and use the average of the elevations as the elevation of the first sampling point.
[0079] Optionally, the calculation module 43 is further configured to, for the second road section with incomplete elevation data, propagate elevation data of adjacent sampling points of the second sampling point according to the elevation data of the second sampling point on the second road section with incomplete elevation data.
[0080] Optionally, the elevation data supplement device 40 also includes: an iteration module 45, which is used to merge the second road section with complete elevation data into the first road section, and then iteratively execute steps such as selecting a target road section from the second road section without elevation data until the elevation data of all the second road sections are complete.
[0081] Figure 4 The elevation data supplementation device of the illustrated embodiment can be used to execute the technical solution of the above-mentioned elevation data supplementation method embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0082] Figure 5 The electronic device provided in the embodiment of the present disclosure can execute the processing flow provided in the embodiment of the elevation data supplementation method, such as Figure 5 As shown, the electronic device 50 includes: a memory 51, a processor 52, a computer program and a communication interface 53; wherein the computer program is stored in the memory 51 and is configured so that the processor 52 executes the elevation data supplementation method as described above.
[0083] In addition, an embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor to implement the elevation data supplementation method described in the above embodiment.
[0084] In addition, an embodiment of the present disclosure also provides a vehicle, which includes the elevation data supplement device as described in the above embodiment; or the electronic device as described in the above embodiment; or the computer-readable storage medium as described in the above embodiment.
[0085] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium 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 (RAM), a read-only memory (ROM), 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 disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0086] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0087] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0088] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0089] Acquire road network data, wherein the road network includes a plurality of road sections;
[0090] Determine the completeness of the elevation data on the multiple road sections, and split the road network data into a first road section and a second road section, wherein the first road section is a road section with complete elevation data, and the second road section is a road section without elevation data or a road section with incomplete elevation data;
[0091] Calculating the elevation data of the second road section by using a spreading interpolation algorithm according to the elevation data of the first road section to obtain a second road section with complete elevation data;
[0092] The first road section and the second road section with complete elevation data are combined to form a road network with complete elevation data.
[0093] In addition, the electronic device can also execute other steps in the elevation data supplementation method as described above.
[0094] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0095] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0096] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0097] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0098] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), 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 foregoing.
[0099] 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.
[0100] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure 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 supplementing elevation data, characterized in that: The method comprises: Acquire road network data, wherein the road network includes a plurality of road sections; Determine the completeness of the elevation data on the multiple road sections, and split the road network data into a first road section and a second road section, wherein the first road section is a road section with complete elevation data, and the second road section is a road section without elevation data or a road section with incomplete elevation data; Calculating the elevation data of the second road section by using a spreading interpolation algorithm according to the elevation data of the first road section to obtain a second road section with complete elevation data; The first road section and the second road section with complete elevation data are combined to form a road network with complete elevation data.
2. The method according to claim 1, characterized in that According to the elevation data of the first road section, the elevation data of the second road section is calculated by using a spreading interpolation algorithm to obtain the second road section with complete elevation data, including: Selecting a target road section from the second road section without elevation data, wherein the predecessor road section and the successor road section of the target road section both belong to the first road section; Selecting the successor node of the predecessor section and the predecessor node of the successor section as the target node; The elevation data of the target road section is calculated according to the elevation data of the target node by using a spreading interpolation algorithm.
3. The method according to claim 2, characterized in that According to the elevation data of the target node, the elevation data of the target road section is calculated by a spreading interpolation algorithm, including: Associating a predecessor node of the target road segment with a successor node of the predecessor road segment, and assigning an elevation of the predecessor node of the target road segment according to elevation data of the successor node of the predecessor road segment; Associating a successor node of the target road segment with a predecessor node of the successor road segment, and assigning an elevation of the successor node of the target road segment according to elevation data of the predecessor node of the successor road segment; The elevation of the first sampling point of the target road section is propagated according to the elevation of the predecessor node of the target road section and the elevation of the successor node of the target road section.
4. The method according to claim 3, characterized in that The method of spreading the elevation of the first sampling point of the target road section according to the elevation of the predecessor node of the target road section and the elevation of the successor node of the target road section comprises: For any first sampling point, if the first sampling point is associated with two sampling points at the same time, the average elevation of the two associated sampling points is calculated, and the average elevation is used as the elevation of the first sampling point.
5. The method according to claim 1, characterized in that According to the elevation data of the first road section, the elevation data of the second road section is calculated by using a spreading interpolation algorithm to obtain the second road section with complete elevation data, including: For the second road section with incomplete elevation data, the elevation data of adjacent sampling points of the second sampling point are propagated according to the elevation data of the second sampling point on the second road section with incomplete elevation data.
6. The method according to any one of claims 2 to 5, characterized in that: After merging the second road segment with complete elevation data into the first road segment, the method further includes: Steps such as selecting a target road segment from the second road segments without elevation data are iterated until the elevation data of all the second road segments are complete.
7. An elevation data supplement device, characterized in that: The device comprises: An acquisition module, used for acquiring road network data, wherein the road network includes a plurality of road sections; A splitting module, used to determine the completeness of the elevation data on the multiple road sections, and split the road network data into a first road section and a second road section, wherein the first road section is a road section with complete elevation data, and the second road section is a road section without elevation data or a road section with incomplete elevation data; A calculation module, used to calculate the elevation data of the second road section by a spreading interpolation algorithm according to the elevation data of the first road section, so as to obtain a second road section with complete elevation data; The merging module is used to merge the first road section and the second road section with complete elevation data to form a road network with complete elevation data.
8. An electronic device, characterized in that: include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 6.
9. 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 according to any one of claims 1 to 6 is implemented.
10. A vehicle, characterized in that: include: The elevation data supplement device according to claim 7; or, the electronic device according to claim 8; Or, the computer readable storage medium of claim 9.
