Method and device for generating urban rail transit station map based on relative coordinates

By using a method based on relative coordinates to generate the urban rail transit station map in the urban rail transit display system, the problems of low performance and difficult management in terms of complexity and rapid update requirements are solved, rapid updates and iterations are achieved, and visual effects and user experience are improved.

CN119784880APending Publication Date: 2025-04-08CRSC URBAN RAIL TRANSIT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411634392.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

Traditional urban rail transit display systems locate station elements through absolute coordinates, resulting in low performance and difficult management in the face of high complexity and rapid update demands, and high workload and time costs for design and developers.

Method used

The urban rail transit station map is generated based on relative coordinates. By determining the absolute coordinates of the combined elements in the urban rail transit scene diagram, and determining the relative coordinates of the basic elements based on this, the rapid update and iteration of the station map is achieved.

Benefits of technology

Improve the update speed and flexibility of urban rail transit station maps, reduce the amount of calculation, support dynamic updates and real-time adjustments, improve visual effects and user experience, and reduce the workload and time costs of design and developers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119784880A_ABST
    Figure CN119784880A_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for generating a station map of urban rail transit based on relative coordinates, which relates to the field of rail transit technology. The method determines the position of a composite graphic element in a global scene by using absolute coordinates, describes the relative position and relationship between basic graphic elements in the composite graphic element by using relative coordinates, and then generates a station map of urban rail transit based on the absolute coordinates of the composite graphic element and the relative coordinates of the basic graphic elements in the composite graphic element. The method for generating a station map of urban rail transit based on relative coordinates provided by the present invention enables rapid iteration of the station map of urban rail transit, and supports dynamic updating and real-time adjustment, thereby improving the response efficiency of the station map of urban rail transit to display requirements generated by different display terminals and screens with different zoom ratios, improving visual effects and user experience, and reducing the workload and time cost of designers and developers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of rail transit technology, and in particular to a method and device for generating an urban rail transit station map based on relative coordinates. Background Art

[0002] The urban rail transit station map is an important means to display the location of stations, tracks and trains in the urban rail transit transportation system.

[0003] Traditional urban rail transit display systems use absolute coordinates to locate station elements and draw urban rail transit station maps. However, this method has some limitations when facing the complexity of urban rail transit station maps and the high demand for rapid updates, including poor performance and difficult management. For example, when updates or modifications are required, multiple versions of urban rail transit station maps need to be redesigned or created, resulting in high workload and time costs for designers and developers.

[0004] Therefore, there is an urgent need for a method for generating an urban rail transit station map to improve the updating speed and flexibility of the urban rail transit station map in the urban rail transit display system. Summary of the invention

[0005] The present invention provides a method and device for generating an urban rail transit station map based on relative coordinates, so as to solve the above-mentioned problems existing in the prior art.

[0006] The present invention provides a method for generating an urban rail transit station map based on relative coordinates, comprising the following steps: Based on the spatial positions of station elements in one or more urban rail transit stations, an urban rail transit scene diagram is generated according to a preset scale; Determining the absolute coordinates of the combined graphic element in the urban rail transit scene graph; Based on the absolute coordinates of the combined graphic element in the urban rail transit scene graph, determining the relative coordinates of the basic graphic element in the combined graphic element; the basic graphic element is used to construct the combined graphic element; Based on the absolute coordinates of the combined graphic element in the urban rail transit scene graph and the relative coordinates of the basic graphic element in the combined graphic element, an urban rail transit station map is generated.

[0007] According to a method for generating an urban rail transit station diagram based on relative coordinates provided by the present invention, the step of determining the absolute coordinates of a combined graphic element in the urban rail transit scene diagram comprises: Determine the combined graphic element based on the station field elements in the urban rail transit station; the station field elements correspond to the combined graphic element one by one; Based on the position of the station element in the urban rail transit station, the absolute coordinates of the combined graphic element in the urban rail transit scene graph are determined.

[0008] According to a method for generating an urban rail transit station diagram based on relative coordinates provided by the present invention, the relative coordinates of the basic graphic elements in the combined graphic elements are determined based on the absolute coordinates of the combined graphic elements in the urban rail transit scene diagram, including: Based on the absolute coordinates of the combined graphic element in the urban rail transit scene graph, determining the absolute coordinates of the basic graphic element in the combined graphic element in the urban rail transit scene graph; Based on the absolute coordinates of the basic graphic elements in the urban rail transit scene graph, relative position data between the basic graphic elements are obtained; Based on the relative position data between the basic graphic elements, the relative coordinates of the basic graphic elements in the combined graphic element are obtained.

