Beacon arrangement method and device based on rail transit CAD, program product and medium

By automatically extracting predefined layer information and beacon layout rules from the signal plan layout in rail transit CAD and calculating the spatial coordinates of the beacons, the problem of low efficiency in beacon layout design is solved, and automated and efficient beacon layout design is achieved.

CN121637595APending Publication Date: 2026-03-10卡斯柯信号(西安)有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-08
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

The current design of beacon layout for rail transit is inefficient, requiring the beacon layout requirements of each station to be addressed individually, which leads to extended design cycles for large-scale projects.

Method used

By acquiring predefined layers from the CAD signal layout plan of rail transit, extracting key element attribute information, and combining beacon layout rules, the spatial coordinates of beacons are automatically calculated, beacon elements are generated, and unique identifiers are assigned, thus achieving automated beacon layout processing.

Benefits of technology

It improves the efficiency of beacon placement, ensures that beacon placement meets the requirements of train operation control, adapts to the operational needs of different stations, avoids manual calculation and verification and graphic drawing, and enhances the rationality and practicality of the design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121637595A_ABST
    Figure CN121637595A_ABST
Patent Text Reader

Abstract

The invention discloses a beacon arrangement method and device based on rail transit CAD, a program product and a medium, and relates to the technical field of rail transit signal system design. The method comprises the following steps: acquiring a plurality of predefined layers in a rail transit CAD signal plane layout diagram file; according to a preset layer mapping rule, extracting attribute information of corresponding preset key elements from each predefined layer; calculating space coordinate positions of a plurality of beacons in the rail transit CAD signal plane arrangement diagram according to the predefined layers and the attribute information of the corresponding preset key elements in combination with a preset beacon arrangement rule; and generating a corresponding beacon primitive at the spatial coordinate position, and allocating a unique identifier to the beacon primitive. By implementing the technical scheme provided by the invention, the rail transit beacon arrangement efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of rail transit signal system design, and particularly relates to a beacon arrangement method based on rail transit CAD, equipment, program product and medium. BACKGROUND

[0002] With the rapid development of urban rail transit systems, as an important part of the automatic train operation system, beacons bear the key function of providing accurate positioning and speed control information for trains. In the design phase of rail transit projects, a large number of beacon devices need to be arranged at appropriate positions along the track to ensure that trains can safely and accurately complete tasks such as station entry parking and station exit acceleration.

[0003] Currently, rail transit beacon arrangement design is mainly based on CAD aided design software. In large rail transit projects, a line usually contains dozens of stations, and each station needs to arrange dozens of beacons with different functions. The total number of beacons in the entire project can reach several thousand. In the design process, the design element information such as platform position, parking point position and track orientation needs to be obtained from the CAD signal plan layout diagram, and then the specific installation position of each beacon is determined according to the train technical parameters, beacon function requirements and safety specifications. The existing CAD aided design technology can provide basic graphic drawing and editing functions, and support designers to add beacon graphic symbols in the drawing and adjust the position. These technologies provide certain technical support for beacon arrangement design through functions such as layer management, object capture and distance measurement.

[0004] However, the existing technology needs to handle the beacon arrangement requirements of each station one by one when facing large-scale rail transit projects, and repeated information extraction, calculation verification and graphic generation operations are needed for each beacon position. This way of processing one by one often prolongs the overall design cycle to several weeks or even months when facing large projects containing thousands of beacons, resulting in low efficiency of rail transit beacon arrangement. SUMMARY

[0005] The present application provides a beacon arrangement method based on rail transit CAD, equipment, program product and medium, which can improve the efficiency of rail transit beacon arrangement.

[0006] In the first aspect of the present application, a beacon arrangement method based on rail transit CAD is provided, which specifically comprises: Obtaining a plurality of predefined layers in a rail transit CAD signal plan layout diagram file; According to a preset layer mapping rule, the attribute information of the corresponding preset key elements is extracted from each of the predefined layers; According to the attribute information of each of the predefined layers and the corresponding preset key elements, and in combination with the preset beacon arrangement rule, the spatial coordinate positions of the plurality of beacons in the rail transit CAD signal plane arrangement drawing are calculated; A corresponding beacon primitive is generated at the spatial coordinate position, and a unique identifier is assigned to the beacon primitive.

[0007] By adopting the technical solution, the attribute information of preset key elements such as platform positions, stopping point positions, and track directions is automatically extracted from the predefined layers through the preset layer mapping rule, thereby avoiding the repetitive work of manually obtaining the information one by one by the designer; in combination with the preset beacon arrangement rule, the system can automatically calculate the spatial coordinate positions of each beacon and generate a corresponding beacon primitive, and simultaneously assign a unique identifier to each beacon primitive, thereby realizing the automatic processing of beacon arrangement, and making the designer unnecessary to manually calculate and verify and draw graphics for each beacon position; the scheme changes the originally manual processing of beacon arrangement into an automatic batch processing mode, thereby improving the arrangement efficiency of beacons of a rail transit project.

[0008] Optionally, the predefined layers include line primitives of train running paths, stopping point primitives of train stopping positions, and platform primitives of passenger boarding and alighting areas, the attribute information includes direction information of the line primitives, position kilometer markers of the stopping point primitives, and platform identifiers and platform center kilometer markers of the platform primitives, and the calculation of the spatial coordinate positions of the plurality of beacons in the rail transit CAD signal plane arrangement drawing according to each of the predefined layers, the attribute information of the corresponding preset key elements of each of the predefined layers, and the preset beacon arrangement rule includes: The number of the stopping point primitives associated with the platform primitives in the predefined layers is counted in a preset search range, and a stopping point count value is obtained; A platform operation mode is determined according to the stopping point count value, and a beacon arrangement strategy is selected according to the platform operation mode; A beacon arrangement rule set corresponding to the beacon arrangement strategy is called from the preset beacon arrangement rule; The spatial coordinate positions of the plurality of beacons in the rail transit CAD signal plane arrangement drawing are calculated according to the beacon arrangement rule set, the position kilometer markers of the stopping point primitives, and physical parameters of a train.

[0009] By adopting the technical scheme, the line element of the train operation path, the stop point element of the train parking position and the platform element of the passenger boarding and alighting area are clearly distinguished in the predefined layer, and the direction information and position kilometer mark and other key attribute information of each element are extracted, thereby providing complete basic data support for the beacon arrangement; by counting the number of stop points associated with the platform element, the system can automatically identify whether the platform is a turnaround station, an intermediate station or other different operation modes, and then select a beacon arrangement strategy and rule set matched therewith, so that the beacon arrangement scheme can be flexibly adjusted according to the actual operation demand of the platform; in combination with the stop point position kilometer mark and the train physical parameters, the system can accurately calculate the spatial coordinate position of each beacon, so as to ensure that the beacon arrangement not only meets the technical requirements of train operation control, but also adapts to the actual operation demand of different platform scenes, thereby further improving the rationality and practicability of the beacon arrangement scheme.

[0010] Optionally, the determining the platform operation mode according to the stop point count value and selecting the beacon arrangement strategy according to the platform operation mode comprises: when the stop point count value is equal to a first preset threshold, determining a one-way operation mode, and when the stop point count value is equal to a second preset threshold, determining a two-way operation mode, the second preset threshold being greater than the first preset threshold; for the one-way operation mode, a single group of beacon sequences is arranged behind the stop point element in the platform based on the position kilometer mark of the stop point element and the direction information of the line element; for the two-way operation mode, an uplink stop point element and a downlink stop point element in the platform are obtained respectively, a first group of beacon sequences is arranged behind the uplink stop point element based on the position kilometer mark of the uplink stop point element and the direction information of the corresponding line element, and a second group of beacon sequences is arranged behind the downlink stop point element based on the position kilometer mark of the downlink stop point element and the direction information of the corresponding line element.

[0011] By adopting the technical scheme, the clear platform operation mode judgment standard is established based on the stop point count value, the one-way operation mode and the two-way operation mode can be accurately distinguished through the comparison of the preset thresholds, and the ambiguity of the operation mode judgment is eliminated; for the one-way operation mode, a single group of beacon sequences is arranged behind the stop point based on the stop point position and the line direction, and for the two-way operation mode, corresponding beacon sequences are arranged for the uplink and downlink stop points respectively, so that the beacon arrangement scheme can strictly follow the train operation direction, and the directionality and standardization of the beacon arrangement are ensured; the differential arrangement strategy based on the operation mode not only improves the accuracy of the beacon arrangement, but also automatically adapts to the train operation demand in different directions, and further enhances the adaptability of the beacon arrangement scheme to different platform operation scenes.

