Cross section interpolation method and device, equipment and storage medium

By identifying the main groove position of the river section and combining the linear interpolation method, the problem of insufficient accuracy in the numerical simulation of rivers is solved, and more accurate river terrain interpolation is achieved.

CN118981978APending Publication Date: 2024-11-19SHANGHAI INVESTIGATION DESIGN & RES INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411041023.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-19

AI Technical Summary

Technical Problem

In the numerical simulation of rivers, especially when interpolation of sections, it is difficult to accurately capture the changes in river terrain, resulting in inaccurate interpolation results.

Method used

By determining the position and elevation of the measured section, identifying the left bank and right bank of the main slot, combining the linear interpolation method, generating the starting point distance and elevation of the interpolation section, using preset formulas to calculate the position and point of the interpolation section, correcting the linear interpolation method to improve accuracy sex.

Benefits of technology

It improves the accuracy of the interpolation results, making the interpolation section more in line with the real river terrain, and is suitable for interpolation of a single main groove and a complex river channel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118981978A_ABST
    Figure CN118981978A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of river numerical simulation, and discloses a cross section interpolation method, device and equipment and a storage medium, and the method comprises the steps: determining the positions of a plurality of actually-measured cross sections and the starting point distance and elevation of each point in each actually-measured cross section, recognizing a main groove left bank and a main groove right bank of the actually-measured cross sections according to the elevation of each point in the actually-measured cross sections, and calculating the main groove left bank and the main groove right bank; according to the method, the position of an interpolation section is determined according to the requirement for the interval of the interpolation section, an upstream actually-measured section and a downstream actually-measured section which are adjacent to the interpolation section are determined, and the starting point distance and the elevation of an interpolation point in the interpolation section are generated through linear interpolation. And the interpolation section generated by combining the data of the main river channel is more consistent with the real river channel, so that the accuracy of the interpolation result is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of river numerical simulation, and in particular to a cross-section interpolation method, device, equipment and storage medium. Background Art

[0002] In the field of hydraulics and river dynamics, numerical simulation, as a research method, has gradually played an increasingly important role in scientific research and engineering practice due to its low cost and high efficiency. Accurate and detailed terrain section data is the basis of numerical simulation. If the distance between terrain sections is too far or the terrain difference is too large, the stability and accuracy of numerical simulation will be low, and it may even directly lead to the collapse of simulation calculation. At present, many rivers in engineering practice have not been digitized and there is no terrain data. Measuring underwater terrain cross sections requires a lot of manpower and material resources. From the perspective of project cost control, the spacing between measurement sections is generally large. In order to obtain better simulation effects through a small amount of measured terrain, various interpolation methods are often used in practice to generate more cross sections, so as to improve the stability and accuracy of numerical simulation.

[0003] Currently, many interpolation methods are used, such as linear interpolation, inverse distance interpolation, Kriging interpolation, etc., which are all based on the observation values ​​of all spatial points within a certain range. The interpolation effect is better in areas with relatively flat cross-section changes, but for some cross-sections, the main channel position changes due to changes in the left and right boundaries of the measurement. At this time, the interpolation cross-section obtained by directly using the existing interpolation method is greatly distorted from the actual river terrain, and the interpolation result is not accurate enough. Summary of the invention

[0004] In view of this, the present invention provides a cross-section interpolation method, device, equipment and storage medium to solve the technical problem that the interpolation results generated by the existing interpolation methods are not accurate enough when performing cross-section interpolation.

[0005] In a first aspect, the present invention provides a cross-section interpolation method, comprising: determining the positions of several measured sections and the starting point distance and elevation of each point in each of the measured sections; identifying the main trough left bank and the main trough right bank of the measured section according to the elevation of each point in the measured section, wherein the main trough is located between the main trough left bank and the main trough right bank; determining the position of the interpolation section according to the interpolation section spacing requirement, and determining the upstream measured section and the downstream measured section adjacent to the interpolation section; generating the starting point distance and elevation of the interpolation points in the interpolation section by linear interpolation according to the position of the interpolation section, the position of the upstream measured section, the starting point distance of the main trough left bank of the upstream measured section, the starting point distance of the main trough right bank of the upstream measured section, the position of the downstream measured section, the starting point distance of the main trough left bank of the downstream measured section, and the starting point distance of the main trough right bank of the downstream measured section.

[0006] The cross-section interpolation method of the present invention determines the positions of several measured sections and the starting point distance and elevation of each point in each of the measured sections, identifies the main channel left bank and the main channel right bank of the measured section according to the elevation of each point in the measured section, determines the position of the interpolation section, and determines the upstream measured section and the downstream measured section adjacent to the interpolation section, and combines the position of the interpolation section, the position of the upstream measured section, the starting point distance of the main channel left bank of the upstream measured section, and the elevation of the upstream measured section. The starting point distance of the right bank of the main channel, the position of the downstream measured section, the starting point distance of the left bank of the main channel of the downstream measured section, and the starting point distance of the right bank of the main channel of the downstream measured section are respectively generated by linear interpolation. The position of the main channel of the measured section can be judged. When generating the starting point distance and elevation of the interpolation point in the interpolation section, the linear interpolation method is used, combined with the interpolation section generated by the main channel data, so that the interpolation section is more consistent with the real river channel, thereby improving the accuracy of the interpolation result.

[0007] Optionally, according to the elevations of each point in the measured section, the left bank and the right bank of the main trough of the measured section are identified, including: determining the lowest point with the lowest elevation in the measured section; comparing the elevations of the left adjacent point of the lowest point with the elevation of the lowest point, if the elevation of the left adjacent point is greater than the elevation of the lowest point, taking the left adjacent point as the left current point, and continuing to compare the elevation of the left current point with the elevation of the next left adjacent point to the left, until the elevation of the next left adjacent point is greater than the left current point, the left current point is identified as the left bank of the main trough; comparing the elevations of the right adjacent point of the lowest point with the elevation of the lowest point, if the elevation of the right adjacent point is greater than the elevation of the lowest point, taking the right adjacent point as the right current point, and continuing to compare the elevation of the right current point with the elevation of the next right adjacent point to the right, until the elevation of the next right adjacent point is greater than the right current point, the right current point is identified as the right bank of the main trough.