[0009] According to a method for generating an urban rail transit station map based on relative coordinates provided by the present invention, the method further includes: When the position of the combined graphic element in the urban rail transit station map needs to be updated, any basic graphic element in the combined graphic element is moved to a target position; Based on the target position, determining the updated coordinates corresponding to any one of the basic graphic elements after the movement; Based on the relative coordinates of the basic graphic elements in the combined graphic element, and taking the updated coordinates corresponding to any one of the basic graphic elements after the movement as a reference, determining the updated coordinates corresponding to other basic graphic elements in the combined graphic element; Each basic graphic element in the combined graphic element is moved to the updated coordinates corresponding to each basic graphic element to generate an updated urban rail transit station map.

[0010] According to a relative coordinate-based urban rail transit station map generation method provided by the present invention, the basic graphic elements include one or more of text, lines, rectangles, ellipses and pictures.

[0011] According to a relative coordinate-based urban rail transit station diagram generation method provided by the present invention, the station elements include one or more of a signal, a track, a vehicle depot, a parking lot, and a station.

[0012] The present invention also provides a device for generating a station map of urban rail transit based on relative coordinates, comprising the following modules: A scene module, used to generate an urban rail transit scene diagram according to a preset ratio based on the spatial positions of station elements in one or more urban rail transit stations; A first determination module, used to determine the absolute coordinates of the combined graphic element in the urban rail transit scene graph; A second determination module is used to determine the relative coordinates of the basic graphic elements in the combined graphic element based on the absolute coordinates of the combined graphic element in the urban rail transit scene graph; the basic graphic element is used to construct the combined graphic element; A generation module is used to generate an urban rail transit station map based on the absolute coordinates of the combined graphic element in the urban rail transit scene map and the relative coordinates of the basic graphic element in the combined graphic element.

