A railway route map generation method, device, equipment and medium

By obtaining and filtering the initial route, determining the station coordinates based on the station information and screen size, and iteratively computing the remaining route coordinates using the same station relationship, the problems of low efficiency and low accuracy of manual drawing of railway line maps are solved, and efficient and accurate railway line map generation is achieved.

CN119478123BActive Publication Date: 2025-04-22CRSC RESEARCH & DESIGN INSTITUTE GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510031707.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-09
Publication Date
2025-04-22
Estimated Expiration
2045-01-09

AI Technical Summary

Technical Problem

In the prior art, the generation of railway line maps relies on manual drawing, resulting in large time consumption and susceptible to human factors, affecting the accuracy and readability of the map.

Method used

By obtaining railway line information, filtering out the initial line, combining the station information and screen size of the initial line, determining the coordinates of each station, and using the coordinate relationship of the same station, iteratively computing the station coordinates of the remaining lines to achieve accurate railway line drawing.

Benefits of technology

It improves the efficiency and accuracy of the railway line map, simplifies the drawing process of multiple lines, and avoids the process of repeatedly calculating the coordinates of each station.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119478123B_ABST
    Figure CN119478123B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and medium for generating a railway route map. The method comprises: obtaining railway route information to be displayed on a screen, the railway route information comprises at least one route to be drawn, and station information of each route to be drawn, the station information comprises the station distance and azimuth angle of each station; selecting an initial route from each route to be drawn; determining the station coordinates of each station in the initial route in sequence in the initial route according to the station information of the initial route and the size of the screen; for at least one remaining route except the initial route, determining the station coordinates of each station in each remaining route according to the station coordinates of the same station existing with the target route, the target route is a route for which the station coordinates of all stations are determined; and displaying each route to be drawn on the screen according to the station coordinates of each station in each route to be drawn. The embodiment of the present invention can improve the efficiency and accuracy of drawing a railway route map.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of railway engineering information technology, and in particular to a railway route map generation method, device, equipment and medium. Background Art

[0002] With the rapid development of railway transportation, the complexity of the railway network continues to increase. In order to improve the efficiency of railway line information transmission, the generation and visualization of railway line maps are becoming increasingly important in railway transportation scheduling and information display.

[0003] Currently, railway route maps are usually generated by manual drawing.

[0004] However, manually drawing railway maps requires a lot of time and human resources. When the route is complex, the work will be more cumbersome, and the accuracy of manual point drawing is easily affected by human factors, resulting in inaccurate or deviations in station coordinates, affecting the accuracy and readability of the railway map. Summary of the invention

[0005] The present invention provides a method, device, equipment and medium for generating a railway route map. The embodiments of the present invention can improve the efficiency and accuracy of drawing a railway route map.

[0006] In a first aspect, an embodiment of the present invention provides a method for generating a railway route map, the method comprising:

[0007] Acquire railway line information to be displayed on the screen, the railway line information including at least one line to be drawn and station information of each line to be drawn, the station information including the station distance and azimuth angle of each station;

[0008] Selecting an initial route from each route to be drawn;

[0009] According to the station information of the initial line and the size of the screen, the station coordinates of each station in the initial line are determined in sequence in the initial line;

[0010] For at least one remaining line except the initial line, the station coordinates of each station in each remaining line are determined according to the station coordinates of the same stations as the target line, and the target line is the line for which the station coordinates of all stations are determined;

[0011] Each line to be drawn is displayed on the screen according to the station coordinates of each station in the line to be drawn.

[0012] In a second aspect, an embodiment of the present invention further provides a railway route map generating device, the device comprising:

[0013] A railway line information acquisition module is used to acquire railway line information to be displayed on the screen, the railway line information includes at least one line to be drawn and station information of each line to be drawn, the station information includes the station distance and azimuth angle of each station;

[0014] An initial line screening module is used to screen out the initial line from the lines to be drawn;

[0015] An initial line coordinate calculation module, used to sequentially determine the station coordinates of each station in the initial line according to the station information of the initial line and the size of the screen;

[0016] The remaining line coordinate calculation module is used to determine the station coordinates of each station in each remaining line according to the station coordinates of the same stations as the target line for at least one remaining line except the initial line, and the target line is the line for which the station coordinates of all stations are determined;

[0017] The route display module is used to display each route to be drawn on the screen according to the station coordinates of each station in the route to be drawn.

[0018] In a third aspect, an embodiment of the present invention further provides a railway route map generation device, the railway route map generation device comprising:

[0019] at least one processor; and

[0020] a memory communicatively connected to at least one processor; wherein,

[0021] The memory stores a computer program executable by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the railway route map generation method of any embodiment of the present invention.

[0022] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the railway route map generation method of any embodiment of the present invention when executed.

[0023] The technical solution of the embodiment of the present invention obtains the to-be-drawn route and station information in the railway route information that needs to be displayed on the screen, and selects the initial route from the to-be-drawn route, and determines the station coordinates of each station in the initial route on the screen in turn in combination with the station information in the initial route and the size of the screen, so that the initial route can be accurately drawn on the screen, and each station in the initial route can be accurately located, thereby improving the drawing accuracy of the initial route; the station coordinates of other stations in the remaining route are derived through the station coordinates of the same station in the remaining route and the target route, and the relationship between the same stations is referred to, and the other stations of the remaining route are iteratively calculated, and the remaining route is iteratively calculated based on the initial route, so that the remaining route can be accurately drawn based on the accurate initial route, thereby improving the drawing accuracy of the railway route map; it also avoids the repeated process of separately calculating the station coordinates of all stations on each route, simplifies the drawing process of multiple routes, and improves the drawing efficiency of the railway route map.

[0024] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0026] Figure 1 is a flow chart of a method for generating a railway route map according to an embodiment of the present invention;

[0027] Figure 2 It is a schematic diagram of the orientation of a method for generating a railway route map provided according to an embodiment of the present invention;

[0028] Figure 3 is a flow chart of a method for generating a railway route map according to an embodiment of the present invention;

[0029] Figure 4 A flowchart of drawing an initial route in a railway route map is provided according to an embodiment of the present invention;