[0012] Optionally, the method further comprises: calculating a target kilometer marker of each beacon based on the kilometer marker of the stop point, the beacon arrangement rule set, and the physical parameters of the train; comparing the target kilometer marker with the beacon arrangement rule set, wherein the beacon arrangement rule set comprises a forbidden arrangement range of a turnout element, and the turnout element refers to a CAD graphic element representing a turnout device in the rail transit line for realizing train switching and is extracted from the predefined layer; adjusting the target kilometer marker to outside the forbidden arrangement range according to a preset offset strategy to obtain a corrected target kilometer marker when the target kilometer marker falls within the forbidden arrangement range; calculating a spatial coordinate position of the beacon in the CAD signal plane arrangement drawing according to the corrected target kilometer marker and direction information of the line element.

[0013] By using the above technical solution, when calculating the beacon position, not only the stop point position and the physical parameters of the train are considered, but also a forbidden arrangement range checking mechanism of the turnout element is introduced. By automatically extracting the CAD graphic element information of the turnout device from the predefined layer, it is ensured that the beacon will not be arranged in the turnout area that may affect the safety of train switching. When the calculated target kilometer marker falls within the forbidden arrangement range, the system will automatically adjust the beacon position to the safe area according to the preset offset strategy. This intelligent position optimization mechanism avoids the spatial conflict between the beacon arrangement and the turnout device and eliminates the potential safety hazard. By combining the corrected target kilometer marker with the line direction information, the system can accurately calculate the spatial coordinate position of the beacon after avoiding the turnout area, which not only ensures the safety of the beacon arrangement but also realizes the automatic processing of the position conflict, thereby improving the design efficiency while ensuring the safe operation of the rail transit system.

[0014] Optionally, the method further comprises: obtaining a start kilometer marker and an end kilometer marker of the forbidden arrangement range corresponding to the turnout element; determining a distance relationship of the target kilometer marker relative to the start kilometer marker and the end kilometer marker; determining an offset direction according to the distance relationship, adjusting the target kilometer marker to a preset safe distance position outside the forbidden arrangement range along the offset direction to obtain a candidate kilometer marker; determining whether the distance between the candidate milepost and the adjacent mileposts meets a preset milepost distance requirement; when the distance meets the milepost distance requirement, taking the candidate milepost as a corrected target milepost.

[0015] By adopting the above technical solution, the starting and ending mileposts of the turnout figure are obtained, the accurate prohibited arrangement range boundary is established, and the offset direction is intelligently determined based on the distance relationship between the target milepost and the boundaries, so as to ensure that the beacon is always adjusted in the optimal direction; when the beacon is adjusted outside the prohibited arrangement range, the system also considers the requirement of the preset safety distance, and avoids new arrangement conflicts after position adjustment by detecting whether the distance between the candidate position and the adjacent mileposts meets the preset requirement; the position optimization mechanism under such multiple constraints not only ensures that the beacon maintains a safe distance from the turnout device, but also guarantees the overall arrangement rationality and coordination of the beacon sequence, so as to realize automatic arrangement while comprehensively improving the safety and reliability of the rail transit beacon system.

[0016] Optionally, the method further comprises: calculating a first distance difference value between the target milepost and the starting milepost, and a second distance difference value between the target milepost and the ending milepost; when the first distance difference value is less than the second distance difference value, determining that the offset direction is a milepost decreasing direction, and adjusting the target milepost to a position of the starting milepost minus the preset safety distance; when the first distance difference value is greater than or equal to the second distance difference value, determining that the offset direction is a milepost increasing direction, and adjusting the target milepost to a position of the ending milepost plus the preset safety distance.

[0017] By adopting the above technical solution, the distance difference values between the target milepost and the starting and ending mileposts of the turnout region are calculated and compared, an objective offset direction judgment standard is established, and the beacon is always adjusted in the direction closest to the target milepost, so as to realize minimum displacement adjustment; when the target milepost is closer to the starting milepost, the system automatically selects to offset in the milepost decreasing direction, and vice versa; and the preset safety distance requirement is strictly implemented when offsetting, so that the intelligent adjustment mechanism based on distance difference value comparison not only ensures the rationality of position adjustment, but also maximally reduces the adjustment amplitude; by adopting such accurate position optimization strategy, the system not only ensures the safety of beacon arrangement, but also improves the efficiency of position adjustment, so that the entire beacon arrangement scheme is optimally configured on the basis of meeting various technical requirements.

[0018] Optionally, after the unique identifier is assigned to the beacon element, the method further comprises: generating a beacon arrangement list containing position information, function type and the unique identifier of the beacon element; performing compliance inspection on the beacon element, and generating alarm information and marking the non-compliant beacon element when the inspection result does not meet the preset compliance standard to obtain an inspection result; outputting the beacon element, the beacon arrangement list and the inspection result in a specified CAD file format.

[0019] By adopting the above technical solution, a beacon arrangement list containing position information, function type and a unique identifier is generated, a complete beacon management file is established, and subsequent query, maintenance and management are facilitated; through compliance inspection on the beacon element and automatic generation of alarm information and marking when problems are found, the system establishes an active quality control mechanism, and ensures the accuracy and reliability of the beacon arrangement scheme; finally, the beacon element, the arrangement list and the inspection result are output in a standard CAD file format, not only realizing the standardized expression of design results, but also providing a clear guidance file for engineering implementation, thereby improving the design quality while significantly improving the engineering implementation efficiency and operation and maintenance level of the rail transit beacon system.

[0020] In a second aspect, the present application provides a beacon arrangement device based on rail transit CAD, comprising one or more processors and a memory; the memory is coupled to the one or more processors, and the memory is used to store computer program code, the computer program code comprising computer instructions, the one or more processors invoking the computer instructions to enable the beacon arrangement device based on rail transit CAD to perform the method described in the first aspect and any possible implementation manner of the first aspect.

[0021] In a third aspect, the present application provides a computer program product containing instructions, when the computer program product runs on a beacon arrangement device based on rail transit CAD, enabling the beacon arrangement device based on rail transit CAD to perform the method described in the first aspect and any possible implementation manner of the first aspect.

[0022] In a fourth aspect, the present application provides a computer readable storage medium, comprising instructions, when the instructions run on a beacon arrangement device based on rail transit CAD, enabling the beacon arrangement device based on rail transit CAD to perform the method described in the first aspect and any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF DRAWINGS

[0023] Figure 1is a flowchart of a beacon arrangement method based on rail transit CAD provided by an embodiment of the present application; Figure 2 is a schematic diagram of a one-way operation mode provided by an embodiment of the present application; Figure 3 is a schematic diagram of a two-way operation mode provided by an embodiment of the present application; Figure 4 is an exemplary hardware structure schematic diagram of a beacon arrangement device based on rail transit CAD provided by an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order for those skilled in the art to better understand the technical solutions in the specification, the technical solutions in the specification will be clearly and completely described below in conjunction with the drawings in the specification. Obviously, the described embodiments are only some of the embodiments of the present application, not all the embodiments.

[0025] In the description of the embodiments of the present application, the words such as "for example" or "for instance" are used to represent an example, illustration or description. Any embodiment or design scheme described as "for example" or "for instance" in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the words such as "for example" or "for instance" are intended to present the relevant concept in a specific manner.

[0026] In the description of the embodiments of the present application, the term "a plurality of" means two or more. For example, a plurality of systems means two or more systems, and a plurality of screen terminals means two or more screen terminals. In addition, the terms "first" and "second" are used for description purposes only, and should not be interpreted as indicating or implying relative importance or implicitly indicating the indicated technical features. Therefore, the features defined with "first" and "second" can explicitly or implicitly include one or more of the features. The terms "include", "contain", "have" and their variants mean "include but are not limited to", unless otherwise specifically emphasized.

[0027] The present application provides a beacon arrangement method based on rail transit CAD, referring to Figure 1 , Figure 1 is a flowchart of a beacon arrangement method based on rail transit CAD provided by an embodiment of the present application, including steps S101 to S104, and the above steps are as follows: S101: Obtain a plurality of predefined layers in a rail transit CAD signal plane arrangement drawing file.

[0028] In the embodiments of the present application, the predefined layer refers to a layer structure with specific functions and purposes pre-set in the rail transit CAD signal plane layout file according to standard specifications. Each layer carries a specific type of engineering information, such as a line layer for representing the track line direction, a platform layer for representing the station platform position, a device layer for representing the signal device arrangement, etc.