[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements any of the above-described methods for generating a station map of urban rail transit based on relative coordinates.

[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for generating an urban rail transit station map based on relative coordinates as described in any one of the above is implemented.

[0015] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned methods for generating an urban rail transit station map based on relative coordinates.

[0016] The present invention provides a method for generating an urban rail transit station field map based on relative coordinates. The method determines the position of a combined graphic element in a global scene by using absolute coordinates, describes the relative position and relationship between basic graphic elements in the combined graphic element by using relative coordinates, and then generates an urban rail transit station field map based on the absolute coordinates of the combined graphic element and the relative coordinates of the basic graphic elements in the combined graphic element. In this way, when the urban rail transit station field map needs to be updated, only the relative coordinates need to be modified and recorded to quickly adjust and iterate the attributes and positions of the station field elements without recalculating the absolute coordinates of all basic graphic elements, thereby reducing the amount of calculation, thereby realizing rapid iteration, enabling the urban rail transit station field map to support dynamic update and real-time adjustment, improving the response efficiency of the urban rail transit station field map to display requirements generated by different display terminals and screens with different zoom ratios, improving visual effects and user experience, and reducing the workload and time cost of designers and developers. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1 It is a flow chart of a method for generating a station map of urban rail transit based on relative coordinates provided by the present invention.

[0019] Figure 2 It is a schematic diagram of an iterative process of updating an urban rail transit station diagram in a method for generating an urban rail transit station diagram based on relative coordinates provided by the present invention.

[0020] Figure 3 The present invention provides an urban rail transit station diagram that includes both short-column signal machines and high-column signal machines.

[0021] Figure 4 It is a schematic diagram of a combination of a short-column signal and a high-column signal provided by the present invention.

[0022] Figure 5 It is a structural schematic diagram of a device for generating a station map of urban rail transit based on relative coordinates provided by the present invention.

[0023] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0024] In traditional methods, the drawing and display system of urban rail transit station diagrams usually uses absolute coordinates to locate station elements. The form of recording coordinate positions in the configuration file with basic graphic elements as the smallest unit also relies on the global coordinate system, and cannot reflect the subordinate relationship between basic graphic elements and combined graphic elements, which is not convenient for the movement of basic graphic elements. Therefore, in large-scale or complex urban rail transit station diagrams, it is often difficult and inefficient to modify the location and attributes of station elements.

[0025] In the present invention, the absolute coordinates are first used to determine the position of the combined primitives in the global scene, and then the relative coordinates are used to describe the relative positions and relationships between the basic primitives. By combining the two coordinates, the display of the urban rail transit station map in a complex scene is easier to manage and maintain.

[0026] In addition, an urban rail transit station map may need to be presented on displays or devices with different resolutions. The use of relative coordinates can make it easier to adjust the layout and size of station elements. There is no need to redesign or create multiple versions of the station map to adapt to different displays and devices, thereby maintaining consistent visual effects and a good experience for users.

[0027] The present invention provides a method for generating an urban rail transit station diagram based on relative coordinates. According to the display requirements proposed by users in different usage scenarios, the attributes and positions of station elements can be quickly adjusted and iterated by modifying and recording relative coordinates without recalculating the absolute coordinates of all basic graphic elements, thereby achieving rapid iteration, supporting dynamic updates and real-time adjustments, and reducing the workload and time cost of designers and developers.

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

[0029] Combine the following Figures 1 to 6 The present invention describes a method and device for generating a station map of urban rail transit based on relative coordinates.

[0030] Figure 1 is a flow chart of a method for generating a station map of urban rail transit based on relative coordinates provided by the present invention, such as Figure 1 As shown, the method comprises the following steps: Step 101: Generate an urban rail transit scene diagram according to a preset ratio based on the spatial positions of station elements in one or more urban rail transit stations.

[0031] In the embodiment of the present invention, the station yard elements include signal system equipment elements such as signal machines, switch machines and transponders in urban rail transit stations, and also include various elements such as tracks, vehicle depots, parking lots and stations.

[0032] When it is necessary to display a scene in an urban rail transit station, an urban rail transit scene diagram can be generated according to the spatial position of the station yard elements in the urban rail transit station and the display range and scaling requirements of different control and display terminals for the urban rail transit station yard diagram, so as to preliminarily describe the global scene of the station yard elements in the urban rail transit station in space. The preset scale is the scaling scale of different control and display terminals.

[0033] When it is necessary to display scenes in multiple urban rail transit stations at the same time, an urban rail transit scene diagram can be generated according to the spatial positions of the station yard elements in the multiple urban rail transit stations and the display range and scaling requirements of different control and display terminals for the urban rail transit station yard diagram, so as to preliminarily describe the global scene of the station yard elements in multiple urban rail transit stations in space.

[0034] Step 102: Determine the absolute coordinates of the combined graphic element in the urban rail transit scene graph.

[0035] Determine the absolute coordinates of the combined graphic element in the urban rail transit scene graph, wherein the absolute coordinate refers to a fixed coordinate position, and the point coordinates input using it will not be different due to different reference objects. In an embodiment of the present invention, all combined graphic elements are based on a fixed origin of a coordinate system in the urban rail transit scene graph to determine their absolute coordinates.

[0036] Optionally, the determining the absolute coordinates of the combined graphic element in the urban rail transit scene graph includes: Determine the combined graphic element based on the station field elements in the urban rail transit station; the station field elements correspond to the combined graphic element one by one; Based on the position of the station element in the urban rail transit station, the absolute coordinates of the combined graphic element in the urban rail transit scene graph are determined.

[0037] Specifically, based on the station yard elements in the urban rail transit station, the combined graphic element is determined. In the urban rail transit scene graph, each combined graphic element represents a station yard element, that is, the station yard elements correspond to the combined graphic elements one by one.

[0038] According to the actual position of the station elements in the urban rail transit station and the preset ratio, the absolute coordinates of the combined graphic elements in the urban rail transit scene graph are determined.

[0039] Optionally, the station yard elements include one or more of signals, tracks, vehicle depots, parking lots and stations.

[0040] Specifically, the station elements include signal system equipment elements such as signals, switches and transponders in urban rail transit stations, as well as various elements such as tracks, vehicle depots, parking lots and stations. In some embodiments, the station elements may also include elements such as different weather, environments and temperatures, for example, rain, snow, fire and high temperature.

[0041] Optionally, the basic graphic elements include one or more of text, line, rectangle, ellipse and picture.

[0042] Specifically, the basic primitive refers to the smallest drawing unit that constitutes the combined primitive, including text, line, rectangle, ellipse, picture and other primitive data files.

[0043] In the embodiment of the present invention, the basic graphic elements are first used to draw the combined graphic elements, and then the combined graphic elements are used to describe various station elements in the urban rail transit station.

[0044] For example, when drawing a composite graphic element representing the site element of fire, a picture representing fire is used in combination with the word "fire" to form a composite graphic element representing the site element of fire, among which the picture representing fire and the word "fire" are both basic graphic elements.

[0045] In some embodiments, the combined graphic element may also be a more complex graphic. For example, by using a graphic element color code configuration file, multiple colors may be added to the original image or text to form a more complex graphic as a combined graphic element. This embodiment of the present invention does not impose any restrictions on this.

[0046] Step 103: Based on the absolute coordinates of the combined graphic element in the urban rail transit scene graph, determine the relative coordinates of the basic graphic element in the combined graphic element; the basic graphic element is used to construct the combined graphic element.

[0047] According to the absolute coordinates of the combined primitives in the urban rail transit scene graph, the absolute coordinates of the basic primitives in the combined primitives in the urban rail transit scene graph are determined, and then the relative coordinates of the basic primitives in the combined primitives are determined. The basic primitives refer to the smallest drawing units constituting the combined primitives, such as text, lines, rectangles, ellipses, and pictures.

[0048] Optionally, the determining the relative coordinates of the basic graphic elements in the combined graphic elements based on the absolute coordinates of the combined graphic elements in the urban rail transit scene graph includes: Based on the absolute coordinates of the combined graphic element in the urban rail transit scene graph, determining the absolute coordinates of the basic graphic element in the combined graphic element in the urban rail transit scene graph; Based on the absolute coordinates of the basic graphic elements in the urban rail transit scene graph, relative position data between the basic graphic elements are obtained; Based on the relative position data between the basic graphic elements, the relative coordinates of the basic graphic elements in the combined graphic element are obtained.

[0049] Specifically, based on the absolute coordinates of the combined graphic element in the urban rail transit scene graph, the absolute coordinates of the basic graphic element in the combined graphic element in the urban rail transit scene graph are determined; Based on the absolute coordinates of the basic graphics elements in the urban rail transit scene graph, the relative position data between the basic graphics elements are obtained; Based on the relative position data between the basic primitives, the relative coordinates of the basic primitives in the combined primitives are obtained.

[0050] For example, after determining the absolute coordinates of the signals, tracks and platforms in the urban rail transit scene diagram based on their spatial positions in the urban rail transit station, it is necessary to first prepare in the drawing tool the required graphic metadata files for the combined graphic elements corresponding to the station elements such as the signals, tracks and platforms, including graphic metadata configuration files, basic graphic elements within the combined graphic elements, corresponding relationship data of the upper left corner relative coordinates of the rectangular range of the combined graphic elements, and resource files such as SVG images.

[0051] Then, according to the absolute coordinates of the combined graphics corresponding to the signal, track and platform in the urban rail transit scene diagram, the corresponding combined graphics are stacked in the urban rail transit scene diagram to form a station diagram scene file, and then the absolute coordinates of the basic graphics in the combined graphics are determined according to the station diagram scene file, and then the relative position relationship between the basic graphics in the stacked combined graphics is obtained, and the relative position relationship is described using relative position data, for example, the basic graphics A is located at a positive distance L from the basic graphics B along the x-axis.

[0052] Finally, the relative coordinates of the basic primitives in the combined primitives are determined according to the relative position data between the basic primitives.

[0053] The embodiment of the present invention uses absolute coordinates to determine the position of a combined graphic element in a global scene, and uses relative coordinates to describe the relative position and relationship between basic graphic elements in the combined graphic element. This allows the subsequent modification or adjustment of the urban rail transit station map to allow fine adjustments to the graphic element stacking position based on basic graphic elements. The required basic graphic elements can be accurately moved based on the relative coordinates, without the need to recalculate the absolute coordinates of all basic graphic elements, thereby improving the accuracy of the urban rail transit station map and the convenience of updating and iterating.

[0054] Step 104: Generate an urban rail transit station map based on the absolute coordinates of the combined graphic element in the urban rail transit scene map and the relative coordinates of the basic graphic element in the combined graphic element.

[0055] After determining the absolute coordinates of the combined graphics in the urban rail transit scene graph and the relative coordinates of the basic graphics in the combined graphics, all the combined graphics and basic graphics can be accurately stacked in the urban rail transit scene graph, and then the urban rail transit station map can be generated to display the exact locations of station elements such as stations, tracks and trains in the rail transit transportation system.

[0056] The present invention provides a method for generating an urban rail transit station map based on relative coordinates. The method determines the position of a combined graphic element in a global scene by using absolute coordinates, describes the relative position and relationship between basic graphic elements in the combined graphic element by using relative coordinates, and then generates an urban rail transit station map based on the absolute coordinates of the combined graphic element and the relative coordinates of the basic graphic elements in the combined graphic element. In this way, when the urban rail transit station map needs to be updated, only the relative coordinates need to be modified and recorded to quickly adjust and iterate the attributes and positions of the station elements without recalculating the absolute coordinates of all basic graphic elements, thereby achieving rapid iteration, supporting dynamic update and real-time adjustment, improving the response efficiency of the urban rail transit station map to display requirements generated by different display terminals and screens with different zoom ratios, improving visual effects and user experience, and reducing the workload and time cost of designers and developers.

[0057] Optionally, the method further comprises: When the position of the combined graphic element in the urban rail transit station map needs to be updated, any basic graphic element in the combined graphic element is moved to a target position; Based on the target position, determining the updated coordinates corresponding to any one of the basic graphic elements after the movement; Based on the relative coordinates of the basic graphic elements in the combined graphic element, and taking the updated coordinates corresponding to any one of the basic graphic elements after the movement as a reference, determining the updated coordinates corresponding to other basic graphic elements in the combined graphic element; Each basic graphic element in the combined graphic element is moved to the updated coordinates corresponding to each basic graphic element to generate an updated urban rail transit station map.

[0058] Specifically, when the position of the combined graphic element in the urban rail transit station map needs to be updated, any basic graphic element in the combined graphic element is moved to the target position; Based on the target position, determine the updated coordinates corresponding to any basic primitive after the move; Based on the relative coordinates of the basic graphic elements in the combined graphic element, and taking the updated coordinates corresponding to any one of the basic graphic elements after the movement as a reference, determining the updated coordinates corresponding to other basic graphic elements in the combined graphic element; Each basic graphic element in the combined graphic element is moved to the updated coordinates corresponding to each basic graphic element to generate an updated urban rail transit station map.

[0059] Figure 2 : is a schematic diagram of an iterative process of updating an urban rail transit station diagram in a method for generating an urban rail transit station diagram based on relative coordinates provided by the present invention, such as Figure 2 shown.

[0060] First, prepare the graphic element data files representing station elements such as signals, tracks, and platforms in the scene file drawing tool, including the graphic element color code configuration XML file, basic graphic element UI resources, and station element coordinate information XML file.

[0061] The graphic element color code configuration XML file records the correspondence between color codes and display styles, and is used for color code configuration of combined graphics elements; the basic graphic element UI resources save image file resources in jpg, png, svg and other formats used by the basic graphics elements, such as a variety of image files used in scenes such as station fire situations or rainy and snowy weather; the station element coordinate information XML file records the absolute coordinate information of the combined graphics elements in the scene file and the relative coordinate information of the basic graphics elements within the combined graphics elements.

[0062] Based on the above three types of graphic metadata files, the urban rail transit station map can be modified or updated according to different display requirements.

[0063] Then, according to the actual position relationship of the station equipment, the combined graphics elements are stacked to form the initial station map scene file.

[0064] However, different control and display terminals may have different station yard map display ranges and scaling requirements for the same urban rail line. For example, a large-screen display terminal is required to display all station yard equipment information including all stations, depots, parking lots and other station yard elements on the main line. The display scene contains a large number of combined graphics elements with a compact layout, so it is easy for the combined graphics elements to block each other. In this case, it is often necessary to adjust the position of the combined graphics elements in the urban rail transit station yard map and update the urban rail transit station yard map.

[0065] Finally, modify and update the urban rail transit station map according to the actual display requirements. Use the scene file drawing tool to drag any basic element in the existing combined element to the target position, and then determine the absolute coordinates of other basic elements based on the absolute coordinates corresponding to the target position and the relative coordinates, and then move all related basic elements to complete the update of the urban rail transit station map.

[0066] For example, when the display position of a signal needs to be adjusted due to an occlusion problem, the text graphic element describing the name of the signal can be dragged to the target position in the drawing tool first; the modified coordinates are then saved to a new scene file, and the relative coordinate changes of the corresponding text graphic element are recorded in the graphic element data file; finally, the new scene file is opened on the control and display terminal, and the relative coordinate information of the changed text graphic element is read from the graphic element data file to determine the updated coordinates of the text graphic element, and then an updated urban rail transit station diagram is generated on the control and display terminal, so that an urban rail transit station diagram without occlusion problems and with a suitable size ratio can be obtained, so that the drawing tool and the urban rail transit station diagram displayed on the control and display terminal are consistent. Figure 1 To.

[0067] In the embodiment of the present invention, if it is necessary to add, delete or modify station equipment, the drawing tool can be used to finely adjust the position of the primitive stacking in units of basic primitives, that is, drag the position of the basic primitive and record the relative coordinate information after the change to the urban rail transit station diagram scene file, so as to achieve rapid update iteration on the drawing tool and achieve the goal of rapid response to display needs. The following takes the modification of any short-column signal in the urban rail transit station diagram as an example to further explain the update process of the urban rail transit station diagram.

[0068] Figure 3 The present invention provides an urban rail transit station diagram including both short-column signal machines and high-column signal machines, such as Figure 3 In urban rail transit stations, there are two types of double-light signal machines: high-post and low-post. Figure 3 Z1, Z2, XQ3, SQ4 and SQ2 in the high pole signal machine such as Figure 3 As shown in CC1 and CC2.

[0069] Figure 4 It is a schematic diagram of a combination of a short column signal and a high column signal provided by the present invention. Figure 4 As shown. Figure 4 In the figure, the left side is a low-post signal and the right side is a high-post signal.

[0070] When you need to change any of the short-post signal lights to high-post signal lights, first add a short horizontal line to the left short-post signal light combination element, and then change the relative coordinates of other basic elements on the x-axis. That is, add the length of the short horizontal line to the original coordinates on the x-axis of the basic elements representing the high and low light positions of the signal lights and the fork of the signal lights being closed. That is, the initial coordinates of the basic elements are (x 0 ,y 0 ), and after adding the length of the short horizontal line s, the coordinates of the basic primitive become (x 0 +s,y 0), according to the coordinates (x 0 +s,y 0 ) to generate a new urban rail transit station map.

[0071] In addition, compared with the original combined primitives, the modified combined primitives have a larger overall range due to the addition of a short horizontal line as a basic primitive. Figure 4 The left side of the middle short column signal machine combination element and Figure 4 The rectangular range difference of the right high-post signal combination element, including the length difference and the height difference, is recorded in the element data file, and the right high-post signal is saved as a new combination element. The new combination element contains the relative coordinate information of all basic elements.

[0072] If it is necessary to modify multiple low-pole signals in the original station diagram scene file into high-pole signals in order to achieve the difference in display between the two types of signals, it is only necessary to replace the original combined graphics according to the saved new combined graphics, and record the rectangular range difference generated by the new combined graphics in the graphics data file. At the same time, keep the signal and the track edge aligned, and the urban rail transit station diagram can be updated.

[0073] In the embodiment of the present invention, the mapping relationship between the basic graphic element ID and the relative coordinates is recorded, which not only records the absolute coordinates of the upper left corner of the combined graphic element in the station map, but also records the relative coordinates of the basic graphic element in the combined graphic element relative to the origin of the upper left corner of the combined graphic element. After the position of a basic graphic element is changed by dragging the mouse, the modified relative coordinates can be written back to the configuration file, thereby achieving real-time saving of the modified content and dynamic updating of the subsequent urban rail transit station map without modifying the absolute coordinates of the original combined graphic element.

[0074] The embodiment of the present invention uses relative coordinates to describe the relationship between basic graphic elements, reducing the error propagation caused by floating-point precision problems or complex calculations. When station elements change, the positions of combined graphic elements can be more flexibly adjusted and updated based on relative coordinate information. In addition, the drawing tools are configured in the form of a combination of multiple data files to record the drawing personnel's addition, deletion and dragging operations on basic graphic elements, so that the generated urban rail transit station map has strong readability and is convenient for subsequent maintenance and updating.

[0075] The following describes an urban rail transit station map generating device based on relative coordinates provided by the present invention. The urban rail transit station map generating device based on relative coordinates described below and the urban rail transit station map generating method based on relative coordinates described above can be referenced to each other.

[0076] Based on any of the above embodiments, Figure 5This is a schematic diagram of the structure of a device for generating a station map of urban rail transit based on relative coordinates provided in this paper. Figure 5 The embodiment of the present invention provides a device for generating a station map of urban rail transit based on relative coordinates, comprising a scene module 501, a first determination module 502, a second determination module 503 and a generation module 504, wherein: The scene module 501 is used to generate an urban rail transit scene diagram according to a preset ratio based on the spatial positions of station elements in one or more urban rail transit stations; the first determination module 502 is used to determine the absolute coordinates of the combined graphic element in the urban rail transit scene diagram; the second determination module 503 is used to determine the relative coordinates of the basic graphic element in the combined graphic element based on the absolute coordinates of the combined graphic element in the urban rail transit scene diagram; the basic graphic element is used to construct the combined graphic element; the generation module 504 is used to generate an urban rail transit station diagram based on the absolute coordinates of the combined graphic element in the urban rail transit scene diagram and the relative coordinates of the basic graphic element in the combined graphic element.

[0077] The present invention provides a device for generating an urban rail transit station diagram based on relative coordinates. The device determines the position of a combined graphic element in a global scene by using absolute coordinates, describes the relative position and relationship between basic graphic elements in the combined graphic element by using relative coordinates, and then generates an urban rail transit station diagram based on the absolute coordinates of the combined graphic element and the relative coordinates of the basic graphic elements in the combined graphic element. In this way, when the urban rail transit station diagram needs to be updated, only the relative coordinates need to be modified and recorded to quickly adjust and iterate the attributes and positions of the station elements without recalculating the absolute coordinates of all basic graphic elements, thereby reducing the amount of calculation, thereby achieving rapid iteration, and enabling the urban rail transit station diagram to support dynamic update and real-time adjustment, thereby improving the response efficiency of the urban rail transit station diagram to display requirements generated by different display terminals and screens with different zoom ratios, improving visual effects and user experience, and reducing the workload and time cost of designers and developers.

[0078] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6 As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the method for generating a station map of urban rail transit based on relative coordinates, and the method includes: Based on the spatial positions of station elements in one or more urban rail transit stations, an urban rail transit scene diagram is generated according to a preset scale; Determining the absolute coordinates of the combined graphic element in the urban rail transit scene graph; Based on the absolute coordinates of the combined graphic element in the urban rail transit scene graph, determining the relative coordinates of the basic graphic element in the combined graphic element; the basic graphic element is used to construct the combined graphic element; Based on the absolute coordinates of the combined graphic element in the urban rail transit scene graph and the relative coordinates of the basic graphic element in the combined graphic element, an urban rail transit station map is generated.

[0079] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0080] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can execute the method for generating an urban rail transit station map based on relative coordinates provided by the above methods, the method comprising: Based on the spatial positions of station elements in one or more urban rail transit stations, an urban rail transit scene diagram is generated according to a preset scale; Determining the absolute coordinates of the combined graphic element in the urban rail transit scene graph; Based on the absolute coordinates of the combined graphic element in the urban rail transit scene graph, determining the relative coordinates of the basic graphic element in the combined graphic element; the basic graphic element is used to construct the combined graphic element; Based on the absolute coordinates of the combined graphic element in the urban rail transit scene graph and the relative coordinates of the basic graphic element in the combined graphic element, an urban rail transit station map is generated.