[0008] This method can automatically identify the left bank and right bank of the main channel of the measured section.

[0009] Optionally, after determining the positions of several measured sections, the method further includes: numbering the measured sections from top to bottom according to the positions of the measured sections to obtain the numbers corresponding to each measured section; correspondingly, according to the interpolation section spacing requirements, the step of determining the positions of the interpolation sections includes: determining the number of interpolation sections to be generated according to the interpolation section spacing requirements; overlapping the first interpolation section with the first numbered measured section, and overlapping the last interpolation section with the last numbered measured section; calculating the positions of the interpolation sections except the first interpolation section and the last interpolation section according to a first preset formula, wherein the first preset formula includes:

[0010]

[0011] In the formula, is the position of the i-th interpolation section, x1 is the position of the first numbered measured section, and x n is the position of the nth numbered measured section, i is the number of the interpolation section, and k is the number of interpolation sections that need to be generated.

[0012] In this manner, the position of each interpolation section is calculated by combining the position of the measured section with the first preset formula, so that the generated interpolation section can effectively fill the measured gaps.

[0013] Optionally, the step of determining the upstream measured section and the downstream measured section adjacent to the interpolation section includes: respectively comparing the position of the interpolation section with the position of the first measured section, and the position of the interpolation section with the position of the second measured section, wherein the first measured section and the second measured section are the measured sections with adjacent numbers; if the position of the interpolation section is greater than the position of the first measured section and the position of the interpolation section is smaller than the second measured section, then the first measured section is the upstream measured section and the second measured section is the downstream measured section.

[0014] This method can quickly determine the upstream and downstream measured sections, providing clear reference points for subsequent interpolation steps.

[0015] Optionally, before respectively generating the starting point distance and elevation of the interpolation point in the interpolation section by linear interpolation, the method further includes: determining the starting point, the left bank of the main channel, the right bank of the main channel and the end point of the interpolation section, dividing the interpolation section into three parts: the starting point-the left bank of the main channel, the main channel and the right bank of the main channel-the end point, and determining the number of interpolation points in each part of the interpolation section; correspondingly, the step of generating the starting point distance of the interpolation point in the interpolation section by linear interpolation includes: calculating the distance between the interpolation section and the upstream measured section and the distance between the interpolation section and the downstream measured section according to the position of the interpolation section, the position of the upstream measured section and the position of the downstream measured section; calculating the starting point distance of each point in the main channel part of the interpolation section by using the distance between the interpolation section and the upstream measured section and the distance between the interpolation section and the downstream measured section through a second preset formula based on linear interpolation, wherein the second preset formula includes:

[0016]

[0017] In the formula, y ku is the measured upstream starting point distance corresponding to the k1th interpolation point in the interpolation section, y kd is the measured starting point distance downstream corresponding to the k1th interpolation point in the interpolation section, y kis the starting distance of the k1th interpolation point in the interpolation section, k1 is the number of the interpolation point, m2 is the number of interpolation points in the main groove of the interpolation section, y yj-1 is the distance from the starting point of the right bank of the main channel of the upstream measured section, y xj-1 is the distance from the left bank starting point of the main channel of the upstream measured section, y yj is the starting point distance of the right bank of the main channel of the downstream measured section, y xj is the starting distance of the left bank of the main channel of the downstream measured section, u i is the distance between the interpolation section and the upstream measured section, d i is the distance between the interpolation section and the downstream measured section.

[0018] By dividing the interpolation section into three parts: the starting point-the left bank of the main channel, the main channel, and the right bank of the main channel-the end point, the linear interpolation method can be corrected in combination with the second preset formula, and the starting point distance of each point in the main channel part of the interpolation section can be calculated in combination with the distances from the upstream measured section and the downstream measured section to the interpolation section, so that the calculation result is more accurate.

[0019] Optionally, the step of generating the elevation of the interpolation point in the interpolation section by linear interpolation includes: calculating the position ratio of the interpolation point in the interpolation section in the main slot according to the starting point distance of the interpolation point in the interpolation section; determining the first target point in the upstream measured section and the second target point in the downstream measured section according to the position ratio of the interpolation point in the main slot in the interpolation section, wherein the position ratio of the first target point in the main slot and the position ratio of the first target point in the main slot are both greater than the position ratio of the interpolation point in the interpolation section, and the position ratio of the left adjacent point of the first target point in the main slot and the position ratio of the left adjacent point of the second target point in the main slot are both smaller than the position ratio of the interpolation point in the interpolation section; calculating the elevation of each point in the main slot portion of the interpolation section by using the elevation of the first target point and the elevation of the second target point through a third preset formula based on linear interpolation, wherein the third preset formula includes:

[0020]

[0021] In the formula, z ku is the measured upstream elevation corresponding to the k1th interpolation point in the interpolation section, z kd is the measured elevation of the downstream corresponding to the k1th interpolation point in the interpolation section, z k is the elevation of the k1th interpolation point in the interpolation section, l ik is the position ratio of the k1th interpolation point in the interpolation section in the main groove, l j-1,p is the position ratio of the first target point in the upstream measured section in the main channel, l j-1,p-1is the position ratio of the left adjacent point of the first target point in the upstream measured section in the main channel, l j,p is the position ratio of the second target point in the downstream measured section in the main channel, l j,p-1 is the position ratio of the left adjacent point of the second target point in the downstream measured section in the main channel, z j-1,p is the elevation of the first target point, z j-1,p-1 is the elevation of the left adjacent point of the first target point, z j,p is the elevation of the second target point, z j,p-1 The elevation of the left adjacent point of the second target point.

[0022] In this method, considering that the closer the distance, the greater the weight of the elevation impact of the measured data, the third preset formula adopts a technology similar to inverse distance interpolation. The closer the distance, the greater the proportion, and the linear interpolation method is corrected to make the elevation calculation result more accurate.

[0023] Optionally, the position ratio of the interpolation point in the interpolation section in the main groove is calculated according to a fourth preset formula, and the fourth preset formula includes:

[0024]

[0025] In the formula, y ik is the starting distance of the k1th interpolation point in the interpolation section, y ix is the starting distance of the left bank of the main channel in the interpolation section, yi y is the starting distance of the right bank of the main channel in the interpolation section.

[0026] The position ratio of the interpolation point in the main groove in the interpolation section is calculated by the fourth preset formula, which provides a comparison basis for the subsequent steps of determining the first target point and the second target point.

[0027] In a second aspect, the present invention provides a cross-section interpolation device, comprising: a measured data determination module, used to determine the positions of several measured sections and the starting point distance and elevation of each point in each of the measured sections; a main trough identification module, used to identify the main trough left bank and the main trough right bank of the measured section according to the elevation of each point in the measured section, wherein the main trough is located between the main trough left bank and the main trough right bank; an interpolation section position determination module, used to determine the position of the interpolation section according to the interpolation section spacing requirement, and determine the upstream measured section and the downstream measured section adjacent to the interpolation section; an interpolation section generation module, used to generate the starting point distance and elevation of the interpolation points in the interpolation section by linear interpolation according to the position of the interpolation section, the position of the upstream measured section, the starting point distance of the main trough left bank of the upstream measured section, the starting point distance of the main trough right bank of the upstream measured section, the position of the downstream measured section, the starting point distance of the main trough left bank of the downstream measured section, and the starting point distance of the main trough right bank of the downstream measured section.

[0028] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the cross-sectional interpolation method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0029] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the cross-sectional interpolation method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 is a schematic flow chart of a cross-section interpolation method according to an embodiment of the present invention;

[0032] Figure 2 is a schematic diagram of measured cross-section coding according to an embodiment of the present invention;

[0033] Figure 3 is a schematic diagram of the main slot position of an embodiment of the present invention;

[0034] Figure 4 is a structural block diagram of a cross-section interpolation device according to an embodiment of the present invention;

[0035] Figure 5 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0037] With regard to the current cross-sectional interpolation of rivers, in some sections, due to the changes in the left and right boundaries of the measurement, the position of the main channel changes. At this time, the interpolation section obtained by directly using linear interpolation, inverse distance interpolation, Kriging interpolation and other methods is greatly distorted from the actual river topography. An embodiment of the present invention provides a cross-sectional interpolation method.

[0038] According to an embodiment of the present invention, an embodiment of a cross-sectional interpolation method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0039] In this embodiment, a cross-section interpolation method is provided, which can be used in mobile terminals, such as mobile phones, tablet computers, etc. Figure 1 As shown, the process includes the following steps:

[0040] Step S101, determining the positions of several measured sections and the starting point distance and elevation of each point in each measured section.

[0041] Specifically, the measured terrain is digitized to determine the locations of several measured sections and the starting point distance and elevation of each point in each measured section.

[0042] According to the specified direction and coding rules, the position, starting point distance and elevation of each measured section are entered into a text file. The specific steps are as follows:

[0043] Specifying the measured section direction: Figure 2 As shown, the longitudinal direction refers to the starting point from the upstream of the river channel, pointing to the downstream along the river channel, passing through each measured section in turn until the downstream measured section of the river channel is the end point; the transverse direction refers to for each measured section, along the longitudinal direction, the left side is the left bank, the right side is the right bank, and the left bank pointing to the right bank is the transverse direction.

[0044] Coding rules: The most upstream measured section of the river is section 1, and the section position is x1. The second measured section from upstream to downstream is section 2, and the section position is x2. And so on, along the longitudinal direction, until the most downstream measured section of the river is section n (n is the total number of measured sections), and the section position is x. n The starting point distance of each measured section is 0 on the left bank and increases in the horizontal direction. The starting point distance of each measuring point is the horizontal distance between the point and the 0 point on the left bank.

[0045] Enter text file: Follow the above steps to enter all measured section positions, starting distances and elevations into a text file in the same format. There is no fixed requirement for the format, as long as all sections remain the same.

[0046] Step S102, identifying the left bank of the main channel and the right bank of the main channel of the measured section according to the elevation of each point in the measured section, wherein the main channel is located between the left bank of the main channel and the right bank of the main channel.

[0047] Specifically, for each measured section starting distance and elevation, the main slot position is identified based on the elevation change pattern.

[0048] Step S103, determining the position of the interpolation section according to the interpolation section spacing requirement, and determining the upstream measured section and the downstream measured section adjacent to the interpolation section.

[0049] Specifically, the interpolation section spacing requirement is the spacing requirement between the pre-determined interpolation section and the measured section. After the interpolation section is generated, it is necessary to ensure that the spacing between each section meets the spacing requirement.

[0050] There may be one or more interpolation sections between every two adjacent measured sections. For each interpolation section, according to the longitudinal direction, the first measured section above it is the upstream measured section, and the first measured section below it is the downstream measured section.

[0051] Step S104, according to the position of the interpolation section, the position of the upstream measured section, the starting distance of the left bank of the main channel of the upstream measured section, the starting distance of the right bank of the main channel of the upstream measured section, the position of the downstream measured section, the starting distance of the left bank of the main channel of the downstream measured section, and the starting distance of the right bank of the main channel of the downstream measured section, the starting distance and elevation of the interpolation point in the interpolation section are generated by linear interpolation.

[0052] Specifically, according to the distance relationship between the interpolation section and the measured sections upstream and downstream, and based on the specified strategy, the starting distance and elevation of the main channel part of a single main channel river channel are generated by linear interpolation, or the starting distance and elevation of the starting point-the left bank of the main channel, the main channel, the right bank of the main channel-the end point of a compound river channel containing multiple channels are generated respectively. Finally, the starting distance and elevation of all interpolation sections are obtained to complete the interpolation.

[0053] The cross-section interpolation method according to the embodiment of the present invention determines the positions of several measured cross-sections and the starting distances and elevations of each point in each measured cross-section. According to the elevations of the points in the measured cross-section, the left bank and the right bank of the main channel of the measured cross-section are identified, and the position of the interpolation cross-section is determined. The upstream measured cross-section and the downstream measured cross-section adjacent to the interpolation cross-section are determined. Combining the position of the interpolation cross-section, the position of the upstream measured cross-section, the starting distance of the left bank of the main channel of the upstream measured cross-section, the starting distance of the right bank of the main channel of the upstream measured cross-section, the position of the downstream measured cross-section, the starting distance of the left bank of the main channel of the downstream measured cross-section, and the starting distance of the right bank of the main channel of the downstream measured cross-section, the starting distance and elevation of the interpolation points in the interpolation cross-section are respectively generated by linear interpolation, which can judge the position of the main river channel of the measured cross-section. When generating the starting distance and elevation of the interpolation points in the interpolation cross-section, by using the method of linear interpolation and combining the data of the main river channel to generate the interpolation cross-section, the interpolation cross-section is more consistent with the real river channel, and the accuracy of the interpolation result is improved.

[0054] In one embodiment, in step S102, according to the elevations of the points in the measured cross-section, identifying the left bank and the right bank of the main channel of the measured cross-section includes:

[0055] Step S1021, determining the lowest point with the lowest elevation in the measured cross-section;

[0056] Step S1022, comparing the elevation of the left adjacent point of the lowest point with the elevation of the lowest point. If the elevation of the left adjacent point is greater than the elevation of the lowest point, the left adjacent point is used as the left current point, and continue to compare the elevation of the left current point with the elevation of the next left adjacent point to the left until the elevation of the next left adjacent point is greater than the left current point, then the left current point is identified as the left bank of the main channel;

[0057] Step S1023, comparing the elevation of the right adjacent point of the lowest point with the elevation of the lowest point. If the elevation of the right adjacent point is greater than the elevation of the lowest point, the right adjacent point is used as the right current point, and continue to compare the elevation of the right current point with the elevation of the next right adjacent point to the right until the elevation of the next right adjacent point is greater than the right current point, then the right current point is identified as the right bank of the main channel.

[0058] Specifically, as Figure 3 shown, for each measured cross-section, first find the elevation Hm of the lowest point in the measured cross-section, then compare the elevation Hm-1 of the left adjacent point with Hm. If Hm-1 > Hm, continue to search to the left until a point is found, the elevation of this point is Hx, and the elevation of the left adjacent point of this point is Hx-1. If Hx-1 < Hx, then this point is the left bank of the main channel. If x = 1, the left bank of the main channel coincides with the starting point of the measured cross-section. The search process on the right is the same as that on the left, and the serial number of the right bank of the main channel is y.

[0059] It should be noted that in actual applications, when encountering terrain such as beach-main trough, the main trough position can be manually modified according to specific circumstances.

[0060] After finding the left bank and the right bank of the main trough, the measured section can be divided into three parts, namely, the left side numbered 1 to numbered x is the first part (starting point-left bank of the main trough); numbered x to numbered y is the second part (main trough); numbered y to the end point is the third part (right bank of the main trough-end point).

[0061] In one embodiment, in step S101, after determining the positions of a plurality of measured sections, the method further includes:

[0062] The measured sections are numbered from top to bottom according to their positions to obtain the number corresponding to each measured section shown.

[0063] That is, the most upstream measured section of the river is section 1, and the section position is x1. The second measured section from upstream to downstream is section 2, and the section position is x2. And so on, along the longitudinal direction, until the most downstream measured section of the river is section n (n is the total number of measured sections), and the section position is x. n .

[0064] Correspondingly, in step S103, the step of determining the position of the interpolation section according to the interpolation section spacing requirement includes:

[0065] Step S1031, determining the number of interpolation sections to be generated according to the interpolation section spacing requirement.

[0066] For example, if the required interpolation section spacing is 2 and the distance between two adjacent measured sections is 3, then at least one interpolation section needs to be inserted between the two measured sections, thereby determining the number of interpolation sections that need to be generated.

[0067] Step S1032, overlap the first interpolated section with the first numbered measured section, and overlap the last interpolated section with the last numbered measured section.

[0068] Step S1033, calculating the positions of the interpolation sections except the first interpolation section and the last interpolation section according to a first preset formula, wherein the first preset formula includes:

[0069]

[0070] In the formula, is the position of the i-th interpolation section, x1 is the position of the first numbered measured section, and x n is the position of the nth measured section, i is the number of the interpolation section, and k is the number of interpolation sections that need to be generated.

[0071] In the embodiment of the present invention, the position of each interpolation section is calculated by combining the position of the measured section with the first preset formula, so that the generated interpolation section can effectively fill the measured gap.

[0072] Furthermore, in step S103, the step of determining an upstream measured section and a downstream measured section adjacent to the interpolation section includes:

[0073] Step S1034, respectively comparing the position of the interpolated section with the position of the first measured section, and the position of the interpolated section with the position of the second measured section, wherein the first measured section and the second measured section are measured sections with adjacent numbers;

[0074] Step S1035: if the position of the interpolated section is greater than the position of the first measured section and the position of the interpolated section is smaller than the second measured section, the first measured section is the upstream measured section and the second measured section is the downstream measured section.

[0075] Specifically, for each interpolation section, the position of the i-th interpolation section calculated in step S1033 is According to the size of the measured section number, the positions of the measured sections with the th number are compared in order from small to large. If x vi >x j-1 And x vi <x j , then the upstream measured section of the i-th interpolation section is numbered j-1, and the downstream measured section is numbered j.

[0076] The embodiment of the present invention can quickly determine the upstream and downstream measured sections, providing clear reference points for subsequent interpolation steps.

[0077] In one embodiment, before generating the starting distance and elevation of the interpolation point in the interpolation section respectively by linear interpolation in step S104, the method further includes:

[0078] Determine the starting point, left bank of the main trough, right bank of the main trough and end point of the interpolation section, divide the interpolation section into three parts: starting point-left bank of the main trough, main trough and right bank of the main trough-end point, and determine the number of interpolation points in each part of the interpolation section.

[0079] In one example, the starting point, the left bank of the main channel, the right bank of the main channel, and the end point of the interpolation section are respectively the average of the starting point, the left bank of the main channel, the right bank of the main channel, and the end point of the upstream measured section and the downstream measured section. The number of interpolation points of each part can be set according to actual needs.

[0080] Correspondingly, in step S104, the step of generating the starting distance of the interpolation point in the interpolation section by linear interpolation includes:

[0081] Step S1041, calculating the distance between the interpolation section and the upstream measured section and the distance between the interpolation section and the downstream measured section according to the position of the interpolation section, the position of the upstream measured section and the position of the downstream measured section.

[0082] In one example, the upstream measured section and the downstream measured section obtained by the interpolation section i are numbered j-1 and j respectively, so the distance between the interpolation section i and the upstream measured section is u i =x vi -x j-1 , the distance d between the interpolated section i and the downstream measured section i =x j -x vi .

[0083] Step S1042, using a second preset formula based on linear interpolation, the distance between the interpolation section and the upstream measured section and the distance between the interpolation section and the downstream measured section are used to calculate the starting point distance of each point in the main channel part of the interpolation section, wherein the second preset formula includes:

[0084]

[0085] In the formula, y ku is the measured upstream starting point distance corresponding to the k1th interpolation point in the interpolation section, y kd is the measured starting point distance downstream corresponding to the k1th interpolation point in the interpolation section, y k is the starting point distance of the k1th interpolation point in the interpolation section, k1 is the number of the interpolation point, m2 is the number of interpolation points in the main groove of the interpolation section, y vj-1 is the distance from the starting point of the right bank of the main channel of the upstream measured section, y xj-1 is the distance from the left bank starting point of the main channel of the upstream measured section, y yj is the starting point distance of the right bank of the main channel of the downstream measured section, y xj u is the starting point distance of the left bank of the main channel of the downstream measured section, i is the distance between the interpolation section and the upstream measured section, d i is the distance between the interpolated section and the downstream measured section.

[0086] By dividing the interpolation section into three parts: the starting point-the left bank of the main channel, the main channel, and the right bank of the main channel-the end point, the linear interpolation method can be corrected in combination with the second preset formula, and the starting point distance of each point in the main channel part of the interpolation section can be calculated in combination with the distances from the upstream measured section and the downstream measured section to the interpolation section, so that the calculation result is more accurate.

[0087] Furthermore, in step S104, the step of generating the elevation of the interpolation point in the interpolation section by linear interpolation includes:

[0088] Step S1043, calculating the position ratio of the interpolation point in the interpolation section in the main groove according to the starting point distance of the interpolation point in the interpolation section.

[0089] Specifically, the position ratio of the interpolation point in the main groove in the interpolation section is calculated according to the fourth preset formula, and the fourth preset formula includes:

[0090]

[0091] In the formula, y ik is the starting distance of the k1th interpolation point in the interpolation section, y ix is the starting distance of the left bank of the main channel in the interpolation section, y iy is the starting distance of the right bank of the main channel in the interpolation section.

[0092] Step S1044, determining the first target point in the upstream measured section and the second target point in the downstream measured section according to the position ratio of the interpolation point in the main slot in the interpolation section, wherein the position ratio of the first target point in the main slot and the position ratio of the first target point in the main slot are both greater than the position ratio of the interpolation point in the main slot in the interpolation section, and the position ratio of the left adjacent point of the first target point in the main slot and the position ratio of the left adjacent point of the second target point in the main slot are both smaller than the position ratio of the interpolation point in the main slot in the interpolation section.

[0093] Specifically, similar to the position ratio of the interpolation point in the main channel, for a point P on the measured section upstream of j-1, the calculation formula for the ratio of the position of the point in the main channel is:

[0094]

[0095] y p is the starting point distance of point P, y xj-1 y is the starting point distance of the left bank of the main channel of the upstream measured section of J-1, yj-1 The distance from the starting point on the right bank of the main channel of the upstream measured section of No. -1 is calculated according to the ratio calculation formula of the position ratio of point P in the main channel. On the upstream measured section of No. -1, find point P that satisfies the following formula, that is, the first target point, where P-1 represents the adjacent point on the left side of point P:

[0096] l j-1,p-1 <l ik <l j-1,p

[0097] Similarly, search for the second target point on the measured section downstream of No.

[0098] According to the above ratio calculation formula, the position ratio l of the first target point in the upstream measured section in the main channel can be calculated: j-1,p , the position ratio l of the adjacent points on the left side of the first target point in the main slot j-1,p-1, the position ratio l of the second target point in the downstream measured section in the main channel j,p And the position ratio l of the left adjacent point of the second target point in the main slot j,p-1 .

[0099] Step S1045, using a third preset formula based on linear interpolation, the elevation of each point in the main groove portion of the interpolation section is calculated using the elevation of the first target point and the elevation of the second target point, wherein the third preset formula includes:

[0100]

[0101] In the formula, Z ku is the measured upstream elevation corresponding to the k1th interpolation point in the interpolation section, z kd is the measured elevation of the downstream corresponding to the k1th interpolation point in the interpolation section, z k is the elevation of the k1th interpolation point in the interpolation section, l ik is the position ratio of the k1th interpolation point in the interpolation section in the main groove, l j-1,p is the position ratio of the first target point in the upstream measured section in the main channel, l j-1,p-1 is the position ratio of the left adjacent point of the first target point in the upstream measured section in the main channel, l j,p is the position ratio of the second target point in the downstream measured section in the main channel, l j,p-1 is the position ratio of the left adjacent point of the second target point in the downstream measured section in the main channel, z j-1,p is the elevation of the first target point, z j-1,p-1 is the elevation of the left adjacent point of the first target point, z j,p is the elevation of the second target point, z j,p-1 The elevation of the left adjacent point of the second target point.

[0102] In the embodiment of the present invention, dual linear interpolation is used to successively calculate the starting distance and elevation of each interpolation section point. When performing linear interpolation, considering that the closer the distance is, the greater the weight of the elevation influence of the measured data, when calculating the spacing and elevation of the interpolation points, a technique similar to inverse distance interpolation is used, and the closer the distance is, the greater the proportion is, and the linear interpolation method is corrected to make the calculation results of the starting distance and elevation more accurate.

[0103] It should be understood that the starting point distance and elevation of the above-mentioned interpolation points are only illustrated in the main groove part. The embodiment of the present invention can also calculate the starting point distance and elevation of each interpolation point in the two parts of the starting point-the left bank of the main groove and the right bank of the main groove-the end point respectively. The calculation process is basically the same as the calculation process in the main groove part. The difference lies in that when calculating the starting point distance and elevation of the starting point-the left bank of the main groove, the left bank of the main groove in the above-mentioned second preset formula, the third preset formula and the fourth preset formula is replaced by the starting point, and the right bank of the main groove is replaced by the left bank of the main groove. When calculating the starting point distance and elevation of the right bank of the main groove-the end point, the left bank of the main groove in the above-mentioned second preset formula, the third preset formula and the fourth preset formula is replaced by the right bank of the main groove, and the right bank of the main groove is replaced by the end point.

[0104] A cross-section interpolation method according to an embodiment of the present invention has at least the following effects:

[0105] 1. By self-identifying the main channel position of the measured section, the section can be made more consistent with the actual river channel when performing section interpolation. The cross-section interpolation method of the embodiment of the present invention is applicable to both single main channel river channel interpolation and complex section interpolation including multiple river channels.

[0106] 2. Use double linear interpolation to calculate the starting distance and elevation of each interpolation section point. When performing linear interpolation, considering that the closer the distance is, the greater the weight of the measured data elevation, a similar inverse distance interpolation technique is used to correct the linear interpolation method, and the interpolation result is more accurate.

[0107] 3. The data required by the embodiment of the present invention are only the measured section points and section distances, and the data demand is small. The interpolation section density can be determined arbitrarily according to the needs to generate an interpolation section that meets the requirements, and an automatic calculation code can be written, which includes the above-mentioned measured terrain digitization, main river channel identification, interpolation section calculation and generation modules. The required data is input in a text file format, and after running, the interpolation section starting point distance, elevation, and section distance output results in text form can be automatically and efficiently obtained.

[0108] The present invention also provides a cross-section interpolation device, such as Figure 4 As shown, including:

[0109] The measured data determination module 401 is used to determine the positions of several measured sections and the starting point distance and elevation of each point in each measured section;

[0110] The main channel identification module 402 is used to identify the main channel left bank and the main channel right bank of the measured section according to the elevation of each point in the measured section, wherein the main channel is located between the main channel left bank and the main channel right bank;

[0111] The interpolation section position determination module 403 is used to determine the position of the interpolation section according to the interpolation section spacing requirement, and determine the upstream measured section and the downstream measured section adjacent to the interpolation section;

[0112] The interpolation section generation module 404 is used to generate the starting point distance and elevation of the interpolation point in the interpolation section through linear interpolation according to the position of the interpolation section, the position of the upstream measured section, the starting point distance of the left bank of the main channel of the upstream measured section, the starting point distance of the right bank of the main channel of the upstream measured section, the position of the downstream measured section, the starting point distance of the left bank of the main channel of the downstream measured section, and the starting point distance of the right bank of the main channel of the downstream measured section.

[0113] The cross-section interpolation device of the embodiment of the present invention determines the positions of several measured sections and the starting point distance and elevation of each point in each measured section, identifies the left bank and the right bank of the main channel of the measured section according to the elevation of each point in the measured section, determines the position of the interpolation section, and determines the upstream measured section and the downstream measured section adjacent to the interpolation section. In combination with the position of the interpolation section, the position of the upstream measured section, the starting point distance of the left bank of the main channel of the upstream measured section, the starting point distance of the right bank of the main channel of the upstream measured section, the position of the downstream measured section, the starting point distance of the left bank of the main channel of the downstream measured section, and the starting point distance of the right bank of the main channel of the downstream measured section, the starting point distance and elevation of the interpolation point in the interpolation section are respectively generated through linear interpolation, so as to determine the position of the main channel of the measured section. When generating the starting point distance and elevation of the interpolation point in the interpolation section, the linear interpolation method is used to combine the interpolation section generated by the main channel data, so that the interpolation section is more consistent with the real river channel, thereby improving the accuracy of the interpolation result.

[0114] Further, the primary slot identification module 402 includes:

[0115] The lowest point determination module is used to determine the lowest point with the lowest elevation in the measured section;

[0116] The left bank identification module is used to compare the elevation of the left adjacent point of the lowest point with the elevation of the lowest point. If the elevation of the left adjacent point is greater than the elevation of the lowest point, the left adjacent point is used as the left current point, and the elevation of the left current point is compared with the elevation of the next left adjacent point. When the elevation of the next left adjacent point is greater than the left current point, the left current point is identified as the left bank of the main slot.

[0117] The right bank identification module is used to compare the elevation of the right adjacent point of the lowest point with the elevation of the lowest point. If the elevation of the right adjacent point is greater than the elevation of the lowest point, the right adjacent point is taken as the right current point, and the elevation of the right current point and the elevation of the next right adjacent point are compared to the right. When the elevation of the next right adjacent point is greater than the right current point, the right current point is identified as the right bank of the main trough.

[0118] Furthermore, after determining the positions of the plurality of measured sections, the measured data determination module 401 is further configured to:

[0119] The measured sections are numbered from top to bottom according to their positions, and the numbers corresponding to each measured section are obtained;

[0120] Correspondingly, the interpolation section position determination module 403 includes:

[0121] A section quantity determination module is used to determine the number of interpolation sections that need to be generated according to the interpolation section spacing requirement;

[0122] A section overlap module is used to overlap the first interpolated section with the first numbered measured section, and overlap the last interpolated section with the last numbered measured section;

[0123] The section position calculation module is used to calculate the positions of the interpolation sections except the first interpolation section and the last interpolation section according to a first preset formula, wherein the first preset formula includes:

[0124]

[0125] In the formula, is the position of the i-th interpolation section, x1 is the position of the first numbered measured section, and x n is the position of the nth measured section, i is the number of the interpolation section, and k is the number of interpolation sections that need to be generated.

[0126] Furthermore, the interpolation section position determination module 403 further includes:

[0127] A position comparison module, used to compare the position of the interpolated section with the position of the first measured section, and the position of the interpolated section with the position of the second measured section, wherein the first measured section and the second measured section are measured sections with adjacent numbers;

[0128] The upstream and downstream measured section determination module is used to determine that if the position of the interpolated section is greater than the position of the first measured section and the position of the interpolated section is smaller than the second measured section, the first measured section is the upstream measured section and the second measured section is the downstream measured section.

[0129] Furthermore, before the interpolation section generation module 404 generates the starting distance and elevation of the interpolation point in the interpolation section by linear interpolation, it is also used to:

[0130] Determine the starting point, the left bank of the main trough, the right bank of the main trough and the end point of the interpolation section, divide the interpolation section into three parts: the starting point-the left bank of the main trough, the main trough, and the right bank of the main trough-the end point, and determine the number of interpolation points in each part of the interpolation section;

[0131] Correspondingly, the interpolation section generation module 404 includes:

[0132] A distance calculation module, used for calculating the distance between the interpolation section and the upstream measured section and the distance between the interpolation section and the downstream measured section according to the position of the interpolation section, the position of the upstream measured section and the position of the downstream measured section;

[0133] The starting point distance calculation module is used to calculate the starting point distance of each point in the main channel part of the interpolation section by using the distance between the interpolation section and the upstream measured section and the distance between the interpolation section and the downstream measured section through a second preset formula based on linear interpolation, wherein the second preset formula includes:

[0134]

[0135] In the formula, y ku is the measured upstream starting point distance corresponding to the k1th interpolation point in the interpolation section, y kd is the measured starting point distance downstream corresponding to the k1th interpolation point in the interpolation section, y k is the starting point distance of the k1th interpolation point in the interpolation section, k1 is the number of the interpolation point, m2 is the number of interpolation points in the main groove of the interpolation section, y yj-1 is the distance from the starting point of the right bank of the main channel of the upstream measured section, y xj-1 is the distance from the left bank starting point of the main channel of the upstream measured section, y yj is the starting point distance of the right bank of the main channel of the downstream measured section, y xj u is the starting point distance of the left bank of the main channel of the downstream measured section, i is the distance between the interpolation section and the upstream measured section, d i is the distance between the interpolated section and the downstream measured section.

[0136] Furthermore, the interpolation section generation module 404 also includes:

[0137] A ratio calculation module, used to calculate the position ratio of the interpolation point in the interpolation section in the main slot according to the starting point distance of the interpolation point in the interpolation section;

[0138] A target point acquisition module, used to determine a first target point in the upstream measured section and a second target point in the downstream measured section according to the position ratio of the interpolation point in the main slot in the interpolation section, wherein the position ratio of the first target point in the main slot and the position ratio of the first target point in the main slot are both greater than the position ratio of the interpolation point in the main slot in the interpolation section, and the position ratio of the left adjacent point of the first target point in the main slot and the position ratio of the left adjacent point of the second target point in the main slot are both less than the position ratio of the interpolation point in the main slot in the interpolation section;

[0139] The elevation calculation module is used to calculate the elevation of each point in the main groove part of the interpolation section by using the elevation of the first target point and the elevation of the second target point through a third preset formula based on linear interpolation, wherein the third preset formula includes:

[0140]

[0141] In the formula, Z ku is the measured elevation of the upstream corresponding to the k1th interpolation point in the interpolation section, Z kd is the measured elevation of the downstream corresponding to the k1th interpolation point in the interpolation section, z k is the elevation of the k1th interpolation point in the interpolation section, l ik is the position ratio of the k1th interpolation point in the interpolation section in the main groove, l j-1,p is the position ratio of the first target point in the upstream measured section in the main channel, l j-1,p-1 is the position ratio of the left adjacent point of the first target point in the upstream measured section in the main channel, l j,p is the position ratio of the second target point in the downstream measured section in the main channel, l j,p-1 is the position ratio of the left adjacent point of the second target point in the downstream measured section in the main channel, z j-1,p is the elevation of the first target point, z j-1,p-1 is the elevation of the left adjacent point of the first target point, z j,p is the elevation of the second target point, z j,p-1 The elevation of the left adjacent point of the second target point.

[0142] Furthermore, the ratio calculation module calculates the position ratio of the interpolation point in the interpolation section in the main groove according to a fourth preset formula, and the fourth preset formula includes:

[0143]

[0144] In the formula, y ik is the starting distance of the k1th interpolation point in the interpolation section, y ix is the starting distance of the left bank of the main channel in the interpolation section, y iy is the starting distance of the right bank of the main channel in the interpolation section.

[0145] The embodiment of the present invention also provides a schematic diagram of the structure of a computer device, such as Figure 5As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.

[0146] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0147] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0148] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0149] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0150] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.

[0151] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0152] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0153] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0154] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A cross-section interpolation method, characterized in that: include: Determine the positions of several measured sections and the starting distance and elevation of each point in each of the measured sections; According to the elevation of each point in the measured section, identifying the main trough left bank and the main trough right bank of the measured section, wherein the main trough is located between the main trough left bank and the main trough right bank; According to the interpolation section spacing requirement, determine the position of the interpolation section, and determine the upstream measured section and the downstream measured section adjacent to the interpolation section; According to the position of the interpolation section, the position of the upstream measured section, the starting distance of the left bank of the main channel of the upstream measured section, the starting distance of the right bank of the main channel of the upstream measured section, the position of the downstream measured section, the starting distance of the left bank of the main channel of the downstream measured section, and the starting distance of the right bank of the main channel of the downstream measured section, the starting distance and elevation of the interpolation points in the interpolation section are generated respectively by linear interpolation.

2. The cross-section interpolation method according to claim 1, characterized in that: According to the elevation of each point in the measured section, identifying the left bank of the main channel and the right bank of the main channel of the measured section includes: Determine the lowest point with the lowest elevation in the measured section; Compare the elevation of the left adjacent point of the lowest point with the elevation of the lowest point. If the elevation of the left adjacent point is greater than the elevation of the lowest point, take the left adjacent point as the left current point, and continue to compare the elevation of the left current point with the elevation of the next left adjacent point until the elevation of the next left adjacent point is greater than the left current point, and identify the left current point as the left bank of the main groove. Compare the elevation of the right adjacent point of the lowest point with the elevation of the lowest point. If the elevation of the right adjacent point is greater than the elevation of the lowest point, take the right adjacent point as the right current point, and continue to compare the elevation of the right current point with the elevation of the next right adjacent point until the elevation of the next right adjacent point is greater than the right current point, then identify the right current point as the right bank of the main trough.

3. The cross-section interpolation method according to claim 1, characterized in that: After determining the locations of several measured sections, it also includes: Numbering the measured sections from top to bottom according to the positions of the measured sections to obtain a number corresponding to each measured section; Correspondingly, according to the interpolation section spacing requirement, the steps of determining the position of the interpolation section include: According to the interpolation section spacing requirements, determine the number of interpolation sections that need to be generated; Overlap the first interpolated section with the first numbered measured section, and overlap the last interpolated section with the last numbered measured section; The positions of the interpolation sections except the first interpolation section and the last interpolation section are calculated according to a first preset formula, wherein the first preset formula includes: In the formula, is the position of the i-th interpolation section, x1 is the position of the first numbered measured section, and x n is the position of the nth numbered measured section, i is the number of the interpolation section, and k is the number of interpolation sections that need to be generated.

4. The cross-section interpolation method according to claim 3, characterized in that: The steps of determining an upstream measured section and a downstream measured section adjacent to the interpolation section include: Respectively comparing the position of the interpolated section with the position of the first measured section, and the position of the interpolated section with the position of the second measured section, wherein the first measured section and the second measured section are the measured sections with adjacent numbers; If the position of the interpolated section is greater than the position of the first measured section and the position of the interpolated section is smaller than the second measured section, the first measured section is the upstream measured section and the second measured section is the downstream measured section.

5. The cross-section interpolation method according to claim 1, characterized in that: Before respectively generating the starting point distance and elevation of the interpolation point in the interpolation section by linear interpolation, the method further includes: Determine the starting point, the left bank of the main trough, the right bank of the main trough and the end point of the interpolation section, divide the interpolation section into three parts: the starting point-the left bank of the main trough, the main trough and the right bank of the main trough-the end point, and determine the number of interpolation points in each part of the interpolation section; Correspondingly, the step of generating the starting point distance of the interpolation point in the interpolation section by linear interpolation includes: Calculating the distance between the interpolation section and the upstream measured section and the distance between the interpolation section and the downstream measured section according to the position of the interpolation section, the position of the upstream measured section and the position of the downstream measured section; The starting point distance of each point in the main channel part of the interpolation section is calculated by using the distance between the interpolation section and the upstream measured section and the distance between the interpolation section and the downstream measured section through a second preset formula based on linear interpolation, wherein the second preset formula includes: In the formula, y ku is the measured upstream starting point distance corresponding to the k1th interpolation point in the interpolation section, y kd is the measured starting point distance downstream corresponding to the k1th interpolation point in the interpolation section, y k is the starting point distance of the k1th interpolation point in the interpolation section, k1 is the number of the interpolation point, m2 is the number of interpolation points in the main groove of the interpolation section, y yj-1 is the distance from the starting point of the right bank of the main channel of the upstream measured section, y xj-1 is the distance from the left bank starting point of the main channel of the upstream measured section, y yj is the starting point distance of the right bank of the main channel of the downstream measured section, y xj u is the starting point distance of the left bank of the main channel of the downstream measured section, i is the distance between the interpolation section and the upstream measured section, d i is the distance between the interpolation section and the downstream measured section.

6. The cross-section interpolation method according to claim 5, characterized in that: The step of generating the elevation of the interpolation point in the interpolation section by linear interpolation comprises: Calculating the position ratio of the interpolation point in the interpolation section in the main groove according to the starting point distance of the interpolation point in the interpolation section; Determine a first target point in the upstream measured section and a second target point in the downstream measured section according to the position ratio of the interpolation point in the main slot in the interpolation section, wherein the position ratio of the first target point in the main slot and the position ratio of the first target point in the main slot are both greater than the position ratio of the interpolation point in the main slot in the interpolation section, and the position ratio of the left adjacent point of the first target point in the main slot and the position ratio of the left adjacent point of the second target point in the main slot are both less than the position ratio of the interpolation point in the main slot in the interpolation section; The elevation of each point in the main groove portion of the interpolation section is calculated by using the elevation of the first target point and the elevation of the second target point through a third preset formula based on linear interpolation, wherein the third preset formula includes: In the formula, z ku is the measured upstream elevation corresponding to the k1th interpolation point in the interpolation section, z kd is the measured elevation of the downstream corresponding to the k1th interpolation point in the interpolation section, z k is the elevation of the k1th interpolation point in the interpolation section, l ik is the position ratio of the k1th interpolation point in the interpolation section in the main groove, l j-1,p is the position ratio of the first target point in the upstream measured section in the main channel, l j-1,p-1 is the position ratio of the left adjacent point of the first target point in the upstream measured section in the main channel, l j,p is the position ratio of the second target point in the downstream measured section in the main channel, l j,p-1 is the position ratio of the left adjacent point of the second target point in the downstream measured section in the main channel, z j-1,p is the elevation of the first target point, z j-1,p-1 is the elevation of the left adjacent point of the first target point, z j,p is the elevation of the second target point, z j,p-1 The elevation of the left adjacent point of the second target point.

7. The cross-section interpolation method according to claim 6, characterized in that: The position ratio of the interpolation point in the interpolation section in the main groove is calculated according to a fourth preset formula, and the fourth preset formula includes: In the formula, y ik is the starting distance of the k1th interpolation point in the interpolation section, y ix is the starting distance of the left bank of the main channel in the interpolation section, y iy is the starting distance of the right bank of the main channel in the interpolation section.

8. A cross-section interpolation device, characterized in that: include: A measured data determination module, used to determine the positions of several measured sections and the starting point distance and elevation of each point in each of the measured sections; A main channel identification module, used to identify the main channel left bank and the main channel right bank of the measured section according to the elevation of each point in the measured section, wherein the main channel is located between the main channel left bank and the main channel right bank; An interpolation section position determination module is used to determine the position of the interpolation section according to the interpolation section spacing requirement, and determine the upstream measured section and the downstream measured section adjacent to the interpolation section; The interpolation section generation module is used to generate the starting point distance and elevation of the interpolation point in the interpolation section by linear interpolation according to the position of the interpolation section, the position of the upstream measured section, the starting point distance of the left bank of the main channel of the upstream measured section, the starting point distance of the right bank of the main channel of the upstream measured section, the position of the downstream measured section, the starting point distance of the left bank of the main channel of the downstream measured section, and the starting point distance of the right bank of the main channel of the downstream measured section.

9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the cross-section interpolation method according to any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the cross-section interpolation method according to any one of claims 1 to 7.