Two-dimensional roadway coordinate checking calculation method and system and storage medium
By integrating a two-dimensional tunnel coordinate verification system into the CAD platform, coordinate parameters can be obtained directly from the construction plan and the verification can be completed automatically. This solves the deviation problem caused by secondary data transfer, improves the accuracy and efficiency of verification, reduces the labor intensity of designers, and is suitable for mine and tunnel design.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-03-12
- Publication Date
- 2026-04-07
AI Technical Summary
The existing CAD platform lacks the function of verifying two-dimensional tunnel coordinates, which makes it easy for errors to occur during secondary data transfer. The verification process is cumbersome and inefficient, and the workload of designers is high, making it difficult to meet the needs of efficient and accurate tunnel engineering design.
A 2D tunnel coordinate verification system is integrated into the CAD platform. The system can directly obtain coordinate parameters from the construction plan through the parameter picking module and automatically complete the verification using the built-in verification algorithm unit, avoiding manual intervention. It supports verification of multiple tunnels at once, and the output results are displayed in highlighted or file format.
It improves the accuracy and efficiency of coordinate verification, reduces the workload of designers, achieves deep integration of CAD drawing process and verification process, improves overall design efficiency, and adapts to different tunnel design scenarios.
Smart Images

Figure CN121809113A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mine engineering design and computer-aided design technology, and in particular to a two-dimensional tunnel coordinate verification method, system and storage medium. Background Technology
[0002] In the field of mining and underground engineering design, construction plans are core technical documents guiding tunnel excavation, support, and equipment layout. The accuracy of the tunnel's starting and ending coordinates directly determines the construction precision. Therefore, after the construction plan is designed, verifying the tunnel coordinates is a crucial step in ensuring the effectiveness of the design documents.
[0003] Currently, computer-aided design (CAD) platforms possess powerful graphic drawing, editing, and parameter annotation capabilities, making them the mainstream tool for coal mine designers to create construction plan drawings. However, existing CAD platforms only focus on graphic design and annotation and do not integrate dedicated two-dimensional roadway coordinate verification functions. If designers want to perform coordinate verification, they must rely on the traditional method of "multi-tool collaboration + manual intervention".
[0004] In summary, the traditional methods of coordinate verification have the following limitations: Firstly, designers inevitably need to switch between different tools, which involves secondary data transfer. This secondary transfer can easily lead to deviations in data transmission and entry, making it difficult to guarantee the reliability of parameter sources and negatively impacting the accuracy of coordinate verification. Secondly, traditional verification methods lack integrated system support, often requiring manual intervention or step-by-step operations. This significantly increases the workload of designers and reduces overall verification efficiency due to the cumbersome nature of manual operations, failing to meet the actual needs of tunnel engineering design for efficient and accurate coordinate verification. Therefore, there is an urgent need for a two-dimensional tunnel coordinate verification system that can achieve integrated operation within a CAD platform, simplify parameter processing, avoid secondary data transfer, and improve verification accuracy and efficiency. Summary of the Invention
[0005] The purpose of this invention is to provide a two-dimensional tunnel coordinate verification method, system, and storage medium to simplify the coordinate verification process, solve the problems of secondary data transfer, repeated switching between multiple tools, and cumbersome verification process in traditional coordinate verification methods, improve the accuracy and efficiency of two-dimensional tunnel coordinate verification, reduce the labor intensity of designers, and enhance the standardization of drawings and the level of intelligent design.
[0006] To achieve the above objectives, the present invention provides a two-dimensional tunnel coordinate verification method, which includes:
[0007] Determine the quadrant of the Cartesian coordinate system in which the two-dimensional tunnel is located;
[0008] Select the type of roadway verification;
[0009] Identify and extract the labeled values of multiple coordinate parameters of the two-dimensional tunnel from the construction plan;
[0010] Based on the selected tunnel verification type and the quadrant in which the two-dimensional tunnel is located, the target coordinate parameters that need to be verified are determined, and the calculated values of the target coordinate parameters are calculated using the labeled values of some of the coordinate parameters.
[0011] Output the comparison results between the calculated values of the target coordinate parameters and the labeled values of the target coordinate parameters.
[0012] Optionally, the coordinate parameters include the starting point coordinates, length, azimuth angle, and ending point coordinates of the two-dimensional tunnel.
[0013] Optionally, the positive Y-axis of the rectangular coordinate system is set to correspond to the due north direction in the construction plan, and the azimuth angle θ is the angle of rotation from the due north direction clockwise to the center line of the two-dimensional tunnel. Then, the relationship between the starting point coordinates (x1, y1), the length l, the azimuth angle θ, and the ending point coordinates (x2, y2) includes:
[0014] When the two-dimensional tunnel is in the first quadrant of the rectangular coordinate system, x2=x1+lcos(|θ-90°|), y2=y1+lsin(|θ-90°|).
[0015] When the two-dimensional tunnel is in the second quadrant of the rectangular coordinate system, x2=x1-lcos(|θ-270°|), y2=y1+lsin(|θ-270°|).
[0016] When the two-dimensional tunnel is located in the third quadrant of the rectangular coordinate system, x2 = x1 - lcos(|θ - 270°|), y2 = y1 - lsin(|θ - 270°|).
[0017] When the two-dimensional tunnel is located in the fourth quadrant of the rectangular coordinate system, x2 = x1 + lcos(|θ-90°|), y2 = y1 - lsin(|θ-90°|).
[0018] Optionally, based on the relationship, the tunnel verification types include one-point one-direction verification and two-point verification.
[0019] Optionally, when the tunnel verification type is selected as one-point-one-direction verification, the endpoint coordinates are the target coordinate parameters. Based on the relationship, the calculated value of the endpoint coordinates is calculated using the marked values of the starting point coordinates, the length, and the azimuth angle. The marked value of the endpoint coordinates and the calculated value of the endpoint coordinates are then compared. When the tunnel verification type is selected as two-point verification, the azimuth angle is the target coordinate parameter. Based on the relationship, the calculated value of the azimuth angle is calculated using the marked values of the starting point coordinates, the length, and the endpoint coordinates. The calculated value of the azimuth angle is then compared with the marked value of the azimuth angle.
[0020] Based on another aspect of the present invention, the present invention also provides a two-dimensional tunnel coordinate verification system for implementing the verification method described above. The verification system is integrated as a plug-in into a CAD platform, and the verification system includes:
[0021] The rule selection module is used to determine the quadrant of the rectangular coordinate system in which the two-dimensional roadway is located and to select the roadway verification type;
[0022] The parameter picking module is used to identify and pick up the labeled values of multiple coordinate parameters of the two-dimensional tunnel from the construction plan and store them.
[0023] The coordinate verification module determines the target coordinate parameters to be verified based on the selected tunnel verification type and the quadrant in which the two-dimensional tunnel is located, and calculates the calculated value of the target coordinate parameters by using the labeled values of some of the coordinate parameters.
[0024] The data export module is used to output the comparison results between the calculated values of the target coordinate parameters and the labeled values of the target coordinate parameters.
[0025] Optionally, the data export module supports displaying the comparison results in a highlighted format on the CAD interface and generating a spreadsheet or text file.
[0026] Optionally, the parameter picking module is configured to identify and pick the labeled values of coordinate parameters of multiple two-dimensional tunnels in a single selection operation.
[0027] Optionally, the coordinate verification module is pre-configured with a one-point-one-direction verification algorithm unit and a two-point verification algorithm unit. The coordinate verification module calls the one-point-one-direction verification algorithm unit or the two-point verification algorithm unit based on the selected roadway verification type.
[0028] In another aspect, the present invention also provides a storage medium storing a program that can be read and written, wherein the program, when executed, implements the two-dimensional tunnel coordinate verification method as described above.
[0029] As configured above, this invention integrates a coordinate verification system into a CAD platform, avoiding secondary transfer of coordinate parameters and achieving "one-stop" verification within the CAD platform. The verification system directly obtains coordinate parameters from the construction plan through a parameter acquisition module. It can acquire the coordinate parameters of one or more two-dimensional tunnels and automatically complete the verification with the built-in verification algorithm unit. Data transcription is completed without manual intervention throughout the process, and the coordinate parameters of multiple two-dimensional tunnels can be verified at once, improving the efficiency of coordinate verification. Simultaneously, it fundamentally eliminates the error risks caused by "secondary transfer," ensuring the authenticity and reliability of the coordinate parameter source and improving the accuracy of the verification results. Furthermore, designers using this verification system are completely free from dependence on other tools, achieving deep integration of the two-dimensional tunnel coordinate verification process with the CAD drawing process, improving overall design efficiency and reducing the workload of designers. This invention supports the custom selection of roadway verification types through a rule selection module, which can be adapted to different roadway design scenarios. It has strong scenario adaptability and practicality, and is easier to promote and apply in the field of roadway design in mines, tunnels and other fields. Compared with general verification tools, this invention has higher technical specificity and market application value.
[0030] It should be noted that the two-dimensional tunnel coordinate verification method and the two-dimensional tunnel coordinate verification system belong to the same inventive concept and have the same or corresponding specific technical features. Therefore, the two-dimensional tunnel coordinate verification method also has the technical effects of the two-dimensional tunnel coordinate verification system, which will not be repeated here. Attached Figure Description
[0031] Those skilled in the art will understand that the accompanying drawings are provided to better understand the invention and do not constitute any limitation on the scope of the invention. Wherein:
[0032] Figure 1 This is a flowchart of a two-dimensional tunnel coordinate verification method according to an embodiment of the present invention. Detailed Implementation
[0033] In this document, unless otherwise stated, the terms “upper,” “lower,” “left,” “right,” “inner,” “outer,” “front,” “back,” “top,” “bottom,” etc., are used to indicate orientation or positional relationship based on the accompanying drawings, and are only for the convenience of describing the invention and simplifying the description, and are not intended to indicate or imply that the device or element referred to must have a characteristic orientation and operation, and therefore should not be construed as a limitation of the invention.
[0034] The specific embodiments of the present invention will now be described in more detail with reference to the accompanying drawings. The advantages and features of the present invention will become clearer from the following description. It should be noted that the drawings are all in a very simplified form and use non-precise proportions, and are only used to facilitate and clarify the illustration of the embodiments of the present invention.
[0035] Figure 1 This is a flowchart of a two-dimensional tunnel coordinate verification method according to an embodiment of the present invention. Please refer to it. Figure 1 This invention provides a two-dimensional tunnel coordinate verification method, which includes steps S1, S2, S3, S4 and S5. Steps S1, S2, S3, S4 and S5 are described in detail below.
[0036] Step S1: Determine the quadrant of the Cartesian coordinate system in which the two-dimensional tunnel is located, that is, determine whether the two-dimensional tunnel is in the first quadrant, the second quadrant, the third quadrant, or the fourth quadrant.
[0037] Step S2: Select the tunnel verification type.
[0038] Furthermore, the types of roadway verification include one-point one-direction verification and two-point verification.
[0039] Step S3: Identify and pick the labeled values of multiple coordinate parameters of the two-dimensional tunnel from the construction plan.
[0040] Specifically, the coordinate parameters include the starting point coordinates, length, azimuth angle, and ending point coordinates of the two-dimensional tunnel. It is understood that all values retrieved are those marked on the construction plan.
[0041] Designers select one or more two-dimensional tunnel coordinate parameters on the construction plan, and the verification system automatically identifies the specific values of the starting point coordinates, length, azimuth angle, and ending point coordinates of the two-dimensional tunnel and stores them in the parameter picking module.
[0042] Let the positive Y-axis of the rectangular coordinate system correspond to the due north direction in the construction plan, and let the azimuth angle θ be the angle from the due north direction rotated clockwise to the centerline of the two-dimensional tunnel. Then the relationship between the starting point coordinates (x1, y1), the length l, the azimuth angle θ, and the ending point coordinates (x2, y2) includes:
[0043] When the two-dimensional tunnel is in the first quadrant of the rectangular coordinate system, x2=x1+lcos(|θ-90°|), y2=y1+lsin(|θ-90°|).
[0044] When the two-dimensional tunnel is in the second quadrant of the rectangular coordinate system, x2=x1-lcos(|θ-270°|), y2=y1+lsin(|θ-270°|).
[0045] When the two-dimensional tunnel is located in the third quadrant of the rectangular coordinate system, x2 = x1 - lcos(|θ - 270°|), y2 = y1 - lsin(|θ - 270°|).
[0046] When the two-dimensional tunnel is located in the fourth quadrant of the rectangular coordinate system, x2 = x1 + lcos(|θ-90°|), y2 = y1 - lsin(|θ-90°|).
[0047] Furthermore, in the above formulas, the angles in the cosine and sine operations are geometrically calculated angles φ. This invention converts the azimuth angle θ into geometrically calculated angles φ, and the conversion method is as follows:
[0048] Designers select the type of turn in the two-dimensional tunnel based on the quadrant of the rectangular coordinate system in which the tunnel is located. The types of turn include left turn and right turn. When the two-dimensional tunnel is in the first or fourth quadrant, a right turn is selected. When the two-dimensional tunnel is in the second or third quadrant, a left turn is selected. When a right turn is selected, φ = |θ - 90°|. When a left turn is selected, φ = |θ - 270°|.
[0049] Step S4: This step is to verify the coordinate parameters. Specifically, based on the selected tunnel verification type and the quadrant in which the two-dimensional tunnel is located, the target coordinate parameters to be verified are determined, and the calculated values of the target coordinate parameters are calculated using the labeled values of some of the coordinate parameters.
[0050] When the tunnel verification type is selected as point-to-direction verification, the endpoint coordinates are the target coordinate parameters. Based on the relationship, the calculated value of the endpoint coordinates is calculated using the marked values of the starting point coordinates, the length, and the azimuth angle. The marked value of the endpoint coordinates and the calculated value of the endpoint coordinates are compared. That is, the starting point coordinates (x1, y1), the length l, and the azimuth angle θ are substituted into the above relationship to obtain the endpoint coordinates (x2, y2). At this time, the endpoint coordinates (x2, y2) are the calculated value. Then, this calculated value is compared with the endpoint coordinates picked up in step S3. The azimuth angle is compared with the labeled value; when the tunnel verification type is selected as two-point verification, the azimuth angle is the target coordinate parameter. Based on the relationship, the azimuth angle is calculated by the labeled values of the starting point coordinates, the length and the ending point coordinates. The calculated value of the azimuth angle is compared with the labeled value of the azimuth angle. That is, the starting point coordinates (x1, y1), the length l and the ending point coordinates (x2, y2) are substituted into the above relationship to find the azimuth angle θ. At this time, the azimuth angle θ is the calculated value. Then, the calculated value is compared with the labeled value of the azimuth angle picked up in step S3.
[0051] Step S5: Output the comparison result (i.e., verification result) between the calculated value and the labeled value of the target coordinate parameters. It can be understood that the comparison result is a textual display of the comparison process and result between the labeled value and the calculated value of the coordinate endpoint or azimuth angle.
[0052] Based on another aspect of the present invention, the present invention also provides a two-dimensional tunnel coordinate verification system, developed based on the C++ language. The verification system is used to implement the verification method described above. The verification system is integrated as a plug-in into the CAD platform. The verification system includes a rule selection module, a parameter picking module, a coordinate verification module, and a data export module.
[0053] The rule selection module is used to determine the quadrant of the Cartesian coordinate system in which the two-dimensional roadway is located, and to select the roadway verification type according to the verification requirements. Preferably, the rule selection module is also used to select the roadway turn type (to facilitate the conversion between azimuth and geometric calculation angle), and the roadway turn type includes left turn and right turn.
[0054] The parameter picking module is used to identify and pick the labeled values of multiple coordinate parameters of the two-dimensional tunnel from the construction plan and store them. Preferably, the parameter picking module is configured to identify and pick the labeled values of coordinate parameters of multiple two-dimensional tunnels in a single selection operation.
[0055] The coordinate verification module determines the target coordinate parameters to be verified based on the selected roadway verification type and the quadrant in which the two-dimensional roadway is located, and calculates the calculated values of the target coordinate parameters using the labeled values of some of the coordinate parameters. Specifically, the coordinate verification module has a pre-built one-point-one-direction verification algorithm unit and a two-point verification algorithm unit. The coordinate verification module calls the one-point-one-direction verification algorithm unit or the two-point verification algorithm unit based on the selected roadway verification type.
[0056] The coordinate verification module automatically retrieves the roadway verification type and verifies the picked coordinate parameters through the built-in verification algorithm unit (which includes a one-point-one-direction verification algorithm unit and a two-point verification algorithm unit). The coordinate verification module can complete the verification of coordinate parameters of one or more two-dimensional roadways at one time.
[0057] The data export module is used to output a comparison result between the calculated values and the labeled values of the target coordinate parameters. Furthermore, the data export module supports displaying the comparison result in a highlighted format on the CAD interface and generating a spreadsheet or text file.
[0058] In another aspect, the present invention also provides a storage medium storing a program that can be read and written, wherein the program, when executed, implements the two-dimensional tunnel coordinate verification method as described above.
[0059] As configured above, this invention integrates a coordinate verification system into a CAD platform, avoiding secondary transfer of coordinate parameters and achieving "one-stop" verification within the CAD platform. The verification system directly obtains coordinate parameters from the construction plan through a parameter acquisition module. It can acquire the coordinate parameters of one or more two-dimensional tunnels and automatically complete the verification with the built-in verification algorithm unit. Data transcription is completed without manual intervention throughout the process, and the coordinate parameters of multiple two-dimensional tunnels can be verified at once, improving the efficiency of coordinate verification. Simultaneously, it fundamentally eliminates the error risks caused by "secondary transfer," ensuring the authenticity and reliability of the coordinate parameter source and improving the accuracy of the verification results. Furthermore, designers using this verification system are completely free from dependence on other tools, achieving deep integration of the two-dimensional tunnel coordinate verification process with the CAD drawing process, improving overall design efficiency and reducing the workload of designers. This invention supports the custom selection of roadway verification types through a rule selection module, which can be adapted to different roadway design scenarios. It has strong scenario adaptability and practicality, and is easier to promote and apply in the field of roadway design in mines, tunnels and other fields. Compared with general verification tools, this invention has higher technical specificity and market application value.
[0060] It should be noted that the two-dimensional tunnel coordinate verification method and the two-dimensional tunnel coordinate verification system belong to the same inventive concept and have the same or corresponding specific technical features. Therefore, the two-dimensional tunnel coordinate verification method also has the technical effects of the two-dimensional tunnel coordinate verification system, which will not be repeated here.
[0061] In the description of this invention, the following are not considered as limitations on this invention: the programming language of the drawing system, the addition / reduction of the system's constituent modules and the functions of each module, changes in the system's operating flow, changes in the types and quantities of parameters in the parameter input interface, changes in the types of roadway angles, verification types, types of check algorithms, file output types, coordinate parameter types, coordinate parameter storage locations, and changes in the system's numerical units.
[0062] This invention utilizes computer programming technology, based on a CAD platform, and employs C++ language to write the program code, ultimately creating a coordinate verification system that can be loaded onto the CAD platform. The 2D tunnel coordinate verification system integrates rule selection, coordinate picking, coordinate verification, and data export functions. Through a built-in verification algorithm unit, it selectively verifies the coordinate parameters of the 2D tunnel picked by the designer. The selection of coordinate parameters is based on the tunnel verification type chosen by the designer. Verification involves comparing the calculated values of the azimuth angle or coordinate endpoint with the labeled values. The comparison process and results are displayed on the verification system interface (CAD interface). Designers can also choose to output the verification results in Excel and Txt file formats, ultimately completing the verification of the coordinate parameters of the 2D tunnel.
[0063] In the description of this invention, designers use a verification system to directly obtain parameters from the construction plan through a parameter acquisition module. One or more two-dimensional tunnel coordinate parameters can be acquired, and the system's built-in verification algorithm unit automatically completes the verification. The entire process requires no manual intervention to transcribe the data, and multiple two-dimensional tunnel coordinate parameters can be verified at once, improving the efficiency of coordinate verification. Simultaneously, it fundamentally eliminates the error risks associated with "secondary data transfer," ensuring the authenticity and reliability of the parameter source and improving the accuracy of the verification results. Furthermore, designers using this verification system are completely free from dependence on other tools, achieving deep integration of the two-dimensional tunnel coordinate verification process with the CAD drawing process, improving overall design efficiency and reducing the workload of designers.
[0064] The following is a specific implementation:
[0065] This embodiment takes a two-dimensional tunnel with starting coordinates (0, 0), length of 1000mm, azimuth of 60°, and ending coordinates (866, 500). The north direction on the construction plan is taken as the Y-axis direction in the rectangular coordinate system. The specific process for verifying the ending coordinates of the two-dimensional tunnel is as follows:
[0066] Step ①: Determine the quadrant of the rectangular coordinate system in which the two-dimensional tunnel is located as the first quadrant, select the tunnel turn type as right turn, and select the tunnel verification type as point-one-direction verification;
[0067] Step 2: Pick the coordinates of the starting point of the two-dimensional tunnel as (0, 0), the length as 1000mm, the azimuth as 60°, and the coordinates of the ending point as (866, 500).
[0068] Step 3: The verification system uses its built-in point-to-direction verification algorithm unit to calculate the coordinates of the two-dimensional tunnel end point (866, 500) based on the starting coordinates (0, 0), length of 1000mm, and azimuth of 60°. Then, it compares and analyzes the labeled values with the calculated values. Finally, the verification system determines that the labeled values are correct, and the verification is completed.
[0069] Step 4: The verification results are displayed in text on the verification system interface (which is also the CAD interface). The results can also be exported as Excel and Txt files, such as... Figure 1 Verification results in both Excel and Txt files.
[0070] It should be noted that references to "an embodiment," "an embodiment," "a specific embodiment," "some embodiments," etc., in the specification only indicate that the described embodiment may include a specific feature, structure, or characteristic. Furthermore, such phrases do not necessarily refer to the same embodiment. Additionally, when a specific feature, structure, or characteristic is described in conjunction with an embodiment, whether explicitly described or not, implementing such a feature, structure, or characteristic in conjunction with other embodiments is within the knowledge of those skilled in the art.
[0071] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and relevant parts can be referred to the method section.
[0072] It should also be noted that although the present invention has been disclosed above with reference to preferred embodiments, these embodiments are not intended to limit the present invention. For any person skilled in the art, many possible variations and modifications can be made to the technical solutions of the present invention based on the disclosed technical content, or equivalent embodiments can be modified accordingly, without departing from the scope of the present invention. Therefore, any simple modifications, equivalent changes, and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the present invention shall still fall within the scope of protection of the present invention.
[0073] It should also be understood that, unless otherwise specified or indicated, the terms “first,” “second,” “third,” etc., in the specification are used only to distinguish the various components, elements, and steps in the specification, and not to indicate the logical or sequential relationships between the various components, elements, and steps.
[0074] Furthermore, it should be recognized that the terminology described herein is used only to describe particular embodiments and is not intended to limit the scope of the invention. It must be noted that the singular forms “a” and “an” as used herein include plural bases unless the context clearly indicates otherwise. For example, a reference to “a step” or “an apparatus” means a reference to one or more steps or apparatuses, and may include secondary steps and secondary apparatuses. All conjunctions used should be understood in the broadest sense. Also, the word “or” should be understood to have the definition of logical “or” rather than logical “exclusive OR”, unless the context clearly indicates otherwise. Furthermore, implementation of the methods and / or devices in embodiments of the invention may include performing selected tasks manually, automatically, or in combination.
Claims
1. A method for verifying two-dimensional tunnel coordinates, characterized in that, include: Determine the quadrant of the Cartesian coordinate system in which the two-dimensional tunnel is located; Select the type of roadway verification; Identify and extract the labeled values of multiple coordinate parameters of the two-dimensional tunnel from the construction plan; Based on the selected tunnel verification type and the quadrant in which the two-dimensional tunnel is located, the target coordinate parameters that need to be verified are determined, and the calculated values of the target coordinate parameters are calculated using the labeled values of some of the coordinate parameters. Output the comparison results between the calculated values of the target coordinate parameters and the labeled values of the target coordinate parameters.
2. The two-dimensional tunnel coordinate verification method as described in claim 1, characterized in that, The coordinate parameters include the starting coordinates, length, azimuth, and ending coordinates of the two-dimensional tunnel.
3. The two-dimensional tunnel coordinate verification method as described in claim 2, characterized in that, Let the positive Y-axis of the rectangular coordinate system correspond to the due north direction in the construction plan, and let the azimuth angle θ be the angle from the due north direction rotated clockwise to the centerline of the two-dimensional tunnel. Then the relationship between the starting point coordinates (x1, y1), the length l, the azimuth angle θ, and the ending point coordinates (x2, y2) includes: When the two-dimensional tunnel is in the first quadrant of the rectangular coordinate system, x2=x1+lcos(|θ-90°|), y2=y1+lsin(|θ-90°|). When the two-dimensional tunnel is located in the second quadrant of the rectangular coordinate system, x2=x1-lcos(|θ-270°|), y2=y1+lsin(|θ-270°|). When the two-dimensional tunnel is located in the third quadrant of the rectangular coordinate system, x2=x1-lcos(|θ-270°|), y2=y1-lsin(|θ-270°|). When the two-dimensional tunnel is located in the fourth quadrant of the rectangular coordinate system, x2 = x1 + lcos(|θ-90°|), y2 = y1 - lsin(|θ-90°|).
4. The two-dimensional tunnel coordinate verification method as described in claim 3, characterized in that, Based on the aforementioned relationship, the tunnel verification types include one-point one-direction verification and two-point verification.
5. The two-dimensional tunnel coordinate verification method as described in claim 4, characterized in that, When the tunnel verification type is selected as one-point-one-direction verification, the endpoint coordinates are the target coordinate parameters. Based on the relationship, the calculated value of the endpoint coordinates is calculated using the marked values of the starting point coordinates, the length, and the azimuth angle. The marked value of the endpoint coordinates and the calculated value of the endpoint coordinates are then compared. When the tunnel verification type is selected as two-point verification, the azimuth angle is the target coordinate parameter. Based on the relationship, the calculated value of the azimuth angle is calculated using the marked values of the starting point coordinates, the length, and the endpoint coordinates. The calculated value of the azimuth angle is then compared with the marked value of the azimuth angle.
6. A two-dimensional tunnel coordinate verification system for implementing the method of any one of claims 1-5, characterized in that, The verification system is integrated into the CAD platform as a plug-in. The verification system includes: The rule selection module is used to determine the quadrant of the rectangular coordinate system in which the two-dimensional roadway is located and to select the roadway verification type; The parameter picking module is used to identify and pick up the labeled values of multiple coordinate parameters of the two-dimensional tunnel from the construction plan and store them. The coordinate verification module determines the target coordinate parameters to be verified based on the selected tunnel verification type and the quadrant in which the two-dimensional tunnel is located, and calculates the calculated value of the target coordinate parameters by using the labeled values of some of the coordinate parameters. The data export module is used to output the comparison results between the calculated values of the target coordinate parameters and the labeled values of the target coordinate parameters.
7. The two-dimensional tunnel coordinate verification system as described in claim 6, characterized in that, The data export module supports displaying the comparison results in a highlighted format on the CAD interface and generating a spreadsheet or text file.
8. The two-dimensional tunnel coordinate verification system as described in claim 6, characterized in that, The parameter picking module is configured to identify and pick the labeled values of coordinate parameters of multiple two-dimensional tunnels in a single selection operation.
9. The two-dimensional tunnel coordinate verification system as described in claim 6, characterized in that, The coordinate verification module is pre-set with a one-point-one-direction verification algorithm unit and a two-point verification algorithm unit. The coordinate verification module calls the one-point-one-direction verification algorithm unit or the two-point verification algorithm unit based on the selected roadway verification type.
10. A storage medium having a program stored thereon, characterized in that, When the program is executed, it implements the two-dimensional tunnel coordinate verification method as described in any one of claims 1-5.
Citation Information
Patent Citations
Universal coordinate interconversion method and system based on CAD (Computer Aided Design)
CN118363927A
Water conservancy project CAD drawing examination method and system based on ezdxf library
CN118965507A
Part quality detection plan generation method based on CAD drawing and storage medium
CN121256874A
Methods for extracting object data for 2d CAD from 3D CAD and vice versa
KR101530895B1