[0081] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the method for generating a station map of urban rail transit based on relative coordinates provided by the above methods, the method comprising: Based on the spatial positions of station elements in one or more urban rail transit stations, an urban rail transit scene diagram is generated according to a preset scale; Determining the absolute coordinates of the combined graphic element in the urban rail transit scene graph; Based on the absolute coordinates of the combined graphic element in the urban rail transit scene graph, determining the relative coordinates of the basic graphic element in the combined graphic element; the basic graphic element is used to construct the combined graphic element; Based on the absolute coordinates of the combined graphic element in the urban rail transit scene graph and the relative coordinates of the basic graphic element in the combined graphic element, an urban rail transit station map is generated.

[0082] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0083] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0084] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating a station map of urban rail transit based on relative coordinates, characterized in that: include: Based on the spatial positions of station elements in one or more urban rail transit stations, an urban rail transit scene diagram is generated according to a preset scale; Determining the absolute coordinates of the combined graphic element in the urban rail transit scene graph; Based on the absolute coordinates of the combined graphic element in the urban rail transit scene graph, determining the relative coordinates of the basic graphic element in the combined graphic element; the basic graphic element is used to construct the combined graphic element; Based on the absolute coordinates of the combined graphic element in the urban rail transit scene graph and the relative coordinates of the basic graphic element in the combined graphic element, an urban rail transit station map is generated.

