Elevation data interpolation method and apparatus, and device and medium

By performing elevation data interpolation processing on road sections, the problem of low efficiency and high cost in obtaining terrain elevation data is solved, fast and accurate interpolation of elevation data is achieved, and it is suitable for elevation interpolation of large-scale standard maps at the city level.

WO2024199208A1PCT designated stage expired Publication Date: 2024-10-03BEIJING CO WHEELS TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/083757
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-30
Filing Date
2024-03-26
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Existing technology requires a lot of manpower and material resources to obtain terrain elevation data, especially in the process of producing high-precision maps, and the elevation values ​​in the existing data are incomplete, resulting in the inability to quickly obtain elevation data of certain road sections, affecting efficiency and cost.

Method used

Provides an interpolation method for elevation data. By obtaining the first shape point data of each road segment, the road segments are classified into complete, incomplete and non-elevation sections according to the number of shape point data, and a preset algorithm is used to perform elevation interpolation processing. Get complete elevation segment data.

Benefits of technology

It improves the interpolation efficiency of elevation data, reduces labor costs, realizes elevation interpolation of road networks in large-scale standard maps at the city level, and solves the problems of low efficiency and high cost in the existing technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024083757_03102024_PF_FP_ABST
    Figure CN2024083757_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure relates to an elevation data interpolation method and apparatus, and a device and a medium. The elevation data interpolation method comprises: acquiring first shape point data respectively corresponding to road sections; for each of the road sections, according to the number of pieces of second shape point data corresponding to the road section, determining the road section as one of a first road section, a second road section and a third road section, wherein the second shape point data is shape point data that has an elevation value in the first shape point data, the first road section is a road section with a complete elevation, the second road section is a road section with an incomplete elevation, and the third road section is a road section without an elevation; and according to a preset algorithm, performing elevation interpolation processing on each second road section and each third road section, so as to obtain each second road section with a complete elevation and each third road section with a complete elevation. Before the elevation interpolation processing is performed on each third road section according to the preset algorithm, so as to obtain each third road section with a complete elevation, the method further comprises: acquiring at least one anterior road section and at least one posterior road section, which correspond to the third road section; and determining, from among the at least one anterior road section and the at least one posterior road section, a target anterior road section and a target posterior road section, which correspond to the third road section, wherein the target anterior road section and the target posterior road section are road sections which meet a preset road section selection condition, and the preset road section selection condition requires a road section in which there is at least one second shape point.
Need to check novelty before this filing date? Find Prior Art

Description

Interpolation method, device, equipment and medium for elevation data

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This disclosure is based on and claims the priority of Chinese patent application with application number 202310333632.9 and application date March 30, 2023. The entire content of the Chinese patent application is hereby incorporated into this disclosure by reference. Technical Field

[0003] The present disclosure relates to the technical field of elevation interpolation of road networks, and in particular to an elevation data interpolation method, device, equipment, and medium. Background Art

[0004] Terrain elevation refers to the distance from a point along a vertical line to an absolute base surface. In related technologies, obtaining terrain elevation data involves topographic surveyors using specialized instruments to observe the terrain and then using the observed values ​​to obtain the terrain elevation data. This method is time-consuming and requires significant human and material resources. Especially in the production of high-precision maps, the large amount of terrain elevation data required makes it impossible to complete the map in a short period of time when the data is missing. Alternatively, some have proposed using existing data (such as elevation values ​​from vehicle driving data) to obtain the corresponding terrain elevation data. However, the elevation values ​​in existing data may be incomplete. For example, if some roads do not have corresponding elevation values, it is impossible to obtain the corresponding terrain elevation data using the existing data. In this case, vehicles must be dispatched to these sections to collect elevation values, a time-consuming and labor-intensive process. Vehicles may even be unable to enter these sections for various reasons. Therefore, obtaining the elevation values ​​of these sections without using equipment to collect the elevation values ​​has become a pressing issue.

[0005] Summary of the Invention

[0006] In order to solve the above technical problems, the present disclosure provides an elevation data interpolation method, device, equipment and medium.

[0007] A first aspect of an embodiment of the present disclosure provides a method for interpolating elevation data, the method comprising:

[0008] Obtain first shape point data corresponding to each road section;

[0009] For each road segment, the road segment is determined as one of a first road segment, a second road segment, and a third road segment according to the number of second shape point data corresponding to the road segment, wherein the second shape point data is shape point data having elevation values ​​in the first shape point data, the first road segment is a road segment with complete elevation, the second road segment is a road segment with incomplete elevation, and the third road segment is a road segment with no elevation;

[0010] According to a preset algorithm, each second road section and each third road section are respectively subjected to elevation interpolation processing to obtain each second road section with complete elevation and each third road section with complete elevation;

[0011] Before performing elevation interpolation processing on each third road segment according to a preset algorithm to obtain each third road segment with complete elevation, the method further includes:

[0012] Acquire at least one predecessor road segment and at least one successor road segment corresponding to the third road segment;