[0030] Figure 5 A flowchart for determining an initial route in a railway route map provided according to an embodiment of the present invention;

[0031] Figure 6A flowchart for drawing a subsequent route in a railway route map is provided according to an embodiment of the present invention;

[0032] Figure 7 is an overall flow chart of a railway route map generation method provided according to an embodiment of the present invention;

[0033] Figure 8 is a schematic diagram of the structure of a railway map generating device provided according to an embodiment of the present invention;

[0034] Fig. 9 The present invention is a schematic diagram of the structure of a railway route map generating device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0035] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 only 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 ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0037] In the technical solution of the embodiment of the present invention, the acquisition, storage and application of the railway line information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0038] Figure 1 The present invention is a flow chart of a method for generating a railway route map according to an embodiment of the present invention. The present invention is applicable to the case of generating a railway route map. The method can be executed by a railway route map generating device, and the railway route map generating device can be implemented in the form of hardware and / or software.

[0039] See also Figure 1 The railway route map generation method shown includes:

[0040] S101. Acquire railway line information to be displayed on a screen, where the railway line information includes at least one line to be drawn and station information of each line to be drawn, where the station information includes the station distance and azimuth angle of each station.

[0041] In one example, the screen may include a computer monitor, a large electronic display screen in a station waiting hall, or a screen of a mobile terminal. The mobile terminal may include a mobile phone, a tablet computer, a vehicle-mounted terminal, or a laptop computer, etc.

[0042] Railway route information may refer to a collection of data related to describing a route in a railway route. Railway route information may include the route to be drawn and the station information of each route to be drawn. Railway route information is the basic data used to generate a railway route map, provides the basic content for drawing a railway route map, and determines the shape, direction, and location of stations of the railway route map.

[0043] The line to be drawn may refer to a specific line extracted from the railway line information and prepared to be displayed on the screen. The line to be drawn is used to represent the railway line that needs to be presented on the screen. In an example, the line to be drawn may refer to three lines A, B and C in the railway line. Each line to be drawn may include different starting stations and terminal stations, and each line to be drawn may also have a common station.

[0044] Station information may refer to a collection of relevant data about each station in a railway line. Station information is used to determine the relative position of each station in a railway line. The coordinates of each station are determined through the station information, and then a railway line map is drawn. In an example, station information may include station identification, station distance and azimuth angle. Station information may also include: the order between stations, traffic volume and running time and other information. Among them, the station identification may include the station ID (Identity Document) or the station name; the order between stations may refer to the order of arrangement of each station in each line; traffic volume may refer to the actual number of passengers and cargo tons carried by the train passing through the line or section; running time may refer to the actual time taken for the train to run through the line or section.

[0045] The station distance may refer to the line length distance between each station and its adjacent station. The station distance may be expressed in kilometers or other length units to describe the physical space interval between stations. Optionally, the station distance of a station may refer to the distance between the station and the next adjacent station. Among them, the next station of a station may refer to the adjacent station after the sequence of the station in a line, which is determined according to the sequence between the stations. The station distance is used to determine the accurate relative position relationship between the stations in the railway line. For example, a line includes station A, station B and station C. The station distance between station B and station A is X kilometers, and the station distance between station B and station C is Y kilometers.

[0046] The azimuth angle may refer to the angle of the line between each station and its adjacent station. Alternatively, the azimuth angle of a station may refer to the angle between the station and the next adjacent station. Figure 2 In the azimuth diagram shown, in some embodiments, the due east direction of the station is counted as 0°, and the azimuth angle changes from 0° to 360° when rotating counterclockwise.

[0047] S102: Select an initial line from each line to be drawn.

[0048] Among them, the initial route may refer to the first route selected from the routes to be drawn. The initial route is used as a reference route when generating a railway route map. The initial route is the basis for generating a railway route map, and the initial route determines the relative positions of other routes. Usually, the initial route is the most accurate route among the routes to be drawn. It is understandable that the determination error of the station coordinates in the short straight line route is the smallest. Thus, a vertical route, a horizontal route or a straight line can be selected as the initial route. If the number of vertical routes, horizontal routes and straight lines is multiple, a route with the shortest route distance can be selected as the initial route, or one of the vertical routes, horizontal routes and straight lines detected first can be determined as the initial route.

[0049] S103. According to the station information of the initial line and the size of the screen, the station coordinates of each station in the initial line are determined in sequence.

[0050] Among them, the station coordinates may refer to the coordinate values ​​of the station on the screen. The station coordinates may be represented by pixel positions. The station coordinates are used to determine the display position of each station on the screen, ensuring that the relative position and distance between the stations conform to the actual situation, so that the layout of the railway map on the display screen is clearer and more reasonable. In an example, on the display screen of the railway map, including station A and station B, the station coordinates of station A are (XX, YY), and the station coordinates of station B are (XX, YY).

[0051] S104. For at least one remaining line except the initial line, determine the station coordinates of each station in each remaining line according to the station coordinates of the same stations as the target line. The target line is the line for which the station coordinates of all stations are determined.

[0052] Among them, the target line may refer to a line for which the station coordinates of all stations are determined. For example, if the line is drawn immediately after the station coordinates of each station on a certain line are determined, the target line may refer to the drawn line. The target line is used to provide the station coordinates of the same station as a reference benchmark to help determine the station coordinates on the remaining lines and ensure that the drawing of the remaining lines is consistent with the target line. In some embodiments, the target line may refer to an initial line for which the coordinates of all stations have been determined, or it may refer to other lines for which the coordinates of all stations have been determined. In one example, in the process of drawing a railway route map, line A includes station A, station B, and station C, and the station coordinates of each station have been determined, then line A can be used as the target line.

[0053] The remaining lines may refer to lines to be drawn other than the initial lines. The drawing of the remaining lines depends on the same stations of the target line and the remaining lines. The coordinates of other stations of the remaining lines are derived through the station coordinates of the same stations, so as to draw a complete railway route map. In one example, in the process of drawing a railway route map, there are 10 lines AJ in the railway route map, and there are the same stations in the 10 lines. Line A is taken as the initial line, and the station coordinates of each station in the initial line have been determined. The coordinates of each station in the remaining lines have not yet been confirmed, then the remaining lines can be used as the remaining lines.