2. The method for generating a station map of urban rail transit based on relative coordinates according to claim 1, characterized in that: The determining the absolute coordinates of the combined graphic element in the urban rail transit scene graph includes: Determine the combined graphic element based on the station field elements in the urban rail transit station; the station field elements correspond to the combined graphic element one by one; Based on the position of the station element in the urban rail transit station, the absolute coordinates of the combined graphic element in the urban rail transit scene graph are determined.

3. The method for generating a station map of urban rail transit based on relative coordinates according to claim 1, characterized in that: The determining the relative coordinates of the basic graphic elements in the combined graphic elements based on the absolute coordinates of the combined graphic elements in the urban rail transit scene graph includes: Based on the absolute coordinates of the combined graphic element in the urban rail transit scene graph, determining the absolute coordinates of the basic graphic element in the combined graphic element in the urban rail transit scene graph; Based on the absolute coordinates of the basic graphic elements in the urban rail transit scene graph, relative position data between the basic graphic elements are obtained; Based on the relative position data between the basic graphic elements, the relative coordinates of the basic graphic elements in the combined graphic element are obtained.

4. The method for generating a station map of urban rail transit based on relative coordinates according to claim 1, characterized in that: The method further comprises: When the position of the combined graphic element in the urban rail transit station map needs to be updated, any basic graphic element in the combined graphic element is moved to a target position; Based on the target position, determining the updated coordinates corresponding to any one of the basic graphic elements after the movement; Based on the relative coordinates of the basic graphic elements in the combined graphic element, and taking the updated coordinates corresponding to any one of the basic graphic elements after the movement as a reference, determining the updated coordinates corresponding to other basic graphic elements in the combined graphic element; Each basic graphic element in the combined graphic element is moved to the updated coordinates corresponding to each basic graphic element to generate an updated urban rail transit station map.