[0029] Specifically, all layer objects meeting the preset naming rules and attribute standards are identified and extracted from the overall structure of the rail transit CAD signal plane layout file. By analyzing the layer manager information of the CAD file, all layer nodes in the file are traversed, and target layers containing rail transit engineering elements are filtered out, including but not limited to line layers, platform layers, turnout layers, signal device layers, etc. At the same time, the name, visibility state, color attribute, line type attribute, etc. of each layer are read, and the integrity and validity of the layer content are verified to ensure that the basic data source required for subsequent beacon arrangement calculation is complete and available. Finally, multiple predefined layers are established.

[0030] S102: According to the preset layer mapping rule, the attribute information of the corresponding preset key element is extracted from each predefined layer.

[0031] In the embodiments of the present application, the layer mapping rule refers to a rule set pre-established for defining the correspondence between different CAD layers and the types of engineering elements they contain. The rule clearly specifies which types of graphic elements should be extracted from a specific layer and the key attribute information of these elements, such as the track centerline element and its direction attribute from the line layer, the stop point element and its location kilometer marker attribute from the platform layer, etc.

[0032] Specifically, each predefined layer is analyzed based on the preset layer mapping rule. According to the element type identifier and attribute filtering condition defined in the mapping rule, the target graphic element is accurately positioned and extracted from the corresponding layer. The geometric attribute, text attribute and extended attribute of each graphic element are analyzed, including coordinate position, size parameter, label information, kilometer marker value, etc. Key data. At the same time, according to the layer attribution and geometric characteristics of the graphic element, different types of engineering elements such as line elements, stop point elements and turnout elements are classified and identified. The corresponding direction information, location kilometer marker, device number, etc. of each type of engineering element are extracted, and the extracted attribute information is standardized and verified for data integrity to ensure that the attribute information of each preset key element required for subsequent beacon arrangement calculation is accurate and available.

[0033] S103: According to the attribute information of each predefined layer and the corresponding preset key element, and combining the preset beacon arrangement rule, the spatial coordinate positions of multiple beacons in the rail transit CAD signal plane layout are calculated.

[0034] In the embodiments of the present application, the beacon arrangement rule refers to a calculation rule system for determining the arrangement position of the beacon device on the line, which is prepared in advance according to the technical standards and safety specifications of the rail transit signal system. The rule system contains technical parameters such as the number configuration requirement of the beacon in different operation scenarios, the relative position relationship constraint, and the safety distance limit. For example, the beacon arrangement rule of the platform area stipulates the front distance of the transponder relative to the stopping point, the beacon spacing, and the matching relationship with the physical parameters of the train, and the like.

[0035] Specifically, based on the attribute information of the preset key elements in each predefined layer, first, the number of stopping point graph elements associated with the platform graph element is counted in the preset search range to determine the platform operation mode, the corresponding arrangement strategy and the corresponding rule set are selected from the preset beacon arrangement rule according to the identified operation mode, then the arrangement position is calculated by combining the position kilometer marker information of the stopping point graph element and the physical parameters of the train, the offset distance of each beacon relative to the stopping point is determined by comprehensively operating the stopping point kilometer marker, the train length parameter and the beacon front distance requirement, and then the kilometer marker position is converted into the two-dimensional space coordinate position in the CAD coordinate system according to the geometric parameters of the rail line and the coordinate system conversion relationship, while considering the prohibited arrangement constraint of the turnout area and the spacing requirement of the adjacent beacons to optimize and adjust the calculation result, the position of all beacons is ensured to meet the safety spacing and arrangement specification requirement through iterative calculation and conflict detection, and finally the accurate spatial coordinate positions of the multiple beacons in the rail transit CAD signal plane arrangement drawing that meet the technical specification requirement are obtained.

[0036] On the basis of the above-mentioned embodiments, as an optional embodiment, S103: the predefined layers include line graph elements of a train operation path, stopping point graph elements of a train stopping position, and platform graph elements of a passenger boarding and alighting area, the attribute information includes direction information of the line graph elements, position kilometer markers of the stopping point graph elements, and platform identification and platform center kilometer markers of the platform graph elements, and the step of calculating the spatial coordinate positions of the multiple beacons in the rail transit CAD signal plane arrangement drawing according to the attribute information of the preset key elements of each predefined layer and the predefined beacon arrangement rule of each predefined layer can specifically include the following steps: S201: Count the number of stopping point graph elements associated with the platform graph elements in the predefined layers in the preset search range to obtain a stopping point count value.

[0037] In the embodiments of the present application, the preset search range refers to the spatial search area boundary preset when performing the station diagram and parking point diagram association analysis. The range is usually based on the geometric center or boundary of the station diagram, and a certain distance is extended outward to form a rectangular or circular search area. For example, a linear area extending 50 meters forward and backward from the station diagram is used to limit the search for parking point diagrams related to the station within the area.

[0038] Specifically, the spatial index area of the preset search range is established based on the geometric boundary of each station diagram. By traversing the parking point diagram set extracted in S102, the coordinate position of each parking point diagram is detected one by one to determine whether it is located within the preset search range corresponding to the current station diagram. The position relationship between the center coordinates of the parking point diagram and the boundary of the search range of the station diagram is determined by using a spatial geometric calculation method. All parking point diagrams within the search range are identified as valid parking points associated with the station diagram. The associated parking point diagrams identified are counted and recorded, and the specific position information and attribute data of each associated parking point diagram are recorded. After the parking point statistics of the current station diagram are completed, the next station diagram is processed, and the same search and counting process is repeated. Finally, the parking point count value corresponding to each station diagram is obtained.

[0039] S202: Determine the station operation mode according to the parking point count value, and select a beacon arrangement strategy according to the station operation mode.

[0040] In the embodiments of the present application, the station operation mode refers to the station operation type determined according to the configuration of the parking points in the station area and the characteristics of the train running direction, including two basic types of one-way operation mode and two-way operation mode. For example, when the station is provided with only one parking point, it corresponds to the one-way operation mode, and when the station is provided with two parking points for up and down trains, it corresponds to the two-way operation mode.

[0041] Specifically, the type of the platform operation mode is determined by judging the numerical relationship between the parking point count value and the preset threshold value, when the parking point count value is equal to the first preset threshold value, the current platform is determined as a one-way operation mode, when the parking point count value is equal to the second preset threshold value, the current platform is determined as a two-way operation mode, wherein the numerical value of the second preset threshold value is greater than the first preset threshold value, after the operation mode is determined, the corresponding beacon arrangement strategy is selected according to the determined type of the platform operation mode, for the one-way operation mode, the arrangement strategy of setting a single group of beacon sequences behind the parking point pixel according to the position kilometer mark of the parking point pixel in the platform and the direction information of the line pixel is selected, for the two-way operation mode, the uplink parking point pixel and the downlink parking point pixel in the platform are obtained respectively, and the two-way arrangement strategy of setting the first group of beacon sequences behind the uplink parking point pixel and the second group of beacon sequences behind the downlink parking point pixel based on the respective position kilometer mark and the corresponding direction information of the line pixel is selected, so as to ensure that the beacon arrangement strategy is completely matched with the actual operation demand of the platform.

[0042] On the basis of the above-mentioned embodiments, as an optional embodiment, S202: determining the platform operation mode according to the parking point count value, and selecting the beacon arrangement strategy according to the platform operation mode, specifically can include the following steps: S301: when the parking point count value is equal to the first preset threshold value, the one-way operation mode is determined, when the parking point count value is equal to the second preset threshold value, the two-way operation mode is determined, and the second preset threshold value is greater than the first preset threshold value.

[0043] In the embodiments of the present application, the first preset threshold value refers to a reference numerical parameter for judging the type of the platform operation mode, the threshold value represents the standard number of parking points required for configuring the one-way operation in the platform area, and is usually set to the value 1, when the actual statistical parking point count value is equal to the threshold value, it indicates that the platform only supports the train stopping operation in a single direction, the second preset threshold value refers to a judgment reference numerical value for identifying the two-way operation mode, the threshold value represents the standard number of parking points required for configuring the two-way operation in the platform area, and is set to the value 2, when the parking point count value is equal to the threshold value, it indicates that the platform supports the train stopping operation in two directions of uplink and downlink.