[0013] A target predecessor road segment and a target successor road segment corresponding to the third road segment are determined from the at least one predecessor road segment and the at least one successor road segment; the target predecessor road segment and the target successor road segment are road segments that meet a preset road segment selection condition, and the preset road segment selection condition is a road segment with at least one second shape point.

[0014] A second aspect of an embodiment of the present disclosure provides an elevation data interpolation device, the device comprising:

[0015] A data acquisition module, used to acquire first shape point data corresponding to each road section;

[0016] a road segment determination module, configured to determine, for each road segment, as one of a first road segment, a second road segment, and a third road segment based on the number of second shape point data corresponding to the road segment, wherein the second shape point data is shape point data having elevation values ​​in the first shape point data, the first road segment is a road segment with complete elevation, the second road segment is a road segment with incomplete elevation, and the third road segment is a road segment with no elevation;

[0017] The interpolation processing module is used to perform elevation interpolation processing on each second road section and each third road section according to a preset algorithm to obtain each second road section with complete elevation and each third road section with complete elevation.

[0018] A third aspect of the present disclosure provides an electronic device, the device including:

[0019] Memory;

[0020] processor; and

[0021] A computer program, wherein the computer program is stored in a memory and configured to be executed by a processor to implement the elevation data interpolation method according to the first aspect.

[0022] A fourth aspect of an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the elevation data interpolation method according to the first aspect described above is implemented.

[0023] A fifth aspect of the embodiments of the present disclosure provides a computer program, which, when executed on a computer, enables the computer to execute the elevation data interpolation method of the first aspect described above.

[0024] The technical solution provided by the embodiments of the present disclosure has the following advantages compared with related technologies:

[0025] The elevation data interpolation method, device, equipment and medium provided by the embodiments of the present disclosure can obtain first shape point data corresponding to each road section. For each road section in which the first shape point data is obtained, each road section is determined as one of a first road section, a second road section and a third road section according to the number of second shape point data corresponding to each road section, wherein the second shape point data is shape point data with elevation values ​​in the first shape point data, the first road section is a road section with complete elevation, the second road section is a road section with incomplete elevation, and the third road section is a road section with no elevation. Then, according to a preset algorithm, elevation interpolation processing is performed on each second road section and each third road section respectively to obtain each second road section with complete elevation and each third road section with complete elevation. Therefore, according to the second shape point data with elevation values ​​obtained in each road section, elevation interpolation processing can be automatically performed on the shape point data without elevation values ​​in the first shape point data corresponding to each road section, thereby improving the interpolation efficiency of elevation data and reducing labor costs, thereby realizing elevation interpolation of road networks in large-scale standard city maps. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0028] FIG1 is a flow chart of an elevation data interpolation method provided by an embodiment of the present disclosure;

[0029] FIG2 is a schematic diagram of the structure of an interpolation process provided by an embodiment of the present disclosure;

[0030] FIG3 is a schematic diagram of a structure of a predecessor and successor in a third road section provided by an embodiment of the present disclosure;

[0031] FIG4 is a flow chart of another elevation data interpolation method provided by an embodiment of the present disclosure;

[0032] FIG5 is a schematic structural diagram of an elevation data interpolation device provided by an embodiment of the present disclosure;

[0033] FIG6 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0034] 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 therein can be combined with each other in the absence of conflict.

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

[0036] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

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

[0038] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0039] Typically, the existing method for interpolating or correcting the elevation of a road network in a standard map is to collect Global Positioning System (GPS) elevations using a surveying vehicle, and then manually annotate the elevation values ​​of the road network in the standard map based on the collected GPS elevations, thereby supplementing and correcting the elevation values ​​of the road network. However, since this method requires manual annotation, it has the problems of high cost and low efficiency, and it cannot be applied to the interpolation or correction of the elevation of the road network in large-scale standard city-level maps. To address this problem, the embodiments of the present disclosure provide an interpolation method for elevation data, which is described below in conjunction with specific embodiments.

[0040] Figure 1 is a flowchart of an elevation data interpolation method provided by an embodiment of the present disclosure. The method can be executed by an elevation data interpolation device. The elevation data interpolation device can be implemented in software and / or hardware. The elevation data interpolation device can be configured in an electronic device, such as a server or a terminal or a server cluster, wherein the terminal can specifically include a mobile phone, a computer or a tablet computer, etc., or it can be any device that can be used to process the elevation data interpolation method.

[0041] As shown in FIG1 , the elevation data interpolation method provided by the embodiment of the present disclosure includes the following steps.

[0042] S110: Obtain first shape point data corresponding to each road section.

[0043] In an embodiment of the present disclosure, when an electronic device needs to perform elevation interpolation processing on a road segment in a road network, or receives an instruction to perform elevation interpolation processing on a road segment in a road network, it can obtain the first shape point data corresponding to each road segment from existing data (such as an electronic map).

[0044] In the embodiment of the present disclosure, each road section may be all road sections in the electronic map, or may be road sections that require elevation interpolation processing, which is not limited here.

[0045] The first shape point data may be understood as shape point data corresponding to each road segment, and may include coordinate data and elevation data of each shape point, wherein the elevation data may be an elevation value corresponding to each shape point.