5. The method for generating a station map of urban rail transit based on relative coordinates according to claim 1, characterized in that: The basic graphic elements include one or more of text, line, rectangle, ellipse and picture.

6. The method for generating a station map of urban rail transit based on relative coordinates according to claim 1, characterized in that: The station yard elements include one or more of signals, tracks, vehicle depots, parking lots and stations.

7. A device for generating a station map of urban rail transit based on relative coordinates, characterized in that: include: A scene module, used to generate an urban rail transit scene diagram according to a preset ratio based on the spatial positions of station elements in one or more urban rail transit stations; A first determination module, used to determine the absolute coordinates of the combined graphic element in the urban rail transit scene graph; A second determination module is used to determine the relative coordinates of the basic graphic elements in the combined graphic elements based on the absolute coordinates of the combined graphic elements in the urban rail transit scene graph; The basic graphic element is used to construct the combined graphic element; A generation module is used to generate an urban rail transit station map based on the absolute coordinates of the combined graphic element in the urban rail transit scene map and the relative coordinates of the basic graphic element in the combined graphic element.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for generating an urban rail transit station map based on relative coordinates as described in any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for generating an urban rail transit station map based on relative coordinates as described in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for generating an urban rail transit station map based on relative coordinates as described in any one of claims 1 to 6 is implemented.