[0044] Specifically, when the parking point count value is equal to the first preset threshold, the determination logic of the one-way operation mode is executed, the current station is marked as the one-way operation mode and the corresponding operation mode identifier is set, when the parking point count value is equal to the second preset threshold, the determination logic of the two-way operation mode is executed, the current station is marked as the two-way operation mode and the corresponding operation mode identifier is set, the parking point count value is compared one by one through the conditional branch statement, first, it is checked whether the count value is equal to 1, if the condition is true, the one-way operation mode identifier is returned, otherwise, it is continued to check whether the count value is equal to 2, if the condition is true, the two-way operation mode identifier is returned, at the same time, the boundary condition of the parking point count value is checked, when the count value is neither equal to 1 nor equal to 2, an abnormal processing flow is triggered and the related error information is recorded, after the operation mode is determined, the determination result is stored in the station attribute data structure for subsequent beacon arrangement strategy selection.

[0045] S302: for the one-way operation mode, based on the position kilometer mark of the parking point primitive in the station and the direction information of the line primitive, a single group of beacon sequence is arranged behind the parking point primitive along the direction information.

[0046] In the embodiment of the present application, the position kilometer mark refers to the numerical coordinate parameter used to identify the accurate spatial position of the parking point primitive on the whole line in the railway line design drawing, which indicates the specific distance value of the parking point from the starting point of the line, and is usually marked in kilometers, for example, K15+500 indicates that the parking point is located at 15.5 kilometers behind the starting point of the line, which is used to provide an accurate spatial positioning reference for beacon arrangement.

[0047] Specifically, first, the geometric attribute data of the parking point primitive is extracted and the position kilometer mark value is obtained, at the same time, the direction information parameters of the line primitive associated with the parking point primitive are read, including the line direction angle and the forward direction identifier, the accurate spatial coordinate position of the parking point primitive on the line is determined based on the position kilometer mark, the spatial region range behind the parking point primitive along the direction of travel is calculated according to the direction information of the line primitive, the set of position coordinates behind the parking point primitive along the direction of travel is determined through vector calculation method, the beacon position points are arranged in turn along the path direction indicated by the line direction information in the calculated position region behind the parking point primitive according to the preset beacon spacing parameter, a single group of beacon sequence data structure containing multiple beacon nodes is generated, each beacon node contains a specific coordinate position, a beacon type identifier and an association attribute with the parking point primitive, and the generated single group of beacon sequence is bound and stored with the one-way operation mode configuration information of the current station.

[0048] As shown in Figure 2 , the figure is a schematic diagram of the one-way operation mode provided by the embodiment of the present application. Figure 2

[0049] ​First, the geometric properties of the parking point primitive are extracted to obtain its position kilometer marker (that is, the coordinate parameter identifying the specific distance of the parking point from the starting point of the line), and the direction information of the associated line primitive (that is, the Normal direction in the figure) is read. Then, the precise spatial coordinates of the parking point on the line are determined based on the position kilometer marker, and the spatial region behind the parking point is calculated according to the Normal direction. The set of coordinates of the position behind the parking point in the direction of travel is obtained through vector calculation. Then, according to the predetermined beacon spacing, the beacon position points are set along the Normal direction in the rear region, forming a single set of beacon sequence (the antenna SSP arrangement in the figure corresponds to the facilities of this set of beacon sequence) containing multiple beacon nodes. The coordinates, types, and other attributes of each beacon node are associated with the parking point primitive, and the set of beacon sequence is stored in association with the one-way operation mode configuration of the current platform. The distance values such as 70-100m and 25-30m in the figure are the spatial range of beacon arrangement determined based on the position kilometer marker, and the requirement that the right side is greater than or equal to 5m from the signal lamp D is the spatial arrangement specification of the beacon sequence facilities and surrounding equipment in this one-way mode. The whole is a layout diagram of a single set of beacon sequence set according to the position kilometer marker of the parking point and the Normal direction of the line in the one-way operation mode.

[0050] S303: For the bidirectional operation mode, the uplink parking point primitive and the downlink parking point primitive in the platform are obtained respectively, the first set of beacon sequence is set behind the uplink parking point primitive based on the position kilometer marker of the uplink parking point primitive and the direction information of the corresponding line primitive, and the second set of beacon sequence is set behind the downlink parking point primitive based on the position kilometer marker of the downlink parking point primitive and the direction information of the corresponding line primitive.

[0051] In the embodiments of the present application, the uplink parking point primitive refers to a graphical representation element in the bidirectional operation mode platform that is used for the uplink direction train to stop. This primitive represents the parking position marker when the train travels in the direction of increasing line mileage, and usually corresponds to the train parking area running from the starting point to the terminal point of the line, for example, the uplink parking point primitive set in the K10+200 to K10+300 section is used to identify the precise parking position and parking range of the uplink train.

[0052] Specifically, first, the data objects of the uplink parking point primitives and the downlink parking point primitives are extracted from the bidirectional running mode platform through the primitive attribute filtering condition, the position kilometer marker value of the uplink parking point primitive is read, the direction information including the uplink direction angle and the positive direction travel identifier of the corresponding line primitive is obtained, the accurate position coordinates of the uplink parking point primitive in the line coordinate system are calculated based on the position kilometer marker of the uplink parking point primitive, the spatial region range behind the uplink parking point primitive is determined through vector operation according to the direction information of the corresponding line primitive, the beacon nodes are sequentially arranged in the uplink direction according to the preset beacon interval in the rear region to generate the first group of beacon sequences, meanwhile, the position kilometer marker value of the downlink parking point primitive is read, the direction information including the downlink direction angle and the reverse direction travel identifier of the corresponding line primitive is obtained, the spatial coordinate position of the downlink parking point primitive is calculated based on the position kilometer marker of the downlink parking point primitive, the arrangement region behind the downlink parking point primitive is determined according to the direction information of the downlink line primitive, the beacon nodes are arranged in the downlink direction according to the same beacon interval parameter in the region to generate the second group of beacon sequences, the first group of beacon sequences is associated with the uplink parking point primitive, the second group of beacon sequences is associated with the downlink parking point primitive, and finally, the complete beacon arrangement scheme under the bidirectional running mode is formed.

[0053] As shown in Figure 3 , Figure 3 is a schematic diagram of a bidirectional running mode provided by an embodiment of the present application.

[0054] First, the uplink parking point and downlink parking point are extracted from the attribute filtering of the bidirectional platform graphics, wherein the uplink parking point corresponds to the parking area along the Normal direction in the graphics, and the downlink parking point corresponds to the parking area along the Reverse Direction; then the position kilometer marker of the uplink parking point graphics is read (indicating the accurate distance from the starting point of the line), and the direction information of the corresponding line graphics (including the angle of the Normal direction and the positive direction travel identifier) is obtained; after the accurate coordinates of the uplink parking point in the line coordinate system are determined according to the position kilometer marker, the space area behind the uplink parking point is calculated through vector operation, and the beacon nodes are arranged along the Normal direction according to the preset beacon spacing to form the first group of beacon sequences (the antennas SSP facilities in the graphics correspond to the entity arrangement of the beacon sequences); at the same time, the position kilometer marker of the downlink parking point graphics is read, and the direction information of the corresponding line graphics (including the angle of the Reverse Direction and the reverse direction travel identifier) is obtained; the space coordinates and the area behind the downlink parking point are determined in the same way, and the beacon nodes are arranged along the Reverse Direction according to the same spacing to form the second group of beacon sequences, and the first group of beacon sequences is associated with the uplink parking point graphics, and the second group is associated with the downlink parking point graphics; the distance values such as 70-100m and 25-30m marked in the graphics are the space ranges of the beacon arrangement based on the position kilometer markers of the uplink and downlink parking points, and the requirement that the signal lamps are arranged on both sides of the facilities and the distance D is greater than or equal to 5m is the space arrangement specification of the beacon sequence facilities and the surrounding equipment in the bidirectional mode. The overall layout is a layout schematic diagram in which two groups of beacon sequences are arranged according to the position kilometer markers of the uplink and downlink parking points and the respective line directions in the bidirectional operation mode.

[0055] S203: calling the beacon arrangement rule set corresponding to the beacon arrangement strategy from the preset beacon arrangement rule, and calculating the space coordinate positions of the multiple beacons in the rail transit CAD signal plane layout according to the beacon arrangement rule set, the position kilometer marker of the parking point graphics, and the physical parameters of the train.