[0046] Specifically, when it is necessary to perform elevation interpolation processing on the road network in the electronic map, the electronic device can obtain the first shape point data corresponding to each road section from the electronic map, or when receiving an instruction to perform elevation interpolation processing on the road network in the electronic map, determine the road section identifier that needs to be performed elevation interpolation processing according to the instruction, and then obtain the first shape point data corresponding to each road section corresponding to the road section identifier from the electronic map according to the road section identifier.

[0047] S120. For each road section in each road section, determine the road section as one of the first road section, the second road section and the third road section according to the number of second shape point data corresponding to the road section, wherein the second shape point data is the shape point data with elevation values ​​in the first shape point data, the first road section is a road section with complete elevation, the second road section is a road section with incomplete elevation, and the third road section is a road section with no elevation.

[0048] In an embodiment of the present disclosure, after the electronic device obtains the first shape point data corresponding to each road section from the electronic map, it determines, for each road section, the road section as one of the first road section, the second road section, and the third road section based on the number of second shape point data corresponding to the road section, wherein the second shape point data is the shape point data with elevation values ​​in the first shape point data, the first road section is a road section with complete elevation, the second road section is a road section with incomplete elevation, and the third road section is a road section with no elevation.

[0049] In the disclosed embodiment, an elevation-complete road section is a road section with complete elevation values, an elevation-incomplete road section is a road section with partial elevation values ​​but incomplete elevation values, and an elevation-free road section is a road section with no elevation values.

[0050] Specifically, after the electronic device obtains the first shape point data corresponding to each road section from the electronic map, it filters out the shape point data with elevation values ​​from the first shape point data corresponding to each road section, and determines it as the second shape point data. Then, based on the number of second shape point data corresponding to each road section, each road section is determined as one of an elevation-complete road section, an elevation-incomplete road section, and a road section with no elevation.

[0051] S130 . Perform elevation interpolation processing on each second road segment and each third road segment according to a preset algorithm to obtain each second road segment with complete elevation and each third road segment with complete elevation.

[0052] In the embodiment of the present disclosure, after the electronic device determines each road section as one of the first section, the second section and the third section, it performs elevation interpolation processing on each second section and each third section according to a preset algorithm to obtain each second section with complete elevation and each third section with complete elevation.

[0053] In the embodiment of the present disclosure, the preset algorithm may be a quadratic spline interpolation algorithm, a cubic spline interpolation algorithm, or the like.

[0054] In the embodiment of the present disclosure, the first shape point data corresponding to each road section can be obtained. For each road section in the road sections for which the first shape point data is obtained, each road section is determined as one of the first road section, the second road section and the third road section according to the number of second shape point data corresponding to each road section, wherein the second shape point data is the shape point data with elevation values ​​in the first shape point data, the first road section is a road section with complete elevation, the second road section is a road section with incomplete elevation, and the third road section is a road section with no elevation. Then, according to a preset algorithm, elevation interpolation processing is performed on each second road section and each third road section respectively to obtain each second road section with complete elevation and each third road section with complete elevation. Thus, according to the second shape point data with elevation values ​​in each road section obtained, elevation interpolation processing can be automatically performed on the shape point data with no elevation values ​​in the first shape point data corresponding to each road section, thereby improving the interpolation efficiency of elevation data and reducing labor costs, thereby realizing the elevation interpolation of road networks in large-scale standard city-level maps.

[0055] On the basis of the above-mentioned embodiment of the present disclosure, in S120, for each road section in each road section, according to the number of second shape point data corresponding to the road section, the road section is determined to be one of the first road section, the second road section and the third road section, which can specifically include: when the number of second shape point data is equal to the number of first shape point data, the road section is determined to be the first road section; when the number of second shape point data is less than the number of first shape point data and is not zero, the road section is determined to be the second road section; when the number of second shape point data is zero, the road section is determined to be the third road section.

[0056] In the embodiment of the present disclosure, when the number of the second shape point data is equal to the number of the first shape point data, it means that the corresponding shape point data in the road section all have elevation values. Therefore, the road section is determined to be the first road section, that is, the elevation-complete road section. When the number of the second shape point data is less than the number of the first shape point data and is not zero, it means that some of the corresponding shape point data in the road section do not have elevation values. Therefore, the road section is determined to be the second road section, that is, the elevation-incomplete road section. When the number of the second shape point data is zero, it means that the corresponding shape point data in the road section do not have elevation values. Therefore, the road section is determined to be the third road section, that is, the elevation-free road section.

[0057] On the basis of the above-mentioned embodiments of the present disclosure, in S130, elevation interpolation processing is performed on each second road section according to a preset algorithm to obtain each second road section with complete elevation, which may specifically include: according to a preset direction, dividing the second road section into intervals based on multiple second shape points corresponding to the second shape point data, determining the interval composed of two adjacent second shape points as the target interval corresponding to the second road section, and obtaining at least one target interval corresponding to the second road section; performing elevation interpolation processing on the second road section according to the at least one target interval and a preset fitting equation to obtain a second road section with complete elevation.

[0058] In the embodiment of the present disclosure, the preset direction may be a direction of traveling in the forward direction of the road, or a direction of traveling in the reverse direction of the road.