[0054] The same station can refer to the same station that appears on multiple different lines. The same station serves as the intersection of multiple lines. The same station is used to align the drawing of different lines so that each line can be accurately connected and displayed in the railway route map. The same station is a common node of multiple lines, which can ensure the drawing coordination between lines. In an example, line A has stations A, B, and C, and line B has stations D, E, and A, where station A is the same station for lines A and B.

[0055] S105 . Display each line to be drawn on the screen according to the station coordinates of each station in each line to be drawn.

[0056] It can be seen that in the embodiment of the present invention, by obtaining the to-be-drawn route and station information in the railway route information that needs to be displayed on the screen, and screening out the initial route from the to-be-drawn route, combining the station information in the initial route and the size of the screen, the station coordinates of each station in the initial route on the screen are determined in turn, so that the initial route can be accurately drawn on the screen, and each station in the initial route can be accurately located, thereby improving the drawing accuracy of the initial route; the station coordinates of other stations in the remaining route are derived through the station coordinates of the same station in the remaining route and the target route, and the other stations of the remaining route are iteratively calculated with reference to the relationship between the same stations, and the remaining route is iteratively calculated based on the initial route. The remaining route can be accurately drawn based on the accurate initial route, thereby improving the drawing accuracy of the railway route map; it also avoids the repeated process of separately calculating the station coordinates of all stations on each route, simplifies the drawing process of multiple routes, and improves the drawing efficiency of the railway route map.

[0057] Figure 3 The flowchart of a railway route map generation method provided according to an embodiment of the present invention is as follows. Based on the above embodiment, the present invention refines the railway route map generation method.

[0058] The procedure of “determining the station coordinates of each station in the initial line in sequence according to the station information of the initial line and the size of the screen” is refined into “determining the station coordinates of the initial station according to the azimuth angle of the initial station in the initial line and the size of the screen; determining the station coordinates of each other station in the initial line according to the station coordinates of the initial station, the azimuth angles of other stations in the initial line except the initial station, and the station distances” to improve the operation of generating the railway route map.

[0059] It should be noted that for the parts not described in detail in the embodiments of the present invention, reference may be made to the descriptions of other embodiments.

[0060] See also Figure 3 The railway route map generation method shown includes:

[0061] S301. Obtain railway line information to be displayed on a screen, where the railway line information includes at least one line to be drawn and station information of each line to be drawn, where the station information includes the station distance and azimuth angle of each station.

[0062] S302: Select an initial line from each line to be drawn.

[0063] S303: Determine the station coordinates of the initial station according to the azimuth angle of the initial station in the initial line and the size of the screen.

[0064] Among them, the initial station may refer to the station used as a reference point in the initial route. The initial station is used as a reference point to gradually derive the station coordinates of other stations. The initial station may select the first station as the initial station, the initial station may select the last station as the initial station, or the initial station may select any station in the middle as the initial station. In some embodiments, in order to facilitate the iterative calculation of the station coordinates of the stations of the initial route, the first station in the station sequence is selected as the initial station. The initial station is used to determine the station coordinates of the earliest station in drawing the initial route, and the station coordinates of other subsequent stations can be calculated based on the station coordinates of the initial station. In an example, in the initial route A, the first starting station A can be selected as the initial station. The coordinates of the starting station A are (XX, YY), and the station coordinates of the starting station A are first confirmed.

[0065] The size of the screen may refer to the physical size of the screen displaying the railway route map. The size of the screen may be represented by the number of pixels. The size of the screen is used to determine the display space of the railway route map on the screen. In an example, the size of the screen may be XXXX*YYYY pixels, indicating that the length of the screen is XXXX pixels and the width of the screen is YYYY pixels.

[0066] Determining the station coordinates of the initial station according to the azimuth angle of the initial station in the initial line and the size of the screen can mean that when drawing the initial line, according to the azimuth angle between the initial station and the next station, and the size of the screen, according to preset rules, the station coordinates of the initial station on the screen are determined, which can ensure that the initial line is stored in a suitable position on the screen, thereby ensuring the rationality of the layout of the railway map.

[0067] S304: Determine the station coordinates of other stations in the initial line according to the station coordinates of the initial station, the azimuth angles and station distances of other stations in the initial line except the initial station.

[0068] The coordinate difference between the next station and the station whose station coordinates have been determined can be determined based on the station distance and azimuth angle between the station whose station coordinates have been determined and the next station, and the station coordinates of the next station can be determined based on the station coordinates determined by the station. The station coordinates of each station are iteratively calculated from front to back according to the order between the stations in the initial line.

[0069] It can be seen that in this embodiment, by determining the station coordinates of the initial station according to the azimuth angle of the initial station in the initial line and the size of the screen, it can ensure that the initial station is reasonably matched with the boundary and size of the screen when drawing, avoid excessive offset of the station coordinates or exceeding the display area, ensure the accurate positioning of the initial station on the screen, and provide a reliable basis for the subsequent calculation of the coordinates of other stations; starting from the initial station, the station coordinates of other stations in the initial line are calculated in turn according to the azimuth angle and the station distance, which can reduce confusion in drawing, enable each station in the railway route map to maintain consistency in relative position, and make the drawing of the entire railway line more continuous and logical.

[0070] S305. For at least one remaining line except the initial line, determine the station coordinates of each station in each remaining line according to the station coordinates of the same stations as the target line. The target line is the line for which the station coordinates of all stations are determined.

[0071] S306. Display each line to be drawn on the screen according to the station coordinates of each station in each line to be drawn.

[0072] In a specific example, Figure 4 A flowchart for drawing an initial route in a railway route map is provided according to an embodiment of the present invention. The data flow of the flowchart is as follows: establishing a plane rectangular coordinate system on the screen; obtaining initial station information in the initial route; determining the coordinates of the initial station; calculating the coordinates of subsequent stations in the initial route in sequence; and placing the initial route in an array of drawn routes.

[0073] In the scenario of drawing a railway route map, the steps for drawing the initial route are as follows:

[0074] First, establish a plane rectangular coordinate system with the lower left corner of the screen as the origin, where the length of the screen is screen x , the width of the screen is screen y .

[0075] Second, obtain the initial station information, take the first station as the initial station, and determine the station coordinates of the initial station according to the azimuth angle of the initial station. The first station can be used as the initial station, or the last station can be used as the initial station. The method for confirming the station coordinates of the initial station is as follows: when the azimuth angle of the initial station is 0, the station coordinates of the initial station are For example, since the next station is on the east side of the initial station, it indicates that the line is extended to the east, so the horizontal coordinate of the initial station is set to the left side of the screen; and the initial station is the first station in the line, so the vertical coordinate is half of the screen, which is convenient for subsequent stations to extend upward or downward, so that each station in the drawn initial line can be completely drawn in the center of the screen; when the azimuth angle of the initial station is 180°, the station coordinates of the initial station are For example, since the next station is on the west side of the initial station, it indicates that the line is extended to the west. Therefore, the horizontal coordinate of the initial station is set to the right side of the screen. The initial station is the first station in the line. Therefore, the vertical coordinate is half of the screen, which is convenient for subsequent stations to extend upward or downward, so that each station in the drawn initial line can be completely drawn in the center of the screen. When the azimuth angle of the initial station is 90°, the station coordinates of the initial station are For example, since the next station is on the north side of the initial station, it indicates that the line is extended to the north. Therefore, the horizontal coordinate of the initial station is set to the middle position of the lower side of the screen; and the initial station is the first station in the line, so the vertical coordinate is the lower side of the screen, which is convenient for subsequent stations to extend to the left or right, so that each station in the drawn initial line can be completely drawn in the center of the screen; when the azimuth angle of the initial station is 270°, the station coordinates of the initial station are For example, since the next station is on the south side of the initial station, it indicates that the line is extended to the south. Therefore, the horizontal coordinate of the initial station is set to the middle position of the upper side of the screen; and the initial station is the first station in the line, so the vertical coordinate is the upper side of the screen, which is convenient for subsequent stations to extend to the left or right, so that each station in the drawn initial line can be completely drawn in the center of the screen; when the azimuth angle of the initial station is greater than or equal to 0° and less than 90°, the station coordinates of the initial station are For example, since the next station is within the northeast range of the initial station, it indicates that the line is extended to the northeast. Therefore, the horizontal and vertical coordinates of the initial station are set to the lower left corner of the screen, so that the subsequent stations can extend to the right or upward, so that each station in the drawn initial line can be completely drawn in the center of the screen; when the azimuth angle of the initial station is greater than or equal to 90° and less than 180°, the station coordinates of the initial station are For example, since the next station is within the northwest range of the initial station, it indicates that the line is extended to the northwest. Therefore, the horizontal and vertical coordinates of the initial station are set to the lower right corner of the screen, so that the subsequent stations can extend to the left or upward, so that each station in the drawn initial line can be completely drawn in the center of the screen; when the azimuth angle of the initial station is greater than or equal to 180° and less than 270°, the station coordinates of the initial station are For example, since the next station is within the southwest range of the initial station, it indicates that the line extends to the southwest. Therefore, the horizontal and vertical coordinates of the initial station are set to the upper right corner of the screen, which is convenient for subsequent stations to extend to the left or downward, so that each station in the drawn initial line can be completely drawn in the center of the screen; when the azimuth angle of the initial station is greater than or equal to 270° and less than 360°, the station coordinates of the initial station are For example, since the next station is within the southeast range of the initial station, it indicates that the line extends to the southeast. Therefore, the horizontal and vertical coordinates of the initial station are set to the upper left corner of the screen to facilitate the subsequent stations to extend to the right or downward, so that each station in the drawn initial line can be completely drawn in the center of the screen.

[0076] Third, according to the azimuth angle and station distance of the initial station, calculate the station coordinates of the next station, and calculate the station coordinates of subsequent stations in turn. Assume that the coordinates of the i-th station are , the calculation formula for calculating the station coordinates of the i+1th station is as follows:

[0077]

[0078] In the formula, represents the horizontal coordinate of the station coordinates of the i-th station, represents the ordinate of the station coordinates of the i-th station, The horizontal coordinate of the station coordinates of the i+1th station, The ordinate represents the station coordinates of the i+1th station, represents the station distance between the i-th station and the i+1-th station, Represents the azimuth angle between the i-th station and the i+1-th station.

[0079] Fourth, the initial route is stored in a drawn route array, wherein the drawn route array may refer to a collection of railway routes for which coordinates of all stations in the route have been calculated, and the drawing time may occur at any time in drawing the railway route map.

[0080] In some embodiments, the method includes: selecting short routes according to the azimuth angle of each station in each route to be drawn, and determining the short routes as initial routes.

[0081] Among them, a short route can refer to a route with a simple route and a short length among the routes to be drawn, and a short route can refer to a route with a small cross-domain area. In the process of generating a railway route map, screening out short routes as initial routes helps to simplify coordinate calculations, and selecting short routes as initial routes can reduce the error in drawing the initial routes, and calculating the station coordinates of the remaining routes based on the initial routes can reduce the overall error in drawing the railway route map.

[0082] In a specific example, in a scenario where an initial line is screened out from lines to be drawn, the lines to be drawn include line A, line B, line C, and line D, where line A is a horizontal line and the other lines are curved lines. Among the lines to be drawn, line A can be used as the initial line; or the lines to be drawn include line A, line B, line C, and line D, where line A has the shortest line length and none of the lines is a horizontal line, a vertical line, or a straight line, then line A is selected as the initial line.

[0083] It can be seen that in this embodiment, by screening out short routes according to the azimuth angles of each station in each route to be drawn, the process of selecting the initial route is simplified. Compared with complex calculation methods or other parameter evaluation methods, the short route selection method based on azimuth angles is more intuitive and faster, reducing the complexity of initial route screening; selecting a short route as the initial route can reduce the workload of calculating the station coordinates of the initial route, thereby improving the efficiency of drawing the entire railway route map; selecting a short route as the initial route, the station coordinates of the initial route are determined more accurately, which helps to reduce the error diffusion of the station coordinates during the drawing process. When the remaining routes are derived based on the subsequent same stations, the error of the station coordinates is relatively small, which improves the accuracy of the overall railway route map.