[0056] In the embodiment of the present application, the beacon arrangement rule set refers to the rule parameter set extracted from the preset beacon arrangement rule library for guiding the space position calculation and arrangement constraints of the beacon. The rule set represents a complete rule system including the constraint conditions such as the beacon spacing requirement, the prohibited arrangement area, and the safety distance standard formulated for a specific beacon arrangement strategy, for example, the rule set corresponding to the bidirectional operation mode beacon arrangement strategy includes specific parameter regulations such as the minimum spacing of 50 meters between the uplink and downlink beacons, the 25-meter prohibited beacon arrangement area in front of and behind the turnout area, and the distance range of 100-500 meters between the beacon and the parking point.

[0057] Specifically, first, according to the beacon arrangement strategy type, a corresponding beacon arrangement rule set data structure is matched and called from a preset beacon arrangement rule library through a strategy identifier. The rule set contains beacon spacing parameters, arrangement offsets, prohibited area ranges and other constraint conditions. Based on the position kilometer marker value of the stopping point graph element, the beacon spacing parameters in the beacon arrangement rule set and the train length and braking distance in the train physical parameters, the target kilometer marker positions of the beacons are calculated through numerical operation. The target kilometer marker of the nth beacon is obtained by subtracting the braking distance from the stopping point position kilometer marker and then subtracting the product of the beacon serial number and the beacon spacing. The calculated target kilometer markers are compared with the prohibited arrangement range of the turnout graph element in the beacon arrangement rule set in terms of spatial position. When the target kilometer marker value falls between the starting kilometer marker and the ending kilometer marker of the prohibited arrangement range, the modified target kilometer marker is obtained according to the preset offset strategy by adjusting the target kilometer marker to the starting kilometer marker of the prohibited range minus a safety offset distance or the ending kilometer marker of the prohibited range plus a safety offset distance. Finally, the target kilometer marker is converted into a two-dimensional spatial coordinate position in the CAD signal plane layout through coordinate transformation operation according to the modified target kilometer marker and the direction information of the line graph element, including the line azimuth and the line starting point coordinates. The horizontal coordinate is obtained by adding the line starting point coordinates to the product of the target kilometer marker and the cosine value of the line azimuth, and the vertical coordinate is obtained by adding the product of the target kilometer marker and the sine value of the line azimuth.

[0058] On the basis of the above-mentioned embodiments, as an optional embodiment, S203: according to the beacon arrangement rule set, the position kilometer marker of the stopping point graph element and the physical parameters of the train, the spatial coordinate positions of the multiple beacons in the rail transit CAD signal plane layout are calculated, which can specifically include the following steps: S401: based on the position kilometer marker of the stopping point graph element, the beacon arrangement rule set and the physical parameters of the train, the target kilometer markers of the beacons are calculated.

[0059] In the embodiments of the present application, the target kilometer marker refers to the expected arrangement position identification value of each beacon on the railway line determined through calculation. The identification represents a specific distance value of the beacon from the starting point of the line and is used to represent the accurate spatial positioning coordinates of the beacon in the line kilometer marker system. For example, when the position kilometer marker of the stopping point graph element is K25+300 and the first beacon has a target kilometer marker of K24+800 and the second beacon has a target kilometer marker of K24+750 after calculation according to the train braking distance and the beacon spacing.

[0060] Specifically, first, the position kilometer marker value is extracted from the attribute data of the parking point element as the calculation reference point, the beacon spacing parameter, the beacon number parameter and the relative parking point arrangement offset distance parameter are read from the beacon arrangement rule set, the train length value and the braking distance value in the train physical parameter are obtained, the position kilometer marker of the parking point element is taken as the starting calculation position, the starting kilometer marker position of the beacon arrangement is determined in combination with the train braking distance, the target kilometer marker of the first beacon is obtained by subtracting the braking distance and the arrangement offset distance from the parking point position kilometer marker, then the target kilometer marker positions of subsequent beacons are calculated in a decreasing manner according to the beacon spacing parameter specified in the beacon arrangement rule set, that is, the target kilometer marker of the first beacon is subtracted by the beacon spacing to obtain the target kilometer marker of the second beacon, the target kilometer marker of the second beacon is subtracted by the beacon spacing to obtain the target kilometer marker of the third beacon, and the target kilometer markers of the beacons are calculated in turn according to this rule until the number of beacons set in the rule set is reached.

[0061] S402: Compare each target kilometer marker with the beacon arrangement rule set, the beacon arrangement rule set including a prohibited arrangement range of a turnout element, the turnout element being a CAD graphic element representing a turnout device in a rail transit line for realizing train switching, extracted from a pre-defined layer; when the target kilometer marker falls within the prohibited arrangement range, the target kilometer marker is adjusted outside the prohibited arrangement range according to a pre-set offset strategy to obtain a corrected target kilometer marker.

[0062] In the embodiment of the present application, the prohibited arrangement range refers to a spatial area range identifier in the beacon arrangement rule set that is not allowed to set a beacon device, which represents a kilometer marker interval segment extending a certain distance forward and backward from the turnout element, and is used to represent a beacon arrangement forbidden zone that must be avoided to ensure train operation safety and normal device operation, for example, when the turnout element is located at K15+200, the prohibited arrangement range thereof can be set as K15+150 to K15+250 interval, indicating that no beacon device can be arranged within the 50-meter range.

[0063] Specifically, first, read all the forbidden arrangement range data of the turnout graph element from the beacon arrangement rule set, including the start kilometer marker and the end kilometer marker of each forbidden range, compare each target kilometer marker with all forbidden arrangement ranges one by one through numerical comparison, judge whether the target kilometer marker value is greater than or equal to the start kilometer marker of the forbidden range and less than or equal to the end kilometer marker of the forbidden range, when the target kilometer marker is found to fall within a certain forbidden arrangement range, read the offset direction parameter and the offset distance parameter from the preset offset strategy configuration, select the adjustment mode of offsetting to the front of the forbidden range or offsetting to the rear of the forbidden range according to the offset strategy rule, obtain the new kilometer marker value by adjusting the target kilometer marker to the start kilometer marker of the forbidden range minus the safety offset distance or the end kilometer marker of the forbidden range plus the safety offset distance, perform forbidden range check on the adjusted new kilometer marker value again to ensure that it no longer conflicts with any forbidden arrangement range, store the checked kilometer marker value as the corrected target kilometer marker into the corrected kilometer marker array, and form the complete corrected target kilometer marker after completing the check and necessary adjustment of all original target kilometer markers.

[0064] On the basis of the above-mentioned embodiments, as an optional embodiment, S402: when the target kilometer marker falls within the forbidden arrangement range, adjust the target kilometer marker to outside the forbidden arrangement range according to the preset offset strategy to obtain the corrected target kilometer marker, which can specifically include the following steps: S501: Obtain the start kilometer marker and the end kilometer marker of the forbidden arrangement range corresponding to the turnout graph element; determine the distance relationship of the target kilometer marker relative to the start kilometer marker and the end kilometer marker.

[0065] In the embodiments of the present application, the distance relationship refers to the spatial distance relationship and relative position state of the target kilometer marker relative to the boundary position of the forbidden arrangement range, which represents the distance difference between the target kilometer marker and the start kilometer marker of the forbidden range and the distance difference between the target kilometer marker and the end kilometer marker, and is used to represent the specific positioning of the target kilometer marker in the coordinate system of the forbidden arrangement range, for example, when the forbidden arrangement range is K15+150 to K15+250 and the target kilometer marker is K15+180, the distance relationship is expressed as that the target kilometer marker is 30 meters away from the start kilometer marker, 70 meters away from the end kilometer marker, and located inside the forbidden range.

[0066] Specifically, first, the spatial position information and the graphic element identifier are read from the attribute data of the turnout graphic element, based on the turnout graphic element center position kilometer marker and the turnout front and rear safety distance parameters preset in the beacon arrangement rule set, the starting kilometer marker and the ending kilometer marker values of the corresponding prohibited arrangement range of the turnout graphic element are determined through numerical calculation, the starting kilometer marker and the ending kilometer marker data are stored in the prohibited range data structure, then the target kilometer marker value that needs to be subjected to position checking is obtained, the difference between the target kilometer marker and the starting kilometer marker is calculated through numerical subtraction operation to obtain the distance relationship of the relative starting position, the difference between the target kilometer marker and the ending kilometer marker is calculated to obtain the distance relationship of the relative ending position, the position state of the target kilometer marker relative to the prohibited arrangement range is determined according to the positive and negative signs of the distance difference values, when the target kilometer marker is greater than the starting kilometer marker and less than the ending kilometer marker, it is determined that the distance relationship is in the range, when the target kilometer marker is less than the starting kilometer marker, it is determined that the distance relationship is in front of the range, and when the target kilometer marker is greater than the ending kilometer marker, it is determined that the distance relationship is behind the range.