[0059] Figure 2 is a structural diagram of an interpolation processing provided by an embodiment of the present disclosure. As shown in Figure 2, points x0, x1, x2 and x3 are multiple second shape points corresponding to a second road section. Points x0, x1, x2 and x3 divide the road section into three intervals. Each interval is the target interval corresponding to the road section, that is, two adjacent points x0 and x1 constitute a target interval corresponding to the road section. Similarly, points x1 and x2 and points x2 and x3 respectively constitute the target interval corresponding to the road section.

[0060] In the embodiment of the present disclosure, the preset fitting equation is an equation corresponding to a preset algorithm. The following description will be made by taking the preset algorithm as a quadratic spline interpolation algorithm as an example.

[0061] The preset fitting equation corresponding to the quadratic spline interpolation algorithm is f(x)=ax 2 +bx+c, after obtaining at least one target interval corresponding to each second road section, the electronic device performs elevation interpolation processing on the second road section according to the at least one target interval and a preset fitting equation to obtain a second road section with complete elevation.

[0062] In the embodiment of the present disclosure, the second shape point data includes coordinate data and elevation values ​​corresponding to the shape points.

[0063] According to the at least one target interval and the preset fitting equation, the second road section is subjected to elevation interpolation processing, which may specifically include: substituting the coordinate data and elevation value corresponding to each second shape point into the first preset fitting equation corresponding to the second shape point to obtain at least one first equation; for the second road section with at least two target intervals, taking the first-order derivative of the second preset fitting equations corresponding to the two adjacent target intervals, and obtaining at least one second equation based on the fact that the two adjacent target intervals must be continuous; taking the second-order derivative of the third preset fitting equation corresponding to the second shape point at any end point of the second road section to obtain a third equation; solving the equation coefficients of the at least one first equation, the at least one second equation and the third equation to obtain the interval fitting equation corresponding to each target interval; substituting the coordinate data of the third shape point corresponding to the third shape point data in each target interval into the interval fitting equation to obtain the elevation value corresponding to each third shape point, wherein the third shape point data is the shape point data in the first shape point data except the second shape point data.

[0064] As shown in Figure 2, each interval corresponds to a preset fitting equation. The preset fitting equation corresponding to the target interval composed of points x0 and x1 is a1x 2 +b1x+c1, the preset fitting equation corresponding to the target interval composed of points x1 and x2 is a2x 2 +b2x+c2, the preset fitting equation corresponding to the target interval composed of points x2 and x3 is a3x 2 +b3x+c3.

[0065] In conjunction with FIG2 , a specific method for performing elevation interpolation processing on the second road section according to at least one target interval and a preset fitting equation is described. First, as shown in FIG2 , a preset fitting equation is respectively corresponding to point x0 and point x3. The preset fitting equation corresponding to point x0 is f(x0)=a1x0 2 +b1x0+c1, the preset fitting equation corresponding to point x3 is f(x3)=a3x3 2 +b3x3+c3, two preset fitting equations corresponding to points x1 and x2 respectively. The preset fitting equation corresponding to point x1 is f(x1)=a1x1 2 +b1x1+c1 and f(x1)=a2x1 2 +b2x1+c2, the preset fitting equation corresponding to point x2 is f(x2)=a2x2 2 +b²x²+c² and f(x²)=a³x² 2 +b3x2+c3, for each second shape point, its coordinate data such as longitude or latitude and elevation are substituted into the first preset fitting equation corresponding to the second shape point to obtain at least one first equation. For example, for point x1, the longitude value of point x1 is substituted into a1x12 +b1x1+c1 and a2x1 2 In +b2x1+c2, the elevation value of point x1 is used as f(x1), and the two first equations corresponding to point x1 containing only coefficients are obtained. Similarly, the two first equations corresponding to point x2 are also obtained for point x2. For point x0, its corresponding longitude value is substituted into a1x0. 2 In +b1x0+c1, the elevation value of point x0 is taken as f(x0), and a first equation corresponding to point x0 containing only coefficients is obtained. Similarly, a first equation corresponding to point x3 is also obtained, resulting in six first equations.

[0066] Secondly, for the second road section with at least two target intervals, the second preset fitting equations corresponding to the two adjacent target intervals are respectively differentiated, that is, the two preset fitting equations corresponding to f(x1) and the two preset fitting equations corresponding to f(x2) are respectively differentiated in the first order to obtain the equations 2a1x1+b1 and 2a2x1+b2 after the first order differentiation of f(x1) and the equations 2a2x2+b2 and 2a3x2+b3 after the first order differentiation of f(x2). Based on the fact that the two adjacent target intervals must be continuous, that is, the equations after the first order differentiation of f(x1) and f(x2) are equal, 2a1x1+b1=2a2x1+b2 and 2a2x2+b2=2a3x2+b3 are obtained, and two second equations are obtained; for the second road section with only one target interval, that is, the second road section with only two second shape points, there is no need to calculate the second equation because there is no intermediate second shape point and no adjacent target intervals.