[0084] In a specific example, Figure 5 The invention discloses a flowchart for determining an initial route in a railway route map according to an embodiment of the present invention. The data flow of the flowchart is as follows: traversing railway route information; judging whether the route is a horizontal route, if the route is a horizontal route, determining the route as an initial route, otherwise, continuing to execute; judging whether the route is a vertical route, if the route is a vertical route, determining the route as an initial route, otherwise, continuing to execute; judging whether the route is a straight route, if the route is a straight route, determining the route as an initial route, otherwise, continuing to execute; all traversed routes are not horizontal routes, vertical routes or straight routes, and selecting the route with the shortest distance as the initial route.

[0085] According to the azimuth angles of each station in each line to be drawn, the steps of selecting short lines and determining them as initial lines are as follows:

[0086] First, traverse all railway line information in turn.

[0087] Second, determine whether the currently traversed line is a horizontal line, that is, all the azimuth angles of the stations in the line are 0° or 180°. If the above conditions are met, select the line as the initial line. If no line meets the above conditions, execute the next step.

[0088] Third, determine whether the currently traversed line is a vertical line, that is, all the azimuth angles of the stations in the line are 90° or 270°. If the above conditions are met, select the line as the initial line. If no line meets the above conditions, proceed to the next step.

[0089] Fourth, determine whether the currently traversed line is a straight line, that is, all the azimuth angles of the stations in the line are the same or the opposite angle of the azimuth angle. If the above conditions are met, select the line as the initial line. If no line meets the above conditions, execute the next step.

[0090] Fifth, if all the traversed railway line information does not meet the above conditions, the shortest line is selected as the initial line. Among them, the above steps can be stopped when an initial line that meets the conditions is selected, and the line that meets the conditions is used as a short line and the initial line.

[0091] In some embodiments, the method includes: selecting a target line having an intersection station among the remaining lines except the initial line; determining, for each target line, the first intersection station on the target line as the initial station of the target line; determining the station coordinates of other stations in the target line according to the station coordinates of the initial station of the target line, the azimuth angles and station distances of other stations in the target line except the initial station; and correcting the station coordinates of the station in the target line when the target station in the target line is the same as a predetermined second intersection station and the station coordinates of the target station are different from the station coordinates of the second intersection station.

[0092] The same station may refer to an intersection station in at least two lines. An intersection station may refer to a station that appears in multiple lines, and an intersection station may serve as the intersection of multiple lines. An intersection station is actually a station with predetermined station coordinates. An intersection station may be understood as a station with accurate station coordinates, and may serve as a starting station for iterative calculation of station coordinates. In an example, station C may be a station in line A, and station C may also be a station in line B. Station C is the intersection station of line A and line B.

[0093] The first intersection station may refer to the first intersection station with the initial line or other lines in a target line. The first intersection station is used to determine the initial reference point of the target line. As the initial station, the coordinates of subsequent stations will be calculated based on the first intersection station. In an example, in line B, station X is the first station that has an intersection station with the initial line A, that is, station X is the first intersection station.

[0094] The second intersection station may refer to another intersection station in the target line except the first intersection. The second intersection station is used to correct the station coordinates of the target line to ensure that the station coordinates in the target line are accurate. The first intersection station and the second intersection station may be stations on the target line, the first intersection station may refer to the intersection station between the target line and the first line, the second intersection station may refer to the intersection station between the target line and the second line, and the first line and the second line may be the same or different.

[0095] Correction can refer to adjusting the station coordinates of the target line. Correction is used to ensure the consistency of coordinates of the same station in the line map, avoiding distortion or errors in the railway line map due to mismatched station coordinates in different lines.

[0096] It can be seen that in this embodiment, by selecting a target line outside the initial line and containing the same station in the target line, it can be ensured that the coordinates of the intersection station on different lines remain consistent. The same station as a reference point can effectively reduce the offset or error between different lines, ensuring that the station coordinates of the remaining lines are accurately aligned with the same station in the initial line; by starting from the intersection station and gradually determining the coordinates of other stations, the continuity between the lines can be maintained and faults or misalignments between the lines can be avoided; by using the coordinates of the same station as a known condition, there is no need to recalculate the coordinates of the same station, reducing the complexity and time overhead of calculations during the drawing process; for the case where the target station in the target line is the same as the second intersection station but their coordinates are inconsistent, by performing coordinate correction, it can be ensured that the actual positions of the stations are consistent, thereby improving the accuracy of railway route map drawing.

[0097] In some embodiments, it includes: obtaining the number of stations between the target station and the first intersection station; adjusting the station coordinates of the stations between the target station and the first intersection station according to the station coordinates of the target station, the station coordinates of the second intersection station and the number of stations.

[0098] The number of stations may refer to the number of stations between the first intersection station and the second intersection station. The number of stations is used to evenly distribute the coordinates between the first intersection station and the second intersection station.

[0099] The target station may refer to a station on the line whose station coordinates need to be adjusted. The target station is a station located on the target line; the first intersection station is the first intersection station with the initial line or other lines in the target line; the second intersection station is another intersection station with other lines in the target line. In the process of drawing a railway line map, the target station and the second intersection station logically belong to the same station. Due to drawing errors or other reasons, the station coordinates of the target station and the first intersection station are inconsistent. The first intersection station is a reference point of the target line. The station coordinates of the first intersection station have been determined and can be used as a basis for adjusting the station coordinates of the stations between the target station and the first intersection station.

[0100] During the adjustment process, the coordinates of each station in the target line are adjusted to ensure that the final position of the target station approaches the position of the second intersection station. The approach can be achieved by adjusting the ratio to gradually reduce the distance between the target station and the second intersection station.

[0101] It can be seen that in this embodiment, by adjusting the station coordinates based on the station coordinates between stations at different intersections, it is ensured that when there are intersection stations between lines, the drawn coordinates of each station remain consistent, which helps to avoid inconsistencies between different lines, thereby improving the accuracy of the entire railway route map; adjusting the station coordinates within the interval based on the intersection information avoids the situation of blindly adjusting the coordinates of all stations. The targeted adjustment method improves the efficiency of station coordinate adjustment and better adapts to the complex relationship between different lines.