[0067] S502: Determine the offset direction according to the distance relationship, adjust the target kilometer marker to a preset safety distance position outside the prohibited arrangement range along the offset direction, and obtain a candidate kilometer marker.

[0068] In the embodiment of the present application, the offset direction refers to the moving direction identifier for position adjustment when the target kilometer marker falls into the prohibited arrangement range, which indicates the specific path selection for numerical adjustment in the direction of increasing or decreasing the line kilometer marker, and is used to indicate the optimal adjustment path for moving the target kilometer marker out of the prohibited area, for example, when the target kilometer marker is closer to the starting kilometer marker of the prohibited range, the offset direction is determined as the kilometer marker decreasing direction, and the target kilometer marker is adjusted to the outside of the starting end; when the target kilometer marker is closer to the ending kilometer marker, the offset direction is determined as the kilometer marker increasing direction, and the target kilometer marker is adjusted to the outside of the ending end. The candidate kilometer marker indicates the new beacon arrangement position kilometer marker value obtained after offset adjustment, which refers to the corrected kilometer marker at the preset safety distance position outside the prohibited arrangement range, and is used to indicate the beacon candidate position identifier that meets the arrangement rule requirement, for example, when the original target kilometer marker is K15+180, the candidate kilometer marker may be K15+140 after offset adjustment to the starting end.

[0069] Specifically, first, a first distance difference is calculated by a numerical subtraction operation of the target kilometer marker and the starting kilometer marker, a second distance difference is calculated by a numerical subtraction operation of the target kilometer marker and the ending kilometer marker, a relative relationship between the first distance difference and the second distance difference is determined by a numerical size comparison, when an absolute value of the first distance difference is less than an absolute value of the second distance difference, it is determined that the target kilometer marker is closer to the starting kilometer marker, a shift direction is set as a kilometer marker decreasing direction, the target kilometer marker is adjusted to a candidate kilometer marker by a numerical subtraction operation of the starting kilometer marker minus a preset safety distance, when the absolute value of the first distance difference is greater than or equal to the absolute value of the second distance difference, it is determined that the target kilometer marker is closer to the ending kilometer marker or equidistant, the shift direction is set as a kilometer marker increasing direction, the target kilometer marker is adjusted to the candidate kilometer marker by a numerical addition operation of the ending kilometer marker plus the preset safety distance.

[0070] On the basis of the above-mentioned embodiments, as an optional embodiment, S502: determining a shift direction according to the distance relationship, and adjusting the target kilometer marker to a preset safety distance position outside the prohibited arrangement range along the shift direction, can specifically include the following steps: S601: calculating a first distance difference of the target kilometer marker and the starting kilometer marker, and a second distance difference of the target kilometer marker and the ending kilometer marker.

[0071] In the embodiments of the present application, the first distance difference refers to a numerical difference between the target kilometer marker and the starting kilometer marker of the prohibited arrangement range, which represents a spatial distance of the target kilometer marker relative to the front end boundary of the prohibited range, and is used to represent a specific position offset of the target kilometer marker at the starting end of the prohibited range, for example, when the target kilometer marker is K15+180 and the starting kilometer marker is K15+150, the first distance difference is 30 meters, which means that the target kilometer marker is located 30 meters behind the starting kilometer marker. The second distance difference refers to a numerical difference between the target kilometer marker and the ending kilometer marker of the prohibited arrangement range, which represents a spatial distance of the target kilometer marker relative to the rear end boundary of the prohibited range, and is used to represent a specific position offset of the target kilometer marker at the ending end of the prohibited range, for example, when the target kilometer marker is K15+180 and the ending kilometer marker is K15+250, the second distance difference is -70 meters, which means that the target kilometer marker is located 70 meters in front of the ending kilometer marker.

[0072] Specifically, the target kilometer marker value, the start kilometer marker value and the end kilometer marker value of the prohibited arrangement range are extracted, a first distance difference value is obtained by subtracting the start kilometer marker from the target kilometer marker through a numerical subtraction operation, and the positive and negative signs of the first distance difference value represent the position relationship of the target kilometer marker relative to the start kilometer marker, a positive value indicates that the target kilometer marker is located behind the start kilometer marker, and a negative value indicates that the target kilometer marker is located in front of the start kilometer marker. Meanwhile, a second distance difference value is obtained by subtracting the end kilometer marker from the target kilometer marker through a numerical subtraction operation, and the positive and negative signs of the second distance difference value represent the position relationship of the target kilometer marker relative to the end kilometer marker, a positive value indicates that the target kilometer marker is located behind the end kilometer marker, and a negative value indicates that the target kilometer marker is located in front of the end kilometer marker.

[0073] S602: When the first distance difference value is less than the second distance difference value, it is determined that the offset direction is a kilometer marker decreasing direction, and the target kilometer marker is adjusted to a position obtained by subtracting a preset safety distance from the start kilometer marker; when the first distance difference value is greater than or equal to the second distance difference value, it is determined that the offset direction is a kilometer marker increasing direction, and the target kilometer marker is adjusted to a position obtained by adding the preset safety distance to the end kilometer marker.

[0074] In the embodiments of the present application, the preset safety distance refers to an additional safety buffer interval length outside the boundary of the prohibited arrangement range, and the distance represents a minimum distance value preset to ensure that the beacon device and the turnout graph element maintain a sufficient safety interval, which is used to represent a safety margin that must be maintained between the beacon arrangement position and the prohibited range boundary. For example, when the preset safety distance is 10 meters and the start kilometer marker of the prohibited range is K15+150, the adjusted beacon position should be located at K15+140, so as to ensure that the beacon and the start boundary of the prohibited range maintain a safety interval of 10 meters.

[0075] Specifically, first, the first distance difference value and the second distance difference value are subjected to absolute value processing to obtain unsigned distance values, and the relative relationship between the absolute value of the first distance difference value and the absolute value of the second distance difference value is determined through a numerical size comparison. When the absolute value of the first distance difference value is less than the absolute value of the second distance difference value, it is determined that the target kilometer marker is closer to the start kilometer marker, the offset direction identifier is set to a kilometer marker decreasing direction, a new candidate kilometer marker position is obtained by subtracting a preset safety distance from the start kilometer marker through a numerical subtraction operation, and the position is located in a safety area outside the start end of the prohibited arrangement range. When the absolute value of the first distance difference value is greater than or equal to the absolute value of the second distance difference value, it is determined that the target kilometer marker is closer to or equidistant from the end kilometer marker, the offset direction identifier is set to a kilometer marker increasing direction, a new candidate kilometer marker position is obtained by adding the preset safety distance to the end kilometer marker through a numerical addition operation, and the position is located in a safety area outside the end of the prohibited arrangement range. The determined offset direction parameter and the calculated adjusted kilometer marker value are stored in a position adjustment result data structure, and the target kilometer marker offset adjustment calculation based on the distance optimization principle is completed.

[0076] S503: Determine whether the interval between the candidate milepost and the adjacent beacon before and after the candidate milepost meets a preset beacon interval requirement; when the interval meets the beacon interval requirement, the candidate milepost is taken as the corrected target milepost.

[0077] In the embodiments of the present application, the beacon interval requirement refers to a minimum distance standard that must be maintained between two adjacent beacon devices, which is represented as a distance constraint condition preset to ensure normal operation of the beacon system and avoid signal interference, and is used to represent a spatial interval specification that must be observed in the beacon arrangement process. For example, when the beacon interval requirement is set to 50 meters, the milepost difference between any two adjacent beacons must be greater than or equal to 50 meters. For example, when beacon A is located at K15+100 and beacon B is located at K15+160, the interval between the two beacons is 60 meters, which meets the 50-meter interval requirement.

[0078] Specifically, first, all beacon position information that has been arranged on the current line is obtained from the beacon arrangement database, the beacon position sequence is constructed in ascending order according to the milepost values, the insertion position of the candidate milepost in the ordered beacon sequence is located through the binary search algorithm, the specific positions of the previous adjacent beacon and the next adjacent beacon of the candidate milepost are determined, the forward interval is calculated by subtracting the milepost value of the previous beacon from the milepost value of the candidate milepost, the backward interval is calculated by subtracting the milepost value of the candidate milepost from the milepost value of the next beacon, the preset minimum beacon interval value is read from the beacon interval rule configuration file, and whether the forward interval and the backward interval are both greater than or equal to the preset beacon interval requirement is determined through value size comparison. When the intervals in both directions meet the requirement, the data copying operation of the candidate milepost to the target milepost is performed, and the value, position attribute and related parameters of the candidate milepost are assigned to the corrected target milepost.