[0067] Furthermore, a second-order derivative is performed on any second shape point at the endpoint of the second road section, that is, a second-order derivative is performed on the preset fitting equation corresponding to the endpoint point x0 or point x3. For example, a second-order derivative is performed on the preset fitting equation corresponding to point x0 to obtain a1=0, which is a third equation.

[0068] Further, the coefficients are solved according to the six first equations, two second equations and one third equation, and the coefficients a1, b1, c1, a2, b2, c2, a3, b3, and c3 are obtained, which are respectively substituted into the corresponding preset fitting equations to obtain the interval fitting equation corresponding to each target interval, and then the coordinate data of the third shape point corresponding to each interval that does not have an elevation value, such as the longitude value, is substituted into the interval fitting equation corresponding to the third shape point to obtain the elevation value corresponding to each third shape point, and then the second road section with complete elevation is obtained.

[0069] In the above embodiment of the present disclosure, before performing elevation interpolation processing on each third road segment according to a preset algorithm to obtain each third road segment with complete elevation, the interpolation method of the elevation data may also include: obtaining at least one predecessor road segment and at least one successor road segment corresponding to the third road segment; and determining the target predecessor road segment and target successor road segment corresponding to the third road segment from the at least one predecessor road segment and the at least one successor road segment.

[0070] In the embodiment of the present disclosure, for each third road section, since each third road section is a section where all shape points have no elevation values, before performing elevation interpolation processing on the third road section according to a preset algorithm, it is necessary to obtain the target predecessor section and target successor section corresponding to the third road section, and perform elevation interpolation processing on the third road section based on the target predecessor section and target successor section of the third road section.

[0071] Specifically, the electronic device performs elevation interpolation processing on each third road section according to a preset algorithm. Before obtaining each third road section with complete elevation, the electronic device obtains at least one predecessor road section and at least one successor road section corresponding to the third road section according to the predecessor road section identifier and the successor road section identifier of the third road section, and determines the target predecessor road section and target successor road section corresponding to the third road section from the obtained at least one predecessor road section and at least one successor road section.

[0072] Among them, the target predecessor section and the target successor section are sections that meet the preset section selection conditions. The preset section selection conditions can be a section with at least one second shape point, that is, the section has at least one shape point with an elevation value.

[0073] Figure 3 is a structural diagram of the predecessor and successor of a third road section provided by an embodiment of the present disclosure. As shown in Figure 3, section 12 is taken as an example for explanation. According to the predecessor section identifier of section 12, the predecessor section of section 12 includes section 23, section 24 and section 27. According to the successor section identifier of section 12, the successor section of section 12 includes section 91 and section 81. A section that meets the preset section selection conditions is selected from section 23, section 24 and section 27 as the target predecessor section of section 12, and a section that meets the preset section selection conditions is selected from section 91 and section 81 as the target successor section of section 12.

[0074] Furthermore, after obtaining the target predecessor road section and the target successor road section corresponding to the third road section, elevation interpolation processing is performed on each third road section according to a preset algorithm to obtain each third road section with complete elevation.

[0075] According to a preset algorithm, each third road section is subjected to elevation interpolation processing to obtain each third road section with complete elevation, which may specifically include: determining a section consisting of a target predecessor section, a target successor section and a third road section as a target section; according to a preset algorithm, the target road section is subjected to elevation interpolation processing to obtain a target road section with complete elevation; and the third road section subjected to elevation interpolation processing is extracted from the target road section with complete elevation to obtain a third road section with complete elevation.

[0076] In an embodiment of the present disclosure, after obtaining the target predecessor section and target successor section corresponding to the third section, the electronic device determines the section composed of the target predecessor section, the target successor section and the third section as the target section, performs elevation interpolation processing on the target section according to a preset algorithm to obtain a target section with complete elevation, and extracts the third section after elevation interpolation processing from the target section with complete elevation to obtain a third section with complete elevation.

[0077] It should be noted that the specific implementation of performing elevation interpolation processing on the target road segment according to the preset algorithm is similar to the specific implementation of performing elevation interpolation processing on each second road segment according to the preset algorithm, and will not be described in detail here.

[0078] FIG4 is a flow chart of another elevation data interpolation method provided by an embodiment of the present disclosure. As shown in FIG4 , the elevation data interpolation method specifically includes the following steps:

[0079] S410: Obtain first shape point data corresponding to each road section.

[0080] S420 . For each road section, determine the road section as one of a first road section, a second road section, and a third road section according to the number of second shape point data corresponding to the road section.

[0081] It should be noted that steps S410-S420 are similar to steps S110-S120 and are not described in detail here.

[0082] In the embodiment of the present disclosure, steps S430 - S440 are performed for each second road segment, and steps S450 - S490 are performed for each third road segment.

[0083] S430. For each second road section, divide the second road section into intervals according to a preset direction based on multiple second shape points corresponding to the second shape point data, determine the interval formed by two adjacent second shape points as the target interval corresponding to the second road section, and obtain at least one target interval corresponding to the second road section.

[0084] S440: Perform elevation interpolation processing on the second road section according to at least one target interval and a preset fitting equation to obtain a second road section with complete elevation.