[0102] In a specific example, Figure 6 The invention discloses a flow chart for drawing a subsequent line in a railway route map according to an embodiment of the present invention, wherein the data flow of the flow chart is as follows: at the beginning of the process, input the data of an undrawn line group, wherein the undrawn line may refer to a line to be drawn; if the traversal of the undrawn line group is completed, the process ends, otherwise, the next step of processing is continued; it is determined whether the undrawn line group has an intersection station with the drawn line, and if so, the station coordinates of the intersection station are determined; and the subsequent stations of the intersection station are started to be traversed until the traversal of the subsequent stations is completed; the predecessor stations of the intersection station are traversed until the traversal of the predecessor stations is completed; it is determined whether the traversed subsequent stations and predecessor stations exist in the drawn line, if not, the station coordinates are determined, and if so, the next step is performed; it is determined whether the station coordinates of the traversed subsequent stations and predecessor stations are the same as those of the drawn station, if the same, the station coordinates are determined, and if different, the station coordinates of the adjacent intersection stations are queried; the number of stations between the two intersections is calculated, and the station coordinates between the two intersection stations are adjusted; and the station coordinates are determined.

[0103] In the scenario of drawing a railway route map, the steps for drawing subsequent routes are as follows:

[0104] First, the array of lines to be drawn is traversed, wherein the array of lines to be drawn may refer to a collection of railway lines for which the coordinates of all stations in the lines have not yet been calculated.

[0105] Second, determine whether there is an intersection station between the currently traversed route and the drawn route array, and whether there is a same station. If there is a same station, the station coordinates of the same station are used as the initial station of the route; if not, return to S601 and continue traversing.

[0106] Third, calculate the station coordinates of the subsequent stations of the initial station in turn. The formula for calculating the station coordinates of the subsequent stations is as follows:

[0107]

[0108] In the formula, represents the horizontal coordinate of the station coordinates of the i-th station, represents the ordinate of the station coordinates of the i-th station, The horizontal coordinate of the station coordinates of the i+1th station, The ordinate represents the station coordinates of the i+1th station, represents the station distance between the i-th station and the i+1-th station, Represents the azimuth angle between the i-th station and the i+1-th station.

[0109] Fourth, determine whether the subsequent station exists in the array of drawn lines. If so, proceed to S605. If not, determine the station coordinates of the subsequent station.

[0110] Fifth, determine whether the station coordinates of the subsequent station are the same as the drawn station coordinates. If they are not the same, proceed to S606. If they are the same, determine the station coordinates of the subsequent station.

[0111] Sixth, the subsequent station is denoted as P, and the station coordinates are , corresponding to the drawn station coordinates P', the station coordinates are marked as , query the adjacent intersection Q, that is, the next adjacent identical station, the station coordinates are .

[0112] Seventh, calculate the number of stations between stations P and Q , the coordinates are recorded as ,When the coordinates of the subsequent station P are close to the coordinates of the drawn station P', the drawing is considered to be accurate.

[0113] Eighth, adjust the station coordinates of each station between stations P and Q. The adjustment formula is as follows:

[0114] ;

[0115] In the formula, , Refers to the station coordinates between the adjusted P and Q stations.

[0116] Ninth, calculate the coordinates of the stations preceding station M in sequence, and repeat S604 to S608 to determine the station coordinates.

[0117] Tenth, after the line is drawn, it is moved from the array of lines to be drawn to the array of lines already drawn.

[0118] In some embodiments, before displaying each line to be drawn on the screen according to the station coordinates of each station in each line to be drawn, it also includes: determining the size of the line map according to the station coordinates of each station in each line to be drawn; and adjusting the station coordinates of the station in each line to be drawn according to the line map size and the screen size.

[0119] The route map size may refer to the area of ​​the actual display area of ​​the generated railway route map on the screen. The route map size may be expressed in pixels, and the route map size may be determined by the range of station coordinates. The screen size may refer to the length and width of the screen displaying the railway route map, and the screen size may also be expressed in pixels. In some actual usage scenarios, the route map size and the screen size are not completely consistent. Therefore, the size of the route map is scaled to adapt to the screen size so that the route map can be fully displayed on the screen.

[0120] It can be seen that in this embodiment, by determining the size of the route map, it can be ensured that when displayed on screens of different sizes, the route map can adapt to the display area, making the railway line information clearer and more readable; adjusting the station coordinates according to the route map size and the screen size can effectively utilize the screen space and avoid information loss or incomplete display due to size mismatch.

[0121] In some embodiments, before displaying each line to be drawn on the screen according to the station coordinates of each station in each line to be drawn, it also includes: determining the boundary coordinates according to the station coordinates of each station in each line to be drawn; and adjusting the station coordinates of the station in each line to be drawn according to the boundary coordinates and the screen size.

[0122] The boundary coordinates may refer to the coordinates of the farthest station in the route map. The boundary coordinates are used to determine whether the railway route map exceeds the display screen and serve as a reference point for adjusting the coordinates to ensure that all routes and stations can be fully displayed on the screen. The purpose of the adjustment is to place the route map as completely as possible in the middle of the screen. After scaling the route map, the route map is not completely aligned in the center of the screen, or is close to one side or a corner of the screen. Therefore, the station coordinates of the stations in the route map are adjusted to ensure that the route map can be placed as completely as possible in the middle of the screen.

[0123] It can be seen that in this embodiment, determining the boundary coordinates can clearly define the display range of the route map on the screen, avoid cropping or truncating the route information during the display process, and ensure that all key information can be fully displayed; by adjusting the coordinates according to the boundary coordinates and the screen size, it can adapt to display devices of different types and sizes, ensuring that good display effects can be obtained on various devices.

[0124] In a specific example, in the scenario of drawing a railway map, the steps for adjusting the scale of the railway map are as follows:

[0125] First, calculate the length and height of the railway map. The length of the railway map can be obtained by subtracting the leftmost station coordinates from the rightmost station coordinates, and the height of the railway map can be obtained by subtracting the bottommost station coordinates from the topmost station coordinates.