[0079] S403: Calculate the spatial coordinate position of the beacon in the CAD signal plane layout according to the corrected target milepost and the direction information of the line graph element.

[0080] In the embodiments of the present application, the spatial coordinate position refers to a two-dimensional Cartesian coordinate value of the beacon in the CAD signal plane layout, which represents the specific geometric position point of the beacon device in the CAD drawing space, and is used to represent the precise positioning parameters of the beacon graph element in the plane coordinate system. For example, when the spatial coordinate position of the beacon is calculated as (1250.5, 800.3), it means that the beacon is located at the position point of 1250.5 millimeters on the X-axis and 800.3 millimeters on the Y-axis in the CAD drawing, and the coordinate can be directly used for the drawing and positioning of the beacon graph element in the CAD software.

[0081] Specifically, first, the kilometer and meter information of the kilometer marker is extracted from the corrected target kilometer marker value, the kilometer marker is converted into a continuous numerical representation of the route mileage, the route center line coordinates and tangent direction vector of the corresponding mileage point are obtained from the route map meta data, the tangent direction vector is unitized to obtain a standard direction vector through vector mathematical operation, the offset direction of the beacon relative to the route center line is determined according to the direction information of the route map element, the normal vector perpendicular to the route direction is calculated through vector perpendicular transformation, the normal vector is multiplied by the preset beacon offset distance to obtain an offset vector through vector multiplication operation, the coordinates of the route center line are added to the offset vector to obtain the position of the beacon in the local coordinate system of the route through vector addition operation, the local coordinates of the route are converted into the global coordinate system of the CAD signal plane layout by applying the coordinate transformation matrix, the coordinate scaling and translation transformation are performed considering the scale factor and origin offset of the CAD drawing, and finally the X coordinate value and Y coordinate value of the beacon in the CAD plane coordinate system are obtained, and the spatial coordinate position of the beacon in the CAD signal plane layout is obtained.

[0082] S104: A corresponding beacon element is generated at the spatial coordinate position, and a unique identifier is assigned to the beacon element.

[0083] In the embodiments of the present application, the unique identifier refers to a unique coded identifier assigned to each beacon element, which is a string or numerical code that can uniquely distinguish and locate a specific beacon element in the entire signal system, and is used to represent the identity code of the beacon element in database management, drawing annotation and system maintenance. For example, when a unique identifier "BCN_K15_180_001" is assigned to a certain beacon element, the code represents the first beacon device near K15+180 kilometer marker. Through the identifier, the beacon element can be accurately positioned and operated in the CAD drawing and the beacon management system.

[0084] Specifically, first, the CAD graph generation interface is called according to the calculated spatial coordinate position data, the basic geometry of the beacon primitive is created at the specified X, Y coordinate position, the pre-defined beacon symbol style and size parameters are loaded from the beacon primitive template library, the template primitive is scaled, rotated and moved to the target spatial coordinate position through the graph transformation operation, the display attributes such as the color, line type and filling style of the primitive are set according to the function type of the beacon, the unique identifier generation algorithm is called, the formatted unique code string is generated in combination with the current timestamp, the line number, the kilometer marker information and the serial number, the hash check is performed to ensure that the generated identifier has uniqueness within the current project range, the unique identifier is attached to the beacon primitive object as the primitive attribute data, the CAD attribute parameters such as the layer ownership, visibility and selectivity of the primitive are set, the generated beacon primitive is added to the primitive set of the CAD document, the primitive index table is updated to establish the mapping relationship between the identifier and the primitive object, the position information, function type and unique identifier data of the beacon primitive are written into the beacon arrangement list data structure, the compliance verification module is called to detect the position compliance, spacing compliance and standard compliance of the newly generated beacon primitive, when the verification finds problems that do not meet the pre-set compliance standards, the alarm information containing the specific error description is generated and the non-compliance mark is added to the primitive, the beacon primitive, the complete beacon arrangement list and the verification result data are serialized according to the specified CAD file format standard and output as the standard CAD file that can be used by the design software.

[0085] On the basis of the above embodiment, as an optional embodiment, S104: the step of assigning a unique identifier to the beacon primitive further includes the step of verifying the beacon, which can specifically include the following steps: S701: generating a beacon arrangement list containing the position information, function type and unique identifier of the beacon primitive.

[0086] Specifically, first, all generated beacon primitive objects are traversed from the CAD document's primitive set, the graphic elements belonging to the beacon category are filtered out through the primitive type filter, the attribute data extraction operation is performed on each beacon primitive, the spatial coordinate position value is read from the primitive's attached attribute and converted to the corresponding kilometer marker format as the position information, the specific function type identifier of the beacon is extracted from the primitive's function attribute field, such as transponder beacon, positioning beacon or speed beacon type information, the pre-assigned unique identifier string is obtained from the primitive object, the beacon record data structure is created, the extracted position information, function type and unique identifier data are filled into the corresponding fields of the record structure, the serial number, creation time and version number and other auxiliary management information are added to each beacon record, all beacon records are sorted in ascending order according to the kilometer marker position to form an ordered beacon record sequence, the beacon record sequence is converted to a standardized table form by applying the data formatting template, the table header information of the list is set, including item name, line number, generation time and list version and other metadata, the data of the list content is verified to ensure the accuracy of the position information and the uniqueness of the identifier, and the finally generated beacon arrangement list data is saved as a structured data file for subsequent compliance inspection and output processing.

[0087] S702: Perform compliance inspection on the beacon primitive, generate alarm information and mark the non-compliant beacon primitive when the inspection result does not meet the preset compliance standard, and obtain the inspection result.

[0088] Specifically, first, the preset beacon arrangement standard is loaded from the compliance rule configuration file, including the minimum beacon spacing, prohibited area constraint, function type limit and position accuracy requirement and other inspection rules, each beacon record in the beacon arrangement list is traversed, multi-dimensional compliance detection is performed on each beacon primitive, whether the spacing between the beacon and the adjacent beacon meets the minimum spacing standard is verified by the distance calculation algorithm, whether the beacon position is located within the allowed arrangement area range is verified by querying the prohibited arrangement area database such as turnout and platform, whether the function type configuration of the beacon meets the line level and signal system requirements is checked, whether the geometric attribute and display style of the beacon primitive meet the CAD drawing standard is verified, when any inspection result does not meet the corresponding preset compliance standard, the alarm information data structure is created and filled with detailed information such as the specific violation type, violation description, involved beacon identifier and recommended rectification measures, the visual marker such as red border or warning icon is added to the non-compliant beacon primitive in the CAD drawing, the compliance status attribute of the beacon primitive is updated to the non-compliant state, the pass status of all inspection items, the number of non-compliant beacons, the alarm information list and the overall compliance evaluation result are summarized into the inspection result data structure, the inspection result file containing the detailed inspection report and statistical information is generated for the designer to check and rectify.

[0089] S703: output the beacon primitive, the beacon arrangement list and the inspection result as a specified CAD file format.

[0090] Specifically, first, the technical specification and coding standard of the target CAD file format are read from the system configuration, including the format requirements such as the file header structure, data block organization mode and attribute storage rule, the CAD file format conversion engine is called to initialize the basic structure of the output file, all beacon primitive objects in the CAD drawing are traversed, the geometric coordinates, graphic shape, color attribute and line style of each primitive are serialized according to the primitive coding rules of the target format, the beacon arrangement list data is converted into a table object or a text note in the CAD file, the display position and format style of the list data in the drawing are set, the inspection result information is embedded into the custom attribute area or the note field of the CAD file, the alarm mark and error description information for the non-compliant beacon primitive are reserved in the file, the layer organization structure of the CAD file is set, the beacon primitive, the list table and the inspection mark are placed in the corresponding special layers, the global parameters such as the unit system, the scale factor and the coordinate system of the file are configured, the file compression and optimization algorithm is applied to reduce the storage volume of the output file, the file integrity check is performed to ensure the accuracy and readability of the output data, and finally the CAD file data is written into the specified file path to generate a complete CAD design file that meets the target format standard.

[0091] Next, an example of a beacon arrangement device based on rail transit CAD provided by an embodiment of the present application is introduced. Figure 4 FIG. 1 is an example of a hardware structure of a beacon arrangement device based on rail transit CAD provided by an embodiment of the present application.