[0085] S450: For each third road segment, obtain at least one predecessor road segment and at least one successor road segment corresponding to the third road segment.

[0086] S460: Determine a target predecessor road segment and a target successor road segment corresponding to the third road segment from at least one predecessor road segment and at least one successor road segment.

[0087] S470: Determine a road section consisting of the target predecessor road section, the target successor road section, and the third road section as the target road section.

[0088] S480: Perform elevation interpolation processing on the target road section according to a preset algorithm to obtain a target road section with complete elevation.

[0089] S490: Extracting a third road section after performing elevation interpolation processing from the target road section with complete elevation, to obtain a third road section with complete elevation.

[0090] S4010: Merge data of the first road segment, the second road segment with complete elevation, and the third road segment with complete elevation to obtain road network data with complete elevation.

[0091] In the embodiment of the present disclosure, the data of the first road segment, the second road segment with complete elevation and the third road segment with complete elevation are merged, that is, the first shape point data after interpolation processing are merged to obtain the road network data with complete elevation.

[0092] In the embodiment of the present disclosure, elevation interpolation processing can be performed on each second road segment and each third road segment according to a preset algorithm to obtain a second road segment with complete elevation and a third road segment with complete elevation. Then, the data of the first road segment, the second road segment with complete elevation and the third road segment with complete elevation are merged to obtain road network data with complete elevation corresponding to the electronic map. As a result, the interpolation efficiency of the elevation data is improved and the labor cost is reduced, and the elevation interpolation of the road network in a large-scale standard map at the city level is realized.

[0093] Figure 5 is a schematic diagram of the structure of an elevation data interpolation device provided in an embodiment of the present disclosure. The elevation data interpolation device in this embodiment can be installed in an electronic device, which can be a server, terminal, or server cluster. Specifically, the terminal can include a mobile phone, computer, tablet computer, or any other device capable of processing elevation data interpolation methods, without limitation.

[0094] As shown in FIG. 5 , the elevation data interpolation device 500 may include a data acquisition module 510 , a road segment determination module 520 and an interpolation processing module 530 .

[0095] The data acquisition module 510 may be used to acquire first shape point data corresponding to each road segment.

[0096] The road section determination module 520 can be used to determine each road section in each road section as one of the first road section, the second road section and the third road section according to the number of second shape point data corresponding to the road section, wherein the second shape point data is the shape point data with elevation values ​​in the first shape point data, the first road section is a road section with complete elevation, the second road section is a road section with incomplete elevation, and the third road section is a road section with no elevation.

[0097] The interpolation processing module 530 can be used to perform elevation interpolation processing on each second road segment and each third road segment according to a preset algorithm to obtain each second road segment with complete elevation and each third road segment with complete elevation.

[0098] In the embodiment of the present disclosure, the first shape point data corresponding to each road section can be obtained. For each road section in the road sections for which the first shape point data is obtained, each road section is determined as one of the first road section, the second road section and the third road section according to the number of second shape point data corresponding to each road section, wherein the second shape point data is the shape point data with elevation values ​​in the first shape point data, the first road section is a road section with complete elevation, the second road section is a road section with incomplete elevation, and the third road section is a road section with no elevation. Then, according to a preset algorithm, elevation interpolation processing is performed on each second road section and each third road section respectively to obtain each second road section with complete elevation and each third road section with complete elevation. Thus, according to the second shape point data with elevation values ​​in each road section obtained, elevation interpolation processing can be automatically performed on the shape point data with no elevation values ​​in the first shape point data corresponding to each road section, thereby improving the interpolation efficiency of elevation data and reducing labor costs, thereby realizing the elevation interpolation of road networks in large-scale standard city-level maps.

[0099] In some embodiments of the present disclosure, the road segment determination module 520 may include a first determination unit 5201 , a second determination unit 5202 , and a third determination unit 5203 .

[0100] The first determining unit 5201 may be configured to determine the road section as the first road section when the number of the second shape point data is equal to the number of the first shape point data.

[0101] The second determining unit 5202 may be configured to determine the road segment as the second road segment when the number of the second shape point data is less than the number of the first shape point data and is not zero.

[0102] The third determining unit 5203 may be configured to determine the road segment as the third road segment when the number of the second shape point data is zero.

[0103] In some embodiments of the present disclosure, the interpolation processing module 530 may include an interval division unit 5301 and a first interpolation unit 5302 .

[0104] The interval division unit 5301 can be used to divide the second road section into intervals according to a preset direction based on multiple second shape points corresponding to the second shape point data, determine the interval composed of two adjacent second shape points as the target interval corresponding to the second road section, and obtain at least one target interval corresponding to the second road section.

[0105] The first interpolation unit 5302 can be used to perform elevation interpolation processing on the second road section according to at least one target interval and a preset fitting equation to obtain a second road section with complete elevation.

[0106] In some embodiments of the present disclosure, the second shape point data includes coordinate data and elevation values ​​corresponding to the shape points.

[0107] The first interpolation unit 5302 may include a first equation obtaining subunit, a second equation obtaining subunit, a third equation obtaining subunit, a coefficient solving subunit, and an elevation value obtaining subunit.