[0126] Second, the formula for calculating the ratio of the length and height of the railway map to the screen is as follows:

[0127]

[0128] In the formula, ratiox represents the ratio of the length of the railway map to the length of the screen, ratioy represents the ratio of the height of the railway map to the width of the screen, length represents the length of the railway map, and height represents the height of the railway map. And judge the size of ratiox and ratioy, and obtain the maximum value of ratiox and ratioy, which is recorded as ratio.

[0129] Third, judgement Is the value greater than 1? If so, adjust the route map to match the screen width or height, and mark the original station coordinates as , calculate the adjusted station coordinates as follows:

[0130]

[0131] In the formula, The horizontal coordinate of the adjusted station coordinates, The vertical coordinate representing the adjusted station coordinates.

[0132] In a specific example, in the scenario of drawing a railway map, the steps for adjusting the position of the railway map are as follows:

[0133] First, obtain the coordinates of the top and leftmost poles in the railway map, recorded as .

[0134] Second, adjust the railway map position and mark the original coordinates of the station as , then the adjusted station coordinate formula is as follows:

[0135]

[0136] In the formula, Indicates the width of the screen. The horizontal coordinate of the adjusted station coordinates, The vertical coordinate representing the adjusted station coordinates.

[0137] In a specific example, Figure 7 This is a general flow chart of a method for generating a railway route map according to an embodiment of the present invention. The general process of drawing a railway route map is as follows:

[0138] First, obtain the railway line information, and the data information may refer to the railway line information and the length and width information of the screen.

[0139] Second, obtain the initial route from the railway route information.

[0140] Third, draw the initial line.

[0141] Fourth, draw the subsequent routes based on the drawn initial route map;

[0142] Fifth, adjust the scale of the railway map so that it can be fully displayed on the screen;

[0143] Sixth, adjust the position of the railway map so that it can be completely placed in the middle of the screen.

[0144] Figure 8 The present invention is a schematic diagram of a railway map generation device according to an embodiment of the present invention. The present invention is applicable to railway map generation. The device can execute a railway map generation method. The device can be implemented in the form of hardware and / or software.

[0145] See also Figure 8The railway map generation device shown in the figure comprises: a railway line information acquisition module 801, an initial line screening module 802, an initial line coordinate calculation module 803, a remaining line coordinate calculation module 804 and a line display module 805, wherein:

[0146] The railway line information acquisition module 801 is used to acquire the railway line information to be displayed on the screen, the railway line information includes at least one line to be drawn and the station information of each line to be drawn, the station information includes the station distance and azimuth angle of each station;

[0147] The initial line screening module 802 is used to screen out the initial line from the lines to be drawn;

[0148] The initial line coordinate calculation module 803 is used to determine the station coordinates of each station in the initial line in sequence according to the station information of the initial line and the size of the screen;

[0149] The remaining line coordinate calculation module 804 is used to determine the station coordinates of each station in each remaining line according to the station coordinates of the same stations as the target line for at least one remaining line except the initial line, and the target line is the line for which the station coordinates of all stations are determined;

[0150] The route display module 805 is used to display each route to be drawn on the screen according to the station coordinates of each station in the route to be drawn.

[0151] The technical solution of the embodiment of the present invention obtains the to-be-drawn route and station information in the railway route information that needs to be displayed on the screen, and selects the initial route from the to-be-drawn route, and determines the station coordinates of each station in the initial route on the screen in turn in combination with the station information in the initial route and the size of the screen, so that the initial route can be accurately drawn on the screen, and each station in the initial route can be accurately located, thereby improving the drawing accuracy of the initial route; the station coordinates of other stations in the remaining route are derived through the station coordinates of the same station in the remaining route and the target route, and the relationship between the same stations is referred to, and the other stations of the remaining route are iteratively calculated, and the remaining route is iteratively calculated based on the initial route, so that the remaining route can be accurately drawn based on the accurate initial route, thereby improving the drawing accuracy of the railway route map; it also avoids the repeated process of separately calculating the station coordinates of all stations on each route, simplifies the drawing process of multiple routes, and improves the drawing efficiency of the railway route map.

[0152] In some embodiments, in the aspect of sequentially determining the station coordinates of each station in the initial route according to the station information of the initial route and the size of the screen, the initial route coordinate calculation module 803 is specifically used to:

[0153] Determine the station coordinates of the initial station according to the azimuth angle of the initial station in the initial line and the size of the screen;

[0154] The station coordinates of other stations in the initial line are determined according to the station coordinates of the initial station, the azimuth angles of other stations in the initial line except the initial station, and the station distances.

[0155] In some embodiments, for the remaining routes except the initial route, according to the station coordinates of the same station as the target route, the station coordinates of each station in each remaining route are determined, and the remaining route coordinate calculation module 804 is specifically used to:

[0156] Among the remaining routes except the initial route, a target route having an intersection station is selected;

[0157] For each target line, the first intersection station on the target line is determined as the initial station of the target line;

[0158] Determine the station coordinates of other stations in the target line according to the station coordinates of the initial station of the target line, the azimuth angles and station distances of other stations in the target line except the initial station;

[0159] When the target station in the target line is the same as the predetermined second intersection station, and the station coordinates of the target station are different from the station coordinates of the second intersection station, the station coordinates of the station in the target line are corrected.

[0160] In some embodiments, in terms of correcting the station coordinates of the stations in the target line, the remaining line coordinate calculation module 804 is specifically used to:

[0161] Get the number of stations between the target station and the first intersection station;

[0162] The station coordinates of the stations between the target station and the first intersection station are adjusted according to the station coordinates of the target station, the station coordinates of the second intersection station, and the number of stations.

[0163] In some embodiments, before displaying each to-be-drawn route on the screen according to the station coordinates of each station in each to-be-drawn route, the route display module 805 is specifically used to:

[0164] Determine the size of the route map according to the station coordinates of each station in each route to be drawn;

[0165] According to the route map size and screen size, the station coordinates of the stations in each route to be drawn are adjusted.