[0092] In some embodiments, the beacon arrangement device based on rail transit CAD is a computer device or includes a computer device in the beacon arrangement device based on rail transit CAD. The computer device includes a processor, a memory and a network interface connected through a system bus. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The database of the computer device is configured to store data. The network interface of the computer device is configured to communicate with other terminals or servers outside through a network connection. In some embodiments, the network interface can be a wired network interface, and in some embodiments, the network interface can also be a wireless network interface. The computer program is executed by the processor to implement the method in the embodiments of the present application.

[0093] Those skilled in the art can understand that,Figure 4 The structure shown in the above-mentioned figures is only a block diagram of part of the structure related to the technical scheme of the present application, and does not constitute a limitation on the computer device to which the technical scheme of the present application is applied. A specific computer device can include more or fewer components than those shown in the figures, or can combine certain components, or have a different arrangement of components.

[0094] The above-described embodiments are only used to illustrate the technical scheme of the present application, but not intended to limit the technical scheme of the present application; even though the technical scheme of the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still make modifications to the technical scheme recorded in the foregoing embodiments, or make equivalent replacements to part of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical scheme to deviate from the scope of the technical scheme of the embodiments of the present application.

[0095] In the above-described embodiments, the term "when" can be interpreted as meaning "if" or "after" or "in response to determining" or "in response to detecting" according to the context. Similarly, the phrase "on determining" or "if detecting (the stated condition or event)" can be interpreted as meaning "if determining" or "in response to determining" or "on detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)" according to the context.

[0096] In the above-described embodiments, all or part of the technical scheme can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the technical scheme can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes one or more available media sets. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state disk), etc.

[0097] Those skilled in the art can understand that all or part of the processes in the above-mentioned method embodiments can be implemented by a computer program instructing relevant hardware to complete, the program can be stored in a computer readable storage medium, and the program can include the processes of the above-mentioned method embodiments when executed. The aforementioned storage medium includes ROM or random storage memory RAM, magnetic disc or optical disc and various storage code medium.

Claims

1. A beacon arrangement method based on rail transit CAD, characterized in that, The method comprises: acquiring a plurality of predefined layers in a rail transit CAD signal plane layout file; extracting attribute information of a corresponding preset key element from each of the predefined layers according to a preset layer mapping rule; calculating spatial coordinate positions of a plurality of beacons in the rail transit CAD signal plane layout according to each of the predefined layers and the attribute information of the corresponding preset key element, and in combination with a preset beacon arrangement rule; generating a corresponding beacon primitive at the spatial coordinate positions and assigning a unique identifier to the beacon primitive.

2. The method of claim 1, wherein, The predefined layers include a line primitive of a train running path, a stop point primitive of a train stopping position, and a platform primitive of a passenger boarding and alighting area, the attribute information includes direction information of the line primitive, position kilometer markers of the stop point primitive, and platform identification and platform center kilometer markers of the platform primitive, and the calculation of the spatial coordinate positions of the plurality of beacons in the rail transit CAD signal plane layout according to each of the predefined layers, the attribute information of the corresponding preset key element of each of the predefined layers, and the preset beacon arrangement rule comprises: counting a number of the stop point primitives associated with the platform primitive in the predefined layer within a preset search range to obtain a stop point count value; determining a platform operation mode according to the stop point count value, and selecting a beacon arrangement strategy according to the platform operation mode; calling a beacon arrangement rule set corresponding to the beacon arrangement strategy from the preset beacon arrangement rule; calculating the spatial coordinate positions of the plurality of beacons in the rail transit CAD signal plane layout according to the beacon arrangement rule set, the position kilometer markers of the stop point primitive, and physical parameters of a train.

3. The method of claim 2, wherein, The determination of the platform operation mode according to the stop point count value, and the selection of the beacon arrangement strategy according to the platform operation mode comprise: when the stop point count value is equal to a first preset threshold value, determining a one-way operation mode, and when the stop point count value is equal to a second preset threshold value, determining a two-way operation mode, the second preset threshold value being greater than the first preset threshold value; for the one-way operation mode, setting a single group of beacon sequences behind the stop point primitives in a direction of the direction information based on the position kilometer markers of the stop point primitives in the platform and the direction information of the line primitive; for the two-way operation mode, acquiring uplink stop point primitives and downlink stop point primitives in the platform respectively, setting a first group of beacon sequences behind the uplink stop point primitives based on position kilometer markers of the uplink stop point primitives and direction information of corresponding line primitives, and setting a second group of beacon sequences behind the downlink stop point primitives based on position kilometer markers of the downlink stop point primitives and direction information of corresponding line primitives.

4. The method of claim 2, wherein, The calculation of the spatial coordinate positions of the plurality of beacons in the rail transit CAD signal plane layout according to the beacon arrangement rule set, the position kilometer markers of the stop point primitive, and the physical parameters of the train comprises: calculating a target kilometer mark of each of the beacons based on the position kilometer mark of the parking point, the beacon arrangement rule set, and physical parameters of a train; comparing each of the target kilometer marks with the beacon arrangement rule set, the beacon arrangement rule set including a forbidden arrangement range of a turnout element, the turnout element being a CAD graphic element representing a turnout device in a rail transit line for realizing train switching and being extracted from the predefined layer; when the target kilometer mark falls into the forbidden arrangement range, adjusting the target kilometer mark out of the forbidden arrangement range according to a preset offset strategy to obtain a corrected target kilometer mark; calculating a spatial coordinate position of the beacon in the CAD signal plane arrangement drawing according to the corrected target kilometer mark and direction information of the line element.

5. The method of claim 4, wherein, The adjusting the target kilometer mark out of the forbidden arrangement range according to the preset offset strategy to obtain the corrected target kilometer mark includes: obtaining a start kilometer mark and an end kilometer mark of the forbidden arrangement range corresponding to the turnout element; determining a distance relationship of the target kilometer mark relative to the start kilometer mark and the end kilometer mark; determining an offset direction according to the distance relationship, adjusting the target kilometer mark to a preset safe distance position outside the forbidden arrangement range along the offset direction to obtain a candidate kilometer mark; detecting whether a distance between the candidate kilometer mark and adjacent beacons before and after the candidate kilometer mark satisfies a preset beacon distance requirement; when the distance satisfies the beacon distance requirement, taking the candidate kilometer mark as the corrected target kilometer mark.

6. The method of claim 5, wherein, The determining the offset direction according to the distance relationship and adjusting the target kilometer mark to the preset safe distance position outside the forbidden arrangement range along the offset direction includes: calculating a first distance difference value of the target kilometer mark and the start kilometer mark and a second distance difference value of the target kilometer mark and the end kilometer mark; when the first distance difference value is less than the second distance difference value, determining that the offset direction is a kilometer mark decreasing direction and adjusting the target kilometer mark to a position of the start kilometer mark minus the preset safe distance; when the first distance difference value is greater than or equal to the second distance difference value, determining that the offset direction is a kilometer mark increasing direction and adjusting the target kilometer mark to a position of the end kilometer mark plus the preset safe distance.

7. The rail transit CAD-based beacon arrangement method according to claim 1, characterized in that, After the assigning the beacon element with the unique identifier, the method further includes: generating a beacon arrangement list containing position information, a function type of the beacon element, and the unique identifier; performing a compliance inspection on the beacon element, generating alarm information and marking the beacon element that does not comply with the preset compliance standard when an inspection result does not satisfy a preset compliance standard, to obtain the inspection result; outputting the beacon element, the beacon arrangement list, and the inspection result into a specified CAD file format.

8. A beacon arrangement device based on rail transit CAD, characterized in that, The rail transit CAD-based beacon arrangement device comprises one or more processors and a memory; the memory is coupled with the one or more processors, the memory is used to store computer program codes, the computer program codes comprise computer instructions, and the one or more processors invoke the computer instructions to enable the rail transit CAD-based beacon arrangement device to perform the method according to any one of claims 1-7.

9. A computer program product comprising instructions, characterized in that, When the computer program product is run on the rail transit CAD-based beacon arrangement device, the rail transit CAD-based beacon arrangement device is enabled to perform the method according to any one of claims 1-7.

10. A computer-readable storage medium comprising instructions, characterized in that, When the instructions are run on the rail transit CAD-based beacon arrangement device, the rail transit CAD-based beacon arrangement device is enabled to perform the method according to any one of claims 1-7.