[0108] The first equation acquisition subunit can be used to substitute the coordinate data and elevation value corresponding to each second shape point into the first preset fitting equation corresponding to the second shape point to obtain at least one first equation.

[0109] The second equation acquisition subunit can be used to perform first-order derivative of the second preset fitting equations corresponding to two adjacent target intervals for a second road section with at least two target intervals, and obtain at least one second equation based on the fact that the two adjacent target intervals must be continuous.

[0110] The third equation obtaining subunit may be configured to perform a second-order derivative of a third preset fitting equation corresponding to a second shape point at any end point of the second road segment to obtain a third equation.

[0111] The coefficient solving subunit can be used to solve equation coefficients for at least one first equation, at least one second equation, and a third equation to obtain an interval fitting equation corresponding to each target interval.

[0112] The elevation value acquisition subunit can be used to substitute the coordinate data of the third shape point corresponding to the third shape point data in each target interval into the interval fitting equation to obtain the elevation value corresponding to each third shape point, wherein the third shape point data is the shape point data in the first shape point data except the second shape point data.

[0113] In some embodiments of the present disclosure, the elevation data interpolation device 500 may further include a road segment acquisition module 540 and a road segment screening module 550 .

[0114] The road segment acquisition module 540 may be configured to acquire at least one predecessor road segment and at least one successor road segment corresponding to each third road segment before performing elevation interpolation processing on each third road segment according to a preset algorithm to obtain each elevation-complete third road segment.

[0115] The road segment screening module 550 may be configured to determine a target predecessor road segment and a target successor road segment corresponding to the third road segment from at least one predecessor road segment and at least one successor road segment.

[0116] In some embodiments of the present disclosure, the interpolation processing module 530 may further include a target road segment determination unit 5303 , a second interpolation unit 5304 and a road segment extraction unit 5305 .

[0117] The target road section determining unit 5303 may be configured to determine a road section consisting of a target predecessor road section, a target successor road section, and a third road section as a target road section.

[0118] The second interpolation unit 5304 can be used to perform elevation interpolation processing on the target road section according to a preset algorithm to obtain a target road section with complete elevation.

[0119] The road segment extraction unit 5305 can be used to extract the third road segment after performing elevation interpolation processing from the target road segment with complete elevation, so as to obtain the third road segment with complete elevation.

[0120] In some embodiments of the present disclosure, the elevation data interpolation device 500 may further include a data merging module 560 .

[0121] The data merging module 560 may be used to merge the data of the first road segment, the second road segment with complete elevation, and the third road segment with complete elevation to obtain road network data with complete elevation.

[0122] It should be noted that the elevation data interpolation device 500 shown in FIG5 can execute each step in the above method embodiment and realize each process and effect in the above method embodiment, which will not be described in detail here.

[0123] FIG6 shows a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.

[0124] In the embodiment of the present disclosure, the electronic device shown in Figure 6 can be a server or a terminal or a server cluster, wherein the terminal can specifically include a mobile phone, a computer or a tablet computer, etc., or it can be any device that can be used for the interpolation method of elevation data, etc., and there is no limitation here.

[0125] As shown in FIG6 , the electronic device may include a processor 610 and a memory 620 storing computer program instructions.

[0126] Specifically, the processor 610 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 disclosure.

[0127] Memory 620 may include a large-capacity memory for information or instructions. By way of example, and not limitation, memory 620 may include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disk, a magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 620 may include removable or non-removable (or fixed) media. Where appropriate, memory 620 may be internal or external to the integrated gateway device. In certain embodiments, memory 620 is non-volatile solid-state memory. In certain embodiments, memory 620 includes read-only memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable PROM (EEPROM), electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of these.

[0128] The processor 610 reads and executes computer program instructions stored in the memory 620 to perform the steps of the elevation data interpolation method provided in the embodiment of the present disclosure.

[0129] In one example, the electronic device may further include a transceiver 630 and a bus 640. As shown in FIG6, the processor 610, the memory 620, and the transceiver 630 are connected via the bus 640 and communicate with each other.

[0130] The bus 640 may include hardware, software, or both. By way of example and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, the bus 640 may include one or more buses.

[0131] The embodiments of the present disclosure further provide a computer-readable storage medium, which may store a computer program. When the computer program is executed by a processor, the processor implements the elevation data interpolation method provided by the embodiments of the present disclosure.

[0132] The aforementioned storage medium may, for example, include a memory 620 containing computer program instructions. The aforementioned instructions may be executed by the processor 610 of the electronic device to implement the elevation data interpolation method provided in the embodiments of the present disclosure. Alternatively, the storage medium may be a non-transitory computer-readable storage medium, such as a ROM, a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, or an optical data storage device.

[0133] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising" is intended to cover non-exclusive inclusion, so that a process, method, article or apparatus that includes a list of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article or apparatus.

[0134] The foregoing description is intended only to provide specific embodiments of the present disclosure, intended to enable those skilled in the art to understand and implement the present disclosure. Various modifications to these embodiments will be readily 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 is not intended to be limited to the embodiments described herein, but rather to be construed in the broadest manner consistent with the principles and novel features disclosed herein.

