A method for converting longitude and latitude of heavy-haul railway freight trains into kilometer marks

Through the combination of Beidou positioning system and railway surveying and mapping data, the problem of difficulty in positioning trains in heavy-duty railway freight is solved, accurate kilometer standard calculation is achieved, and the safety and operational efficiency of railway freight are improved.

CN117706598BActive Publication Date: 2024-12-03北京兴盛公科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311744613.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-18
Publication Date
2024-12-03
Estimated Expiration
2043-12-18

Smart Images

  • Figure CN117706598B_ABST
    Figure CN117706598B_ABST
Patent Text Reader

Abstract

The invention discloses a method for converting longitude and latitude of trains into kilometer marks in the field of heavy-duty railway freight transport, comprising: obtaining railway surveying and mapping data of a train running line, preprocessing the railway surveying and mapping data, and obtaining target railway surveying and mapping data; obtaining the longitude and latitude of the train in real time through a Beidou positioning system, and judging whether the longitude and latitude of the train deviates according to the target railway surveying and mapping data; if there is a deviation, obtaining the data point with the smallest distance from the longitude and latitude of the train in the target railway surveying and mapping data, and replacing the longitude and latitude of the train to obtain the target longitude and latitude; obtaining two data point sets adjacent to the target longitude and latitude in the target railway surveying and mapping data according to the target longitude and latitude, as the first data point set and the second data point set; calculating the proportion of the train between the first data point set and the second data point set, and obtaining the target proportion; and calculating the kilometer mark corresponding to the longitude and latitude of the target train based on the target proportion. Thus, the real-time kilometer mark position of the train on the railway can be quickly and accurately located.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a method for converting longitude and latitude of a train into a kilometer mark in the field of heavy-load railway freight. Background Art

[0002] The railway network is complex, with dozens or even hundreds of main and branch lines intersecting, and the operating mileage of the railway is as high as hundreds of thousands of kilometers. At the same time, mobile terminal devices are limited by their computing power. It is indeed difficult to calculate and locate the current main and branch line kilometer marks through the current GPS longitude and latitude within tens of milliseconds. In the past few years, on average, many construction workers or maintenance personnel along the railway line have caused accidents every year because they did not find the approaching train in time. Railway locomotive managers need to know the specific location of the running train for management. Traditional positioning technology is mainly based on GPS positioning. In the transportation process of roads, railways and other lines, it is often involved in the precise positioning of moving bodies on these linear roads, and what needs to be accurately positioned is not the GPS longitude and latitude, but the mileage and the line. But so far, there is no accurate and convenient determination method.

[0003] Railway surveying data consists of multiple railway surveying points. Railway surveying points consist of the center point longitude and latitude, upper and lower offset longitude and latitude, kilometer mark, up and down line mark and other data. Each railway surveying point is a data set. Due to the actual development of heavy-duty railway freight, there is a high demand for data such as the direction, running route, approach and departure, and actual distance of the train. However, the calculation ability of only the longitude and latitude of the train for train-related data is poor, so a method of converting longitude and latitude to kilometer mark is needed. Summary of the invention

[0004] The embodiment of the present invention realizes a method for converting longitude and latitude into kilometer marks in the prior art by providing a method for converting longitude and latitude into kilometer marks in the field of heavy-load railway freight.

[0005] The embodiment of the present invention provides a method for converting longitude and latitude of a train into kilometer mark in the field of heavy-haul railway freight, comprising: obtaining railway surveying and mapping data of a train running line, preprocessing the railway surveying and mapping data, and obtaining target railway surveying and mapping data;

[0006] The longitude and latitude of the train are obtained in real time through the Beidou positioning system, and whether the longitude and latitude of the train are deviated is determined according to the target railway surveying and mapping data;

[0007] If there is a deviation, obtain the data point with the smallest distance from the longitude and latitude of the train in the target railway surveying data, and replace the longitude and latitude of the train to obtain the target longitude and latitude; otherwise, use the longitude and latitude of the train as the target longitude and latitude;

[0008] According to the target longitude and latitude, two data point sets adjacent to the target longitude and latitude in the target railway surveying and mapping data are obtained as a first data point set and a second data point set;

[0009] Calculating the ratio of the train between the first data point set and the second data point set to obtain a target ratio;

[0010] The kilometer mark corresponding to the target longitude and latitude is calculated based on the target ratio.

[0011] Preferably, the preprocessing of the railway surveying and mapping data to obtain the target railway surveying and mapping data includes:

[0012] Traversing the railway surveying and mapping data, and removing data point sets without kilometer marks;

[0013] According to the direction of the train running line, obtain the up railway mapping data or the down railway mapping data;

[0014] Assigning uplink and downlink identifiers to the uplink railway surveying and mapping data or the downlink railway surveying and mapping data to form a plurality of data point sets;

[0015] According to the size of kilometer marks, several data point sets are sorted in positive order to obtain the target railway surveying and mapping data.

[0016] Preferably, the target railway surveying and mapping data includes several data point sets, and the data point sets include the longitude and latitude of the center point, kilometer marks, and up and down line marks.

[0017] Preferably, the determining whether the longitude and latitude of the train are deviated comprises:

[0018] The longitude and latitude of the train are compared one by one with several longitudes and latitudes in the target railway mapping data. If no match is found in the target railway mapping data, it is determined that the longitude and latitude of the train are deviated and are not on the train running route.

[0019] Preferably, the step of obtaining two data point sets adjacent to the target longitude and latitude in the target railway surveying and mapping data comprises:

[0020] Traversing the target railway surveying and mapping data, taking two data point sets as a first data point set and a second data point set in each traversal;

[0021] Calculating the distances between the target longitude and latitude, the longitude and latitude of the first data point set, and the longitude and latitude of the second data point set respectively to obtain a first distance, a second distance, and a third distance;

[0022] The first distance, the second distance and the third distance are compared to obtain two data point sets adjacent to the target longitude and latitude.

[0023] Preferably, the method further comprises:

[0024] Calculating the distance between the longitude and latitude of the first data point set and the longitude and latitude of the target as a first distance;

[0025] Calculating the distance between the latitude and longitude of the second data point set and the target latitude and longitude as a second distance;

[0026] The distance between the longitude and latitude of the first data point set and the longitude and latitude of the second data point set is calculated as the third distance.

[0027] Preferably, comparing the first distance, the second distance and the third distance to obtain two data point sets adjacent to the target longitude and latitude includes:

[0028] If the first distance is less than or equal to the third distance and the second distance is less than or equal to the third distance, the first data point set and the second data point set traversed at this time are regarded as two data point sets adjacent to the target longitude and latitude; otherwise, continue to traverse and update the first data point set and the second data point set.

[0029] Preferably, calculating the proportion of the train between the first data point set and the second data point set includes:

[0030] Taking the absolute value of the longitude of the first data point set minus the longitude of the second data point set as a first comparison result;

[0031] Taking the absolute value of the latitude of the first data point set minus the latitude of the second data point set as a second comparison result;

[0032] Comparing the first comparison result with the second comparison result to obtain a comparison result;

[0033] According to the comparison result, a ratio parameter is determined to obtain a target ratio.

[0034] Preferably, determining the ratio parameter according to the comparison result to obtain the target ratio includes:

[0035] If the comparison result is that the first comparison result is greater than the second comparison result, the longitude is determined as the ratio parameter, and the target ratio is calculated using the longitude;

[0036] If the comparison result is that the first comparison result is smaller than the second comparison result, the latitude is determined as the ratio parameter, and the latitude is used to calculate the target ratio.

[0037] Preferably, the calculating the kilometer mark corresponding to the target longitude and latitude based on the target ratio includes:

[0038] The kilometer mark corresponding to the target longitude and latitude is calculated according to the following formula: K = K1 + (K2 - K1) * a, where K is the kilometer mark corresponding to the target longitude and latitude, K1 is the kilometer mark of the first data point set, K2 is the kilometer mark of the second data point set, and a is the target ratio.

[0039] One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:

[0040] The present invention matches the railway surveying and mapping data according to the train running line according to the uplink or downlink, uses it as the uplink railway surveying and mapping data or the downlink railway surveying and mapping data, and corrects the longitude and latitude of the train to ensure that the longitude and latitude points of the train are on the broken line where the railway surveying and mapping data are located, traverses the railway surveying and mapping data, and finally obtains the kilometer mark of the line corresponding to the train through strict judgment logic between distances. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a flow chart of a method for converting longitude and latitude of a train into kilometer mark in the field of heavy-haul railway freight according to an embodiment of the present invention;

[0042] Figure 2 It is a schematic diagram of a process for obtaining target railway surveying and mapping data according to an embodiment of the present invention;

[0043] Figure 3 An embodiment of the present invention obtains two data adjacent to the target longitude and latitude in the target railway surveying data.

[0044] Flowchart of point set;