[0166] In some embodiments, before displaying each to-be-drawn route on the screen according to the station coordinates of each station in each to-be-drawn route, the route display module 805 is specifically used to:

[0167] Determine the boundary coordinates according to the station coordinates of each station in each line to be drawn;

[0168] According to the boundary coordinates and screen size, the station coordinates of the stations in each line to be drawn are adjusted.

[0169] The railway map generating device provided in the embodiment of the present invention can execute the railway map generating method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the railway map generating method.

[0170] Fig. 9 A schematic structural diagram of a railway line map generating device 900 that can be used to implement an embodiment of the present invention is shown.

[0171] like Fig. 9 As shown, the railway map generating device 900 includes at least one processor 901, and a memory connected to the at least one processor 901, such as a read-only memory (ROM) 902, a random access memory (RAM) 903, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 901 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 902 or the computer program loaded from the storage unit 908 to the random access memory (RAM) 903. In RAM903, various programs and data required for the operation of the railway map generating device 900 can also be stored. The processor 901, ROM902 and RAM903 are connected to each other through a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0172] A number of components in the railway map generating device 900 are connected to the I / O interface 905, including: an input unit 906, such as a keyboard, a mouse, etc.; an output unit 907, such as various types of displays, speakers, etc.; a storage unit 908, such as a disk, an optical disk, etc.; and a communication unit 909, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 909 allows the railway map generating device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0173] The processor 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 501 executes the various methods and processes described above, such as a railway map generation method.

[0174] In some embodiments, the railway map generation method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the railway map generation device 900 via the ROM 902 and / or the communication unit 909. When the computer program is loaded into the RAM 903 and executed by the processor 901, one or more steps of the railway map generation method described above may be performed. Alternatively, in other embodiments, the processor 901 may be configured to execute the railway map generation method in any other appropriate manner (e.g., by means of firmware).

[0175] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0176] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0177] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0178] To provide interaction with a user, the systems and techniques described herein may be implemented on an operation detection device, the railroad map generation device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball), through which a user can provide input to the railroad map generation device. Other types of devices may also be used to provide interaction with a user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0179] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0180] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS (Virtual Private Server) services.

[0181] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0182] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for generating a railway route map, characterized in that: The method comprises: Acquire railway line information to be displayed on the screen, the railway line information including at least one line to be drawn and station information of each line to be drawn, the station information including the station distance and azimuth angle of each station; Selecting an initial line from the lines to be drawn; According to the station information of the initial route and the size of the screen, the station coordinates of each station in the initial route are determined in sequence in the initial route; For at least one remaining route except the initial route, determining the station coordinates of each station in each remaining route according to the station coordinates of the same stations as the target route, wherein the target route is the route for which the station coordinates of all stations are determined; Each of the routes to be drawn is displayed on the screen according to the station coordinates of each station in the routes to be drawn.

2. The method according to claim 1, characterized in that The step of sequentially determining the station coordinates of each station in the initial route according to the station information of the initial route and the size of the screen comprises: Determining the station coordinates of the initial station in the initial line according to the azimuth angle of the initial station and the size of the screen; The station coordinates of other stations in the initial line are determined according to the station coordinates of the initial station, the azimuth angles and station distances of other stations in the initial line except the initial station.

3. The method according to claim 1, characterized in that The step of selecting an initial line from the lines to be drawn includes: According to the azimuth angle of each station in each of the routes to be drawn, a short route is screened out and determined as an initial route.

4. The method according to claim 1, characterized in that For the remaining routes except the initial route, determining the station coordinates of each station in each of the remaining routes according to the station coordinates of the same station as the target route, comprises: Among the remaining routes except the initial route, a target route having an intersection station is selected; For each of the target routes, determining the first intersection station on the target route as the initial station of the target route; Determine the station coordinates of other stations in the target line according to the station coordinates of the initial station of the target line, the azimuth angles and station distances of other stations in the target line except the initial station; When the target station in the target line is the same as the predetermined second intersection station, and the station coordinates of the target station are different from the station coordinates of the second intersection station, the station coordinates of the station in the target line are corrected.

5. The method according to claim 4, characterized in that The step of correcting the station coordinates of the stations in the target line includes: Obtaining the number of stations between the target station and the first intersection station; The station coordinates of the stations between the target station and the first intersection station are adjusted according to the station coordinates of the target station, the station coordinates of the second intersection station and the number of stations.

6. The method according to claim 1, characterized in that Before displaying each of the routes to be drawn on the screen according to the station coordinates of each station in the routes to be drawn, the method further includes: Determining the size of the route map according to the station coordinates of each station in each of the routes to be drawn; The station coordinates of the stations in each of the routes to be drawn are adjusted according to the route map size and the screen size.

7. The method according to claim 1, characterized in that Before displaying each of the routes to be drawn on the screen according to the station coordinates of each station in the routes to be drawn, the method further includes: Determining boundary coordinates according to the station coordinates of each station in each of the lines to be drawn; The station coordinates of each station in the line to be drawn are adjusted according to the boundary coordinates and the screen size.

8. A railway route map generating device, characterized in that: The device comprises: A railway line information acquisition module, used to acquire railway line information to be displayed on the screen, wherein the railway line information includes at least one line to be drawn and station information of each line to be drawn, wherein the station information includes the station distance and azimuth angle of each station; An initial line screening module, used for screening out an initial line from the lines to be drawn; An initial line coordinate calculation module, used to sequentially determine the station coordinates of each station in the initial line according to the station information of the initial line and the size of the screen; A remaining line coordinate calculation module, for determining the station coordinates of each station in each remaining line according to the station coordinates of the same stations as the target line for at least one remaining line except the initial line, wherein the target line is a line for which the station coordinates of all stations are determined; The route display module is used to display each of the routes to be drawn on the screen according to the station coordinates of each station in the routes to be drawn.

9. A railway route map generating device, characterized in that: The railway route map generating device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the railway route map generating method according to any one of claims 1 to 7.

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 processor to implement the railway route map generation method according to any one of claims 1 to 7 when executed.

Citation Information

Patent Citations

  • Graphical automatic compilation method for LKJ basic data

    CN105608140A

  • Method and system for constructing railway hub digital network model

    CN110222380A