Claims

1. A method for interpolating elevation data, the method comprising: Obtain first shape point data corresponding to each road section; For each of the road sections, according to the number of second shape point data corresponding to the road section, the road section is determined to be one of a first road section, a second road section and a third road section, wherein the second shape point data is shape point data having elevation values ​​in the first shape point data, the first road section is a road section with complete elevation, the second road section is a road section with incomplete elevation, and the third road section is a road section without elevation; According to a preset algorithm, each second road section and each third road section are respectively subjected to elevation interpolation processing to obtain each second road section with complete elevation and each third road section with complete elevation; Before performing elevation interpolation processing on each third road section according to a preset algorithm to obtain each third road section with complete elevation, the method further includes: Acquire at least one predecessor road segment and at least one successor road segment corresponding to the third road segment; A target predecessor road segment and a target successor road segment corresponding to the third road segment are determined from the at least one predecessor road segment and the at least one successor road segment; the target predecessor road segment and the target successor road segment are road segments that meet a preset road segment selection condition, and the preset road segment selection condition is a road segment with at least one second shape point.

2. The method according to claim 1, wherein: The step of determining, for each of the road sections, according to the number of second shape point data corresponding to the road section, the road section as one of a first road section, a second road section and a third road section comprises: When the number of the second shape point data is equal to the number of the first shape point data, determining the road section as the first road section; When the number of the second shape point data is less than the number of the first shape point data and is not zero, determining the road section as a second road section; When the number of the second shape point data is zero, the road section is determined as a third road section.

3. The method according to claim 1 or 2, wherein: The method of performing elevation interpolation processing on each second road section according to a preset algorithm to obtain each second road section with complete elevation includes: According to a preset direction, the second road section is divided into sections based on a plurality of second shape points corresponding to the second shape point data, and an section formed by two adjacent second shape points is determined as a target section corresponding to the second road section, so as to obtain at least one target section corresponding to the second road section; According to the at least one target interval and the preset fitting equation, elevation interpolation processing is performed on the second road section to obtain a second road section with complete elevation.

4. The method according to claim 3, wherein: The second shape point data includes coordinate data and elevation values ​​corresponding to the shape points; The performing elevation interpolation processing on the second road section according to the at least one target interval and the preset fitting equation includes: Substitute the coordinate data and elevation value corresponding to each second shape point into the first preset value corresponding to the second shape point Fitting equations to obtain at least one first equation; For a second road section having at least two target intervals, first-order derivatives of second preset fitting equations respectively corresponding to two adjacent target intervals are taken, and at least one second equation is obtained based on the fact that the two adjacent target intervals must be continuous; Taking a second-order derivative of a third preset fitting equation corresponding to a second shape point at any end point of the second road section to obtain a third equation; Solving the equation coefficients of the at least one first equation, the at least one second equation, and the third equation to obtain an interval fitting equation corresponding to each target interval; Substitute the coordinate data of the third shape point corresponding to the third shape point data in each target interval into the interval fitting equation to obtain the elevation value corresponding to each third shape point, wherein the third shape point data is the shape point data in the first shape point data excluding the second shape point data.

5. The method according to any one of claims 1 to 4, wherein: The method of performing elevation interpolation processing on each third road section according to a preset algorithm to obtain each third road section with complete elevation includes: Determine a road section consisting of the target predecessor road section, the target successor road section and the third road section as a target road section; According to the preset algorithm, the target road section is subjected to elevation interpolation processing to obtain a target road section with complete elevation; A third road section after elevation interpolation processing is extracted from the target road section with complete elevation to obtain a third road section with complete elevation.

6. The method according to any one of claims 1 to 5, wherein: After performing elevation interpolation processing on each second road section and each third road section according to the preset algorithm to obtain each second road section with complete elevation and each third road section with complete elevation, the method further includes: The data of the first road section, the second road section with complete elevation and the third road section with complete elevation are merged to obtain road network data with complete elevation.

7. An interpolation device for elevation data, comprising: A data acquisition module, used to acquire first shape point data corresponding to each road section; a road section determination module, for determining, for each of the road sections, the road section as one of a first road section, a second road section and a third road section according to the number of second shape point data corresponding to the road section, wherein the second shape point data is shape point data having elevation values ​​in the first shape point data, the first road section is a road section with complete elevation, the second road section is a road section with incomplete elevation, and the third road section is a road section without elevation; The interpolation processing module is used to perform elevation interpolation processing on each second road section and each third road section according to a preset algorithm to obtain each second road section with complete elevation and each third road section with complete elevation.

8. An electronic device comprising: 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, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 6.

10. A computer program, when the computer program is run on a computer, causes the computer to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Curve drawing method, computer storage medium and electronic equipment

    CN112215952A

  • Road network map processing method and device, computer equipment and storage medium

    CN114880416A

  • Method and device for determining road elevation, electronic equipment and computer program product

    CN115615442A

  • Virtual elevation generation method and device, computer equipment and storage medium

    CN115830552A

  • Methods and Systems to Synthesize Road Elevations

    US20150149127A1