[0045] Figure 4 is a schematic diagram of a flow chart of calculating the proportion of a train between a first data point set and a second data point set according to an embodiment of the present invention;

[0046] Figure 5 It is a schematic diagram of a flow chart for obtaining a target ratio according to an embodiment of the present invention. DETAILED DESCRIPTION

[0047] To facilitate the understanding of the present invention, the present invention will be described more comprehensively below with reference to the relevant drawings; the drawings show preferred embodiments of the present invention, but the present invention can be implemented in many different forms and is not limited to the embodiments described herein; on the contrary, the purpose of providing these embodiments is to enable a more thorough and comprehensive understanding of the disclosed content of the present invention.

[0048] All technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which the present invention belongs; the terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention; the term "and / or" used herein includes any and all combinations of one or more related listed items.

[0049] Figure 1 It is a flow chart of a method for converting longitude and latitude of trains into kilometer marks in the field of heavy-haul railway freight according to an embodiment of the present invention.

[0050] like Figure 1 As shown, a method for converting longitude and latitude of a heavy-haul railway freight train into a kilometer mark includes:

[0051] S101, obtaining railway surveying and mapping data of a train running line, preprocessing the railway surveying and mapping data, and obtaining target railway surveying and mapping data.

[0052] In some embodiments, the target railway surveying and mapping data includes a plurality of data point sets, and the data point sets include the longitude and latitude of the center point, kilometer marks, and up and down line identifiers.

[0053] In some embodiments, such as Figure 2 As shown, the railway surveying and mapping data is preprocessed to obtain the target railway surveying and mapping data, including:

[0054] S201, traverse the railway surveying and mapping data, and remove the data point set without kilometer mark.

[0055] S202, obtaining uplink railway surveying and mapping data or downlink railway surveying and mapping data according to the direction of the train running line.

[0056] S203, assigning uplink and downlink identifiers to the uplink railway surveying and mapping data or the downlink railway surveying and mapping data to form a plurality of data point sets.

[0057] S204, sorting the plurality of data point sets in positive order according to the size of the kilometer mark to obtain the target railway surveying and mapping data.

[0058] S102, obtaining the longitude and latitude of the train in real time through the Beidou positioning system, and determining whether there is any deviation in the longitude and latitude of the train based on the target railway surveying and mapping data.

[0059] Specifically, the longitude and latitude of the train are compared one by one with the longitude and latitude of several trains in the target railway mapping data. If no match is found in the target railway mapping data, it is determined that the longitude and latitude of the train are deviated and are not on the train running route.

[0060] S103, if there is a deviation, obtain the data point with the smallest distance from the longitude and latitude of the train in the target railway surveying data, and replace the longitude and latitude of the train to obtain the target longitude and latitude; otherwise, use the longitude and latitude of the train as the target longitude and latitude.

[0061] Specifically, when the longitude and latitude of the train obtained in real time deviate, the longitude and latitude of the data point closest to the longitude and latitude of the train are found in the target railway mapping data, and the longitude and latitude of the data point are used to replace the longitude and latitude of the train at this time to obtain the target longitude and longitude, and the data point set corresponding to the target longitude and longitude is obtained as the target point set; if there is no deviation, the longitude and latitude of the train at this time is used as the target longitude and longitude, and the data point set corresponding to the target longitude and longitude is obtained in the target railway mapping data as the target point set.

[0062] S104, acquiring two data point sets adjacent to the target longitude and latitude in the target railway surveying and mapping data according to the target longitude and latitude.

[0063] In some embodiments, such as Figure 3 As shown, two data point sets adjacent to the target longitude and latitude in the target railway surveying and mapping data are obtained, specifically including:

[0064] S301, traversing the target railway surveying and mapping data, taking two data point sets as a first data point set and a second data point set in each traversal.

[0065] S302, respectively calculating the distances between the target longitude and latitude, the longitude and latitude of the first data point set, and the longitude and latitude of the second data point set to obtain a first distance, a second distance, and a third distance.

[0066] Specifically, the distance between the longitude and latitude of the first data point set and the target longitude and latitude is calculated as the first distance; the distance between the longitude and latitude of the second data point set and the target longitude and latitude is calculated as the second distance; and the distance between the longitude and latitude of the first data point set and the longitude and latitude of the second data point set is calculated as the third distance.

[0067] S303, comparing the first distance, the second distance and the third distance to obtain two data point sets adjacent to the target longitude and latitude.

[0068] Specifically, if the first distance is less than or equal to the third distance and the second distance is less than or equal to the third distance, the first data point set and the second data point set traversed at this time are taken as the two data point sets adjacent to the target longitude and latitude; otherwise, continue to traverse and update the first data point set and the second data point set.

[0069] S105, calculating the ratio of trains between the first data point set and the second data point set to obtain a target ratio.

[0070] In some embodiments, such as Figure 4As shown, calculating the proportion of the train between the first data point set and the second data point set specifically includes:

[0071] S401: Subtract the absolute value of the longitude of the first data point set from the longitude of the second data point set as a first comparison result.

[0072] S402: Subtract the absolute value of the latitude of the second data point set from the latitude of the first data point set as a second comparison result.

[0073] S403: Compare the first comparison result and the second comparison result to obtain a comparison result.

[0074] S404, determining a ratio parameter according to the comparison result to obtain a target ratio.

[0075] Specifically, if Figure 5 As shown, step S403 includes:

[0076] S501: If the comparison result is that the first comparison result is greater than the second comparison result, the longitude is determined as a ratio parameter, and the target ratio is calculated using the longitude.

[0077] Specifically, the proportion of the train between the two data point sets is the difference between the longitude of the target train and the longitude of the first data point set divided by the difference between the longitude of the second data point set and the longitude of the first data point set.

[0078] The corresponding calculation formula is:

[0079] a=|x-x1| / |x1-x2|, where a is the target ratio, x is the longitude of the target train, x1 is the longitude of the first data point set, and x2 is the longitude of the second data point set.

[0080] S502: If the comparison result is that the first comparison result is smaller than the second comparison result, the latitude is determined as a ratio parameter, and the target ratio is calculated using the latitude.

[0081] Specifically, the proportion of the train between the two data point sets is the difference between the latitude of the target train and the latitude of the first data point set divided by the difference between the latitude of the second data point set and the latitude of the first data point set.

[0082] The corresponding calculation formula is:

[0083] a=|y-y1| / |y1-y2|, where a is the target ratio, y is the latitude of the target train, y1 is the latitude of the first data point set, and y2 is the latitude of the second data point set.

[0084] S106, calculating the kilometer mark corresponding to the target longitude and latitude based on the target ratio.

[0085] Specifically, the kilometer mark corresponding to the target longitude and latitude is calculated according to the following formula:

[0086] K = K1 + (K2 - K1) * a,

[0087] Among them, K is the kilometer mark corresponding to the target longitude and latitude, K1 is the kilometer mark of the first data point set, K2 is the kilometer mark of the second data point set, and a is the target ratio.

[0088] It should be noted that the distance between two points obtained based on the longitude and latitude information can be calculated using three-dimensional Cartesian coordinates. Assume that there are two data point sets with longitude and latitude coordinates: A (m1, n1) and B (m2, n2). Convert the longitude and latitude coordinates to three-dimensional Cartesian coordinates (x, y, z). The conversion formula is as follows: x=R*cosn*cosm, y=R*cosn*sinm, z=R*sinn, where R is the radius of the earth, m is the longitude, and n is the latitude. Furthermore, the distance formula between two points in three-dimensional space is used to calculate the distance between point A and point B. The distance formula is as follows:

[0089] d=sqrt((x2-x1)^2+(y2-y1)^2+(z2-z1)^2), thereby converting the longitude and latitude coordinates into three-dimensional Cartesian coordinates, making distance processing relatively simple and efficient, thereby improving work efficiency.

[0090] In summary, the technical solutions in the embodiments of the present invention have at least the following technical effects or advantages:

[0091] 1. Real-time monitoring and acquisition of train longitude and latitude information through the Beidou positioning system, and correction of train longitude and latitude information based on target railway surveying and mapping data combined with distance algorithm, improve the accuracy of train positioning. In addition, the railway surveying and mapping data is classified and sorted according to the train running line and line direction, which facilitates the subsequent calculation of train position distance and improves work efficiency.

[0092] 2. Based on the corrected longitude and latitude information of the train, the longitude and latitude information of the adjacent data point set is combined with the longitude and latitude information of the train to calculate the kilometer mark position information of the train, thereby improving the efficiency and safety of railway freight. Accurate kilometer mark information is helpful for the safety monitoring and dispatching management of railway transportation, effectively reducing the risk of accidents and improving operational efficiency.

[0093] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for converting longitude and latitude of heavy-haul railway freight trains into kilometer marks, characterized in that: include: Acquire railway surveying and mapping data of a train running line, and pre-process the railway surveying and mapping data to obtain target railway surveying and mapping data; The longitude and latitude of the train are obtained in real time through the Beidou positioning system, and whether the longitude and latitude of the train are deviated is determined according to the target railway surveying and mapping data; If there is a deviation, obtain the data point with the smallest distance from the longitude and latitude of the train in the target railway surveying and mapping data, and replace the longitude and latitude of the train to obtain the target longitude and latitude; Otherwise, the longitude and latitude of the train are used as the target longitude and latitude; According to the target longitude and latitude, two data point sets adjacent to the target longitude and latitude in the target railway surveying and mapping data are obtained as a first data point set and a second data point set; Calculating the ratio of the train between the first data point set and the second data point set to obtain a target ratio; Calculate the kilometer mark corresponding to the target longitude and latitude based on the target ratio; Acquiring two data point sets adjacent to the target longitude and latitude in the target railway surveying and mapping data, including: Traversing the target railway surveying and mapping data, taking two data point sets as a first data point set and a second data point set in each traversal; Calculating the distances between the target longitude and latitude, the longitude and latitude of the first data point set, and the longitude and latitude of the second data point set respectively to obtain a first distance, a second distance, and a third distance; Compare the first distance, the second distance and the third distance to obtain two data point sets adjacent to the target longitude and latitude; The method further comprises: Calculating the distance between the longitude and latitude of the first data point set and the longitude and latitude of the target as a first distance; Calculating the distance between the latitude and longitude of the second data point set and the target latitude and longitude as a second distance; Calculate the distance between the longitude and latitude of the first data point set and the longitude and latitude of the second data point set as a third distance; The comparing the first distance, the second distance, and the third distance to obtain two data point sets adjacent to the target longitude and latitude includes: If the first distance is less than or equal to the third distance and the second distance is less than or equal to the third distance, the first data point set and the second data point set traversed at this time are used as two data point sets adjacent to the target longitude and latitude; otherwise, the first data point set and the second data point set are continued to be traversed and updated; The calculating the proportion of the train between the first data point set and the second data point set comprises: Taking the absolute value of the longitude of the first data point set minus the longitude of the second data point set as a first comparison result; Taking the absolute value of the latitude of the first data point set minus the latitude of the second data point set as a second comparison result; Comparing the first comparison result with the second comparison result to obtain a comparison result; Determine a ratio parameter according to the comparison result to obtain a target ratio; Determining the ratio parameter according to the comparison result to obtain the target ratio includes: If the comparison result is that the first comparison result is greater than the second comparison result, the longitude is determined as the ratio parameter, and the target ratio is calculated using the longitude; If the comparison result is that the first comparison result is smaller than the second comparison result, the latitude is determined as the ratio parameter, and the target ratio is calculated using the latitude; Calculating the kilometer mark corresponding to the target longitude and latitude based on the target ratio includes: The kilometer mark corresponding to the target longitude and latitude is calculated according to the following formula: K = K1 + (K2 - K1) * a, where K is the kilometer mark corresponding to the target longitude and latitude, K1 is the kilometer mark of the first data point set, K2 is the kilometer mark of the second data point set, and a is the target ratio.

2. A method for converting longitude and latitude of heavy-haul railway freight trains to kilometer marks as claimed in claim 1, characterized in that: The preprocessing of the railway surveying and mapping data to obtain target railway surveying and mapping data includes: Traversing the railway surveying and mapping data, and removing data point sets without kilometer marks; According to the direction of the train running line, obtain the up railway mapping data or the down railway mapping data; Assigning uplink and downlink identifiers to the uplink railway surveying and mapping data or the downlink railway surveying and mapping data to form a plurality of data point sets; According to the size of kilometer marks, several data point sets are sorted in positive order to obtain the target railway surveying and mapping data.

3. A method for converting longitude and latitude of heavy-haul railway freight trains to kilometer marks as claimed in claim 2, characterized in that: The target railway surveying and mapping data includes a plurality of data point sets, and the data point sets include the longitude and latitude of the center point, kilometer marks, and up and down line marks.

4. A method for converting longitude and latitude of heavy-haul railway freight trains to kilometer marks as claimed in claim 1, characterized in that: The determining whether the longitude and latitude of the train deviates comprises: The longitude and latitude of the train are compared one by one with several longitudes and latitudes in the target railway mapping data. If no match is found in the target railway mapping data, it is determined that the longitude and latitude of the train are deviated and are not on the train running route.