Point-line correction method, device and equipment based on engineering drawing, medium and product

CN122820879APending Publication Date: 2026-09-25POWERCHINA ZHONGNAN ENG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611272490.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-21
Publication Date
2026-09-25

AI Technical Summary

Technical Problem

例如:高程点数值与其所处两条相邻等高线高程关系矛盾;等高线局部高程属性/标注错误,导致与周边等高线等高距关系异常;

Benefits of technology

本申请提供了一种基于工程制图的点线校对方法、装置、设备、介质及产品,通过对地形图文件进行网格划分并建立基于等高线的网格字典,通过邻域网格获取邻域等高线,实现局部数据获取和快速邻域检索,降低了复杂度。根据射线对与邻域等高线、利用相邻等高线之间的关系判断是否存在点线不符情况,精准判断高程点与等高线之间是否存在逻辑冲突,提高了识别精度和效率,为地形图修正与精度提升提供了可靠依据。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122820879A_ABST
    Figure CN122820879A_ABST
Patent Text Reader

Abstract

The application discloses a point-line checking method and device based on engineering drawing, equipment, medium and product, and relates to the technical field of topographic map quality inspection. The method comprises the following steps: acquiring a topographic map file, and analyzing the topographic map file to obtain a set of elevation points; performing grid division on the topographic map file and establishing a grid dictionary based on contour lines; the grid dictionary is used for storing position information of different grids and contour line information passing through the grids; the set of elevation points is traversed, a ray pair is obtained by performing ray scanning on each elevation point, and a contour line passing through a neighborhood grid is searched as a neighborhood contour line according to the grid dictionary; whether a point-line inconsistency exists is judged according to the relationship between the ray pair and the neighborhood contour line, and the elevation point and the neighborhood contour line belonging to the point-line inconsistency are fed back. The application can improve the identification accuracy and processing efficiency of the "point-line inconsistency" of the elevation point and the contour line.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of topographic map quality inspection technology, and in particular to a point and line verification method, apparatus, equipment, medium and product based on engineering drawing. Background Technology

[0002] In the field of engineering drawing, especially in the large-scale mapping and adjustment stage of hydropower projects, topographic map results typically include: contour lines (primary curves / calculation curves or Southern CASS contour line layers), elevation points (block references / insertion points), and annotations and symbols (different drawing styles, such as Southern CASS standard style, company standard style, etc.).

[0003] Due to aerial surveying and mapping, symbolization, contour line editing, point elevation correction, and local re-measurement, quality issues such as "point-line discrepancies" often occur between elevation points and contour lines. For example, the elevation value of an elevation point may contradict the elevation relationship between it and two adjacent contour lines; or errors in the local elevation attributes / labeling of contour lines may lead to abnormal contour intervals with surrounding contour lines. In existing technologies, inspection reports or manual interactive prompts are often used, which can easily lead to misjudgments and low processing efficiency when dealing with large amounts of computation and terrain. Summary of the Invention

[0004] The purpose of this application is to provide a point-line calibration method, device, equipment, medium, and product based on engineering drawings, which can improve the accuracy and processing efficiency of identifying "point-line discrepancies" between elevation points and contour lines.

[0005] To achieve the above objectives, this application provides the following solution: Firstly, this application provides a point and line verification method based on engineering drawings, including: Obtain the topographic map file and parse the topographic map file to obtain the set of elevation points; The topographic map file is divided into grids, and a grid dictionary based on contour lines is established; the grid dictionary is used to store the location information of different grids and the contour line information passing through the grids; Traverse the set of elevation points. For each elevation point, perform a ray scan to obtain ray pairs based on the elevation point. Search for contour lines passing through the neighboring grid according to the grid dictionary as the neighboring contour lines. The ray pair includes a first ray and a second ray, which are two rays with opposite directions. Based on the relationship between the ray pair and the neighboring contour lines, it is determined whether there is a discrepancy between the point and the line, and the elevation point and the neighboring contour line that are in the case of a discrepancy are fed back.

[0006] Optionally, the step of determining whether there is a discrepancy between points and lines based on the relationship between the ray pair and the neighboring contour lines through adjacent contour lines includes: Traverse each pair of rays, using the elevation point as the center, search for the first set of intersection points between the neighborhood contour lines and the first ray within the preset scanning radius, and search for the second set of intersection points between the neighborhood contour lines and the second ray within the preset scanning radius; Extract the point closest to the elevation point from the first set of intersection points as the first target intersection point, extract the point closest to the elevation point from the second set of intersection points as the second target intersection point, and use the neighborhood contour lines where the first target intersection point and the neighborhood contour lines where the second target intersection point are located as target contour lines; Based on the intersection of the first target and the intersection of the second target, determine whether the elevation point and the target contour line are in a point-line mismatch situation.

[0007] Optionally, determining whether the elevation point and the target contour line are in a point-line mismatch based on the first target intersection point and the second target intersection point includes: Determine whether the intersection point of the first target and the intersection point of the second target satisfy the adjacent contour line relationship; If the adjacent contour line relationship is not satisfied, it is determined that the elevation point and the target contour line belong to the case of point-line mismatch. If the adjacent contour line relationship is satisfied, determine whether the first target intersection point and the second target intersection point satisfy the interval consistency criterion or the contour interval consistency criterion; if satisfied, determine that the elevation point and the target contour line belong to the case of point-line mismatch.

[0008] Optionally, determining whether the intersection point of the first target and the intersection point of the second target satisfy the relationship of adjacent contour lines includes: If the first target intersection point and the second target intersection point satisfy the following formula (1), then it is determined that the adjacent contour line relationship is satisfied; otherwise, it is determined that the adjacent contour line relationship is not satisfied; the formula (1) is: (1) in, H For contour intervals, The elevation value of the first target intersection point. The elevation value of the intersection point of the second target. This is the preset allowable elevation tolerance; The step of determining whether the first target intersection point and the second target intersection point satisfy the interval consistency criterion includes: If the first target intersection point and the second target intersection point satisfy the following formula (2), then it is determined that the interval consistency criterion is satisfied; otherwise, it is determined that the interval consistency criterion is not satisfied; the formula (2) is: (2) in, The elevation value of the elevation point; The step of determining whether the first target intersection point and the second target intersection point satisfy the contour interval consistency criterion includes: If the first target intersection point and the second target intersection point satisfy either formula (3) or formula (4), then the contour interval consistency criterion is satisfied; otherwise, the contour interval consistency criterion is not satisfied. Formulas (3) and (4) are: (3); ;(4)

[0009] Optionally, the step of obtaining ray pairs by ray scanning based on the elevation point includes: Using the elevation point as the vertex, construct the ray pair based on a preset angle; The first ray is expressed as: (5) The second ray is expressed as: (6) in, Let P be the first ray and P be the elevation point. To preset the scan radius, The direction of the first ray. For the second ray, The direction of the second ray. The preset angle is obtained based on a preset angle step size. (7) in, The preset angle step size, k It is a constant.

[0010] Optionally, the feedback of elevation points and neighboring contour lines belonging to the point-line mismatch situation includes: After confirming the discrepancy between the points and the lines, the elevation points are designated as elevation points to be reviewed, and the target contour lines are designated as contour lines to be reviewed. The users are then provided with feedback on the elevation points and contour lines to be reviewed.

[0011] Secondly, this application provides a point and line correction device based on engineering drawings, comprising: The parsing module is used to obtain topographic map files and parse the topographic map files to obtain a set of elevation points; The data processing module is used to divide the topographic map file into grids and establish a grid dictionary based on contour lines; the grid dictionary is used to store the location information of different grids and the contour line information passing through the grids; Traverse the set of elevation points, and for each elevation point, perform a ray scan to obtain ray pairs based on the elevation point. Search for contour lines passing through the neighboring grid according to the grid dictionary as neighboring contour lines. The ray pair includes a first ray and a second ray, which are two rays with opposite directions. The judgment module is used to determine whether there is a point-line discrepancy based on the relationship between the ray pair and the neighboring contour lines through adjacent contour lines, and to provide feedback on the elevation points and neighboring contour lines that are in the case of point-line discrepancy.

[0012] Thirdly, this application provides a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the point and line alignment method based on engineering drawings as described above.

[0013] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the point and line alignment method based on engineering drawings described above.

[0014] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the point and line alignment method based on engineering drawings described above.

[0015] According to the specific embodiments provided in this application, the following technical effects are disclosed: This application provides a point and line correction method, apparatus, device, medium, and product based on engineering drawings. By dividing the topographic map file into a grid and establishing a contour-based grid dictionary, it obtains neighboring contour lines through neighboring grids, achieving local data acquisition and rapid neighborhood retrieval, thus reducing complexity. Based on ray pairs and neighboring contour lines, and utilizing the relationships between adjacent contour lines, it determines whether there are discrepancies between points and lines, accurately identifying logical conflicts between elevation points and contour lines, improving recognition accuracy and efficiency, and providing a reliable basis for topographic map correction and accuracy enhancement. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 A flowchart illustrating a point and line verification method based on engineering drawings, provided as an embodiment of this application; Figure 2 This is a schematic diagram of the neighborhood contour lines obtained by searching with a preset neighborhood size of 3×3 according to an embodiment of this application; Figure 3 for Figure 1 A detailed flowchart of step 104; Figure 4 This is a schematic diagram of a ray pair obtained according to an embodiment of this application, and the first target intersection point and the second target intersection point corresponding to the ray pair; Figure 5 A result display diagram provided for an embodiment of this application; Figure 6 A schematic diagram of the functional modules of a dot-line calibration device based on engineering drawings provided in an embodiment of this application; Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0018] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0019] It should be noted that the terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein.

[0020] It should be noted that "at the time of..." in the embodiments of this application can be either at the instant when a certain situation occurs, or for a period of time after the occurrence of a certain situation. The embodiments of this application do not make specific limitations on this.

[0021] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0022] In one exemplary embodiment, such as Figure 1 As shown, a point and line verification method based on engineering drawings is provided. This method is executed by a computer device, specifically by a terminal or server alone, or by both a terminal and a server. In this embodiment, it includes the following steps 101 to 104. Wherein: Step 101: Obtain the topographic map file and parse the topographic map file to obtain the set of elevation points; Specifically, the acquired topographic map file is either a DXF file or a DWG file. If the acquired topographic map file is a DXF file, file parsing is performed directly. Furthermore, if the obtained file is a DWG file, you can directly perform file parsing according to the logic of this step, or you can convert the DWG file to a DXF file before performing file parsing; Furthermore, parsing the topographic map file can also obtain the topographic map file size, mapping style, and scale information. Based on the scale information, the contour interval and elevation tolerance can be obtained, and the contour interval and elevation tolerance are used for the judgment in step 104.

[0023] Specifically, the mapping styles include the company's standard style and the Southern CASS standard style; for different styles, the corresponding elevation point layer and contour line layer can be identified by traversing the names of different layers; and the elevation point set can be obtained by parsing all elevation point layers to extract elevation points.

[0024] Furthermore, the elevation points may exist in the insertion block "Insert.Z" of the elevation point layer, or they may exist in the block attributes. The elevation point coordinates and elevation values ​​are read from them. The elevation point set is used to store the elevation point identifier, elevation point coordinates, and elevation value of each elevation point.

[0025] The company's standard style follows national standard drawings and is an officially unified specification. Layer names directly use professional terms from the specification. For example, contour lines are named as primary curves or measurement curves, such as "A01 Surveying - Primary Curve" and "A01 Surveying - Measurement Curve". Elevation point layers are named like "A01 Surveying - Elevation Point". Elevation points can also use other layer names by customizing the parameter "GcdLayername".

[0026] The Southern CASS standard style is the default setting for Southern Surveying Software (CASS, Computer Aided Surveying System). This is a common industry practice, using pinyin abbreviations as layer names, which is concise and easy to call quickly on the CAD platform. For example, contour lines are named "dgx", and elevation point layers are named "gcd". Elevation points can also use other layer names by customizing the parameter "GcdLayername".

[0027] Step 102: Grid the topographic map file and establish a grid dictionary based on contour lines; the grid dictionary is used to store the location information of different grids and the contour line information passing through the grids; Specifically, contour lines are extracted by parsing all contour lines to obtain a contour line set. The contour line layers in the topographic map file are then used as the division area. The division area is divided into multiple rectangular grids according to the preset side length, and grid identifiers are generated to establish a grid dictionary. The grid dictionary is used to store the grid information corresponding to all grid identifiers. The grid information includes grid location information and contour line information passing through the grid.

[0028] As one embodiment, the grid identifier can be set to : (8) in,( x , y () represents the coordinates of the bottom left corner of the grid. For grid identification, ( x min , y min ) represents the minimum coordinates within the divided region, and G is the grid length.

[0029] Furthermore, grid location information is generally the boundary information of the network. If there are intersections between the four edges of a grid and a contour line, it can be determined that the contour line passes through the grid.

[0030] Step 103: Traverse the set of elevation points. For each elevation point, perform a ray scan to obtain ray pairs based on the elevation point. Search the grid dictionary for contour lines that pass through the neighboring grid as the neighboring contour lines. The ray pair includes a first ray and a second ray, which are two rays with opposite directions. Specifically, the grid dictionary is searched based on the location information of the elevation point, and the grid where the elevation point is located is taken as the target grid; the neighboring grid of the target grid is obtained based on the preset neighborhood size, and the contour lines passing through the neighboring grid are extracted as the neighborhood contour lines.

[0031] As one embodiment, the preset neighborhood size can be set to 3×3 or 5×5, such as... Figure 2 This is a schematic diagram of the neighborhood contour lines obtained by searching with a preset neighborhood size of 3×3 according to an embodiment of this application.

[0032] Step 104: Determine whether there is a discrepancy between the ray pair and the adjacent contour lines based on the relationship between the adjacent contour lines, and provide feedback on the elevation points and adjacent contour lines where the discrepancy exists.

[0033] Specifically, each ray pair is traversed, and adjacent contour lines are determined by the intersection of the ray with the neighboring contour lines. Point-line judgment is then made based on the relationship between adjacent contour lines.

[0034] By implementing steps 101 to 104 above, the topographic map file is gridded and a contour-based grid dictionary is established. Neighboring contour lines are obtained through neighboring grids, enabling local data acquisition and rapid neighborhood retrieval, thus reducing complexity. Based on ray pairs and neighboring contour lines, and utilizing the relationships between adjacent contour lines, discrepancies between points and lines are determined, accurately identifying logical conflicts between elevation points and contour lines. This improves recognition accuracy and efficiency, providing a reliable basis for topographic map correction and accuracy enhancement.

[0035] In another exemplary embodiment of this application, the ray pair in step 103 can be constructed in the following way: Construct ray pairs based on preset angles, using elevation points as vertices; The first ray is expressed as: (5) The second ray is expressed as: (6) in, Here, P represents the first ray, P is the elevation point, and R is the preset scanning radius, which can also represent the display length of the ray. The direction of the first ray. For the second ray, The direction of the second ray. This is a preset angle, which is obtained based on a preset angle step size. (7) in, To preset the angular step size, k It is a constant.

[0036] Furthermore, the preset angle step size is less than 90°, and can be set to 90°, 45°, or 60°.

[0037] In another exemplary embodiment of this application, in order to determine the discrepancy between a ray pair and a neighboring contour line, and by utilizing the relationship between adjacent contour lines, such as... Figure 3 As shown, step 104 above includes: Step 301: Traverse each pair of rays, using the elevation point as the center, search for the first intersection point set of the neighborhood contour line and the first ray within the preset scanning radius, and search for the second intersection point set of the neighborhood contour line and the second ray within the preset scanning radius; As one embodiment, the preset scanning radius is set to 5m; Step 302: Extract the point closest to the elevation point from the first set of intersection points as the first target intersection point; extract the point closest to the elevation point from the second set of intersection points as the second target intersection point; and use the contour lines of the neighborhood where the first target intersection point is located and the contour lines of the neighborhood where the second target intersection point is located as the target contour lines. like Figure 4 The diagram shows a ray pair obtained according to an embodiment of this application, and a schematic diagram of the first target intersection point and the second target intersection point corresponding to the ray pair.

[0038] Specifically, the distance between the intersection points in the first intersection point set and the second intersection point set and the elevation point is obtained through the following formula (9). The point with the smallest distance in the first intersection point set is taken as the first target intersection point, and the point with the smallest distance in the second intersection point set is taken as the second target intersection point. Formula (9) is: (9) Where d is the distance between the two points, ( x 1, y 1) is the intersection point of the first intersection point set / the second intersection point set, ( x p , y p () is the elevation point.

[0039] Step 303: Determine whether the intersection point of the first target and the intersection point of the second target satisfy the adjacent contour line relationship; if they do not satisfy the adjacent contour line relationship, proceed to step 304; if they satisfy the adjacent contour line relationship, proceed to step 305. Specifically, if the intersection of the first target and the intersection of the second target satisfy the following formula (1), then the adjacent contour line relationship is determined to be satisfied; otherwise, the adjacent contour line relationship is determined not to be satisfied. Formula (1) is: (1) in, H For contour intervals, The elevation value of the first target intersection point. The elevation value of the intersection point of the second target. This is the preset allowable elevation tolerance; Specifically, if formula (1) is satisfied, it is considered that the point is indeed sandwiched between two adjacent contour lines, and it is further determined whether the elevation of the elevation point satisfies a reasonable relationship. If not, it is determined that the elevation point and the target contour line belong to the case of point-line mismatch.

[0040] Step 304: Determine if the elevation point and the target contour line are in a point-line mismatch situation, then designate the elevation point as the elevation point to be reviewed and the target contour line as the contour line to be reviewed. Step 305: Determine whether the intersection of the first target and the intersection of the second target satisfy the interval consistency criterion or the contour interval consistency criterion; if satisfied, determine that the elevation point and the target contour line belong to the case of point-line mismatch, and designate the elevation point as the elevation point to be reviewed and the target contour line as the contour line to be reviewed. Specifically, if the intersection of the first target and the intersection of the second target satisfy the following formula (2), then the interval consistency criterion is satisfied; otherwise, the interval consistency criterion is not satisfied; formula (2) is: (2) in, The elevation value of the elevation point; For the preset allowable elevation tolerance, generally... Set it to 0.1m.

[0041] Specifically, if the intersection of the first target and the intersection of the second target satisfy either formula (3) or formula (4), then the contour interval consistency criterion is satisfied; otherwise, the contour interval consistency criterion is not satisfied. Formulas (3) and (4) are: (3) ;(4)

[0042] Specifically, H is the contour interval, which is the distance between two adjacent contour lines and is obtained based on the scale.

[0043] As one example, if the scale is 1:500, the corresponding contour interval H is set to 0.5m; if the scale is 1:1000, the contour interval H is set to 1m; if the scale is 1:2000, the contour interval H is set to 2m; if the scale is 1:5000, the contour interval H is set to 5m; and if the scale is 1:10000, the contour interval H is set to 10m.

[0044] Specifically, formulas (2), (3) and (4) are used to detect whether the elevation difference between the nearest contour lines on both sides of an elevation point satisfies the relationship between adjacent contour lines. If the relationship between adjacent contour lines is not satisfied, it is determined that the point and line do not match.

[0045] Step 306: Traverse all elevation points. For each elevation point, traverse all ray pairs and repeat steps 301 to 305 above. Feedback all elevation points and contour lines to be reviewed to the user.

[0046] Specifically, a visual feedback method is used to provide users with more intuitive feedback on the elevation points and contour lines to be reviewed.

[0047] Furthermore, the colors of the elevation points and / or contour lines to be reviewed can be changed and displayed on the original topographic map file, prompting manual review; at the same time, the preset scanning radius of the elevation points to be reviewed can be marked, and the output can be saved as DXF format (or converted to a version compatible with AutoCAD 2004 / 2007, etc.).

[0048] As one example, the elevation points to be reviewed are circled by drawing a circle radius and displayed on the engineering drawing. Logs are generated based on the contour lines to be reviewed. The corresponding contour lines to be reviewed are displayed according to the user's instructions on the elevation points to be reviewed (for example, changing the color of the corresponding contour lines to be reviewed, or displaying the corresponding information of the corresponding contour lines to be reviewed through a pop-up window).

[0049] Furthermore, in this application, the entire set of elevation points can be processed in parallel by partitioning: the partition size can be automatically calculated based on the number of points and the number of CPU cores, and the upper limit is limited (e.g., ≤500); the parallelism is set to approximately 0.9 × the number of CPU cores; and updates are performed every 1% of the progress to avoid lag.

[0050] Example 1: The input file is a DXF file containing a topographic map of a pumped storage project site / roads. After parsing the file, its scale is 1:500. Based on this scale, contour intervals can be obtained. Pre-screening scan angle step size (60° / 45° can also be selected to improve robustness), scan radius (Also, elevation tolerance can be entered via the interface); ; grid side length The radius of the annotation circle is set to 5m (wherein, the annotation radius is used to mark elevation points that do not match the line); the parallelism is approximately 0.9 × the number of CPU cores. The elevation points and contour lines to be reviewed are obtained according to the method of this embodiment, and displayed in the corresponding DXF file. The display result is as follows: Figure 5 As shown, the elevation lines circled in green represent the elevation points to be reviewed obtained according to the method of this application. Each elevation point to be reviewed includes a corresponding log to record the information of the elevation line to be reviewed.

[0051] This application provides a point and line verification method based on engineering drawings, which includes the following technical effects: Using a grid index reduces the need for intersection point calculations to obtain candidate sets, and neighborhood contour lines are obtained through a neighborhood grid, enabling local data acquisition and fast neighborhood retrieval, thus reducing complexity. Parallel partitioning fully utilizes multi-core CPUs, making it more efficient for processing large amounts of data, suitable for large-scale files in hydropower projects (capable of handling tens of thousands of elevation points and massive amounts of contour lines). By using the method of taking the nearest intersection point of opposite rays in pairs and the contour interval constraint, the spatial relationship between elevation points and surrounding contour lines is quickly established through ray pairs. This enables the directional capture of the local topographic geometry of each elevation point, enhancing the robustness of topographic feature extraction. It is more stable than unidirectional search, especially near valleys / saddles, and has a lower false alarm rate. Parameters such as contour interval, preset scan radius, preset angle step size, and allowable elevation tolerance can be adaptively configured according to the scale to adapt to different project standards and terrain features, ensuring the stability and accuracy of the method.

[0052] By using visual feedback, error points and associated contour lines (elevation points to be reviewed and contour lines to be reviewed, including the preset scanning radius of the elevation points to be reviewed) can be displayed on the original file, providing a more intuitive view for users, reducing data conversion errors and process breaks, and helping users quickly trace the source so as to complete the identification of responsibilities and rapid revision.

[0053] This application also provides an application scenario in which the above-mentioned point-line verification method based on engineering drawings is applied. Specifically, the point-line verification method based on engineering drawings provided in this embodiment can be applied to the large-scale mapping and adjustment stage of hydropower projects (pumped storage, conventional hydropower stations, material yards / spoil yards, construction access roads, plant roads, etc.). By using the point-line verification method based on engineering drawings provided in this embodiment, discrepancies between elevation points and contour lines on the engineering drawings are detected to identify logically inconsistent elevation points and their corresponding contour lines.

[0054] Based on the same inventive concept, this application also provides an engineering drawing-based dot-line correction device for implementing the above-described dot-line correction method based on engineering drawings. The solution provided by this device is similar to the solution described in the above method. Therefore, the specific limitations of one or more engineering drawing-based dot-line correction device embodiments provided below can be found in the limitations of the engineering drawing-based dot-line correction method described above, and will not be repeated here.

[0055] In one exemplary embodiment, such as Figure 6 As shown, a point and line verification device based on engineering drawings is provided, comprising: The parsing module is used to obtain topographic map files and parse the topographic map files to obtain a set of elevation points; The data processing module is used to divide the topographic map file into grids and create a grid dictionary based on contour lines; the grid dictionary is used to store the location information of different grids and the contour line information passing through the grids; Traverse the set of elevation points. For each elevation point, perform a ray scan to obtain ray pairs based on the elevation point. Search the grid dictionary for contour lines that pass through the neighboring grid as the neighboring contour lines. The ray pair includes a first ray and a second ray, which are two rays with opposite directions. The judgment module is used to determine whether there is a point-line mismatch based on the relationship between the ray pair and the neighboring contour lines through adjacent contour lines, and to provide feedback on the elevation points and neighboring contour lines where point-line mismatch occurs.

[0056] As an optional implementation, the judgment module is specifically used for: Traverse each pair of rays, using the elevation point as the center, search for the first set of intersection points between the contour lines in the neighborhood and the first ray within the preset scanning radius, and search for the second set of intersection points between the contour lines in the neighborhood and the second ray within the preset scanning radius; Extract the point closest to the elevation point from the first set of intersection points as the first target intersection point, extract the point closest to the elevation point from the second set of intersection points as the second target intersection point, and use the contour lines of the neighborhood where the first target intersection point and the neighborhood where the second target intersection point are located as target contour lines; Based on the intersection of the first and second targets, determine whether the elevation point and the target contour line are in a point-line mismatch situation.

[0057] As an optional implementation, the judgment module is further used for: Determine whether the intersection point of the first target and the intersection point of the second target satisfy the adjacent contour line relationship; If the adjacent contour line relationship is not satisfied, the elevation point and the target contour line are determined to be a point-line mismatch. If the adjacent contour lines are satisfied, determine whether the intersection of the first target and the intersection of the second target satisfy the interval consistency criterion or the contour interval consistency criterion; if satisfied, determine that the elevation point and the target contour line belong to the case of point-line mismatch.

[0058] As an optional implementation, the judgment module is specifically used for: If the intersection of the first target and the intersection of the second target satisfy the following formula (1), then the adjacent contour line relationship is determined to be satisfied; otherwise, the adjacent contour line relationship is determined not to be satisfied. Formula (1) is: (1) in, H For contour intervals, The elevation value of the first target intersection point. The elevation value of the intersection point of the second target. This is the preset allowable elevation tolerance; As an optional implementation, the judgment module is specifically used for: If the intersection of the first target and the intersection of the second target satisfy the following formula (2), then the interval consistency criterion is satisfied; otherwise, the interval consistency criterion is not satisfied; formula (2) is: (2) in, The elevation value of the elevation point; As an optional implementation, the judgment module is further used for: If the intersection of the first target and the intersection of the second target satisfy either formula (3) or formula (4), then the contour interval consistency criterion is satisfied; otherwise, the contour interval consistency criterion is not satisfied. Formulas (3) and (4) are: (3); ;(4)

[0059] As an optional implementation, the data processing module is specifically used for: Construct ray pairs based on preset angles, using elevation points as vertices; The first ray is expressed as: (5) The second ray is expressed as: (6) in, Let P be the first ray and P be the elevation point. To preset the scan radius, The direction of the first ray. For the second ray, The direction of the second ray. This is a preset angle, which is obtained based on a preset angle step size. (7) in, To preset the angular step size, k It is a constant.

[0060] As an optional implementation, the judgment module is further used for: After confirming the discrepancy between points and lines, the elevation points are designated as elevation points to be reviewed, and the target contour lines are designated as contour lines to be reviewed. The users are then provided with feedback on the elevation points and contour lines to be reviewed.

[0061] In one exemplary embodiment, a computer device is provided, which may be a server or a terminal, and its internal structure diagram may be as follows. Figure 7 As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network. When executed by the processor, the computer program implements a point-line alignment method based on engineering drawings.

[0062] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0063] In one exemplary embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0064] In one exemplary embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.

[0065] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.

[0066] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0067] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).

[0068] The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0069] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0070] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. In summary, the content of this specification should not be construed as a limitation of this application.

Claims

1. A point and line verification method based on engineering drawings, characterized in that, The point and line verification method based on engineering drawings includes: Obtain the topographic map file and parse the topographic map file to obtain the set of elevation points; The topographic map file is divided into grids, and a grid dictionary based on contour lines is established; the grid dictionary is used to store the location information of different grids and the contour line information passing through the grids; Traverse the set of elevation points, and for each elevation point, perform a ray scan to obtain ray pairs based on the elevation point. Search for contour lines passing through the neighboring grid according to the grid dictionary as neighboring contour lines. The ray pair includes a first ray and a second ray, which are two rays with opposite directions. Based on the relationship between the ray pair and the neighboring contour lines through adjacent contour lines, it is determined whether there is a point-line discrepancy, and the elevation point and the neighboring contour line that belong to the point-line discrepancy are fed back.

2. The point and line verification method based on engineering drawings according to claim 1, characterized in that, The step of determining whether there is a discrepancy between points and lines based on the relationship between the ray pair and the neighboring contour lines through adjacent contour lines includes: Traverse each pair of rays, using the elevation point as the center, search for the first set of intersection points between the neighborhood contour lines and the first ray within the preset scanning radius, and search for the second set of intersection points between the neighborhood contour lines and the second ray within the preset scanning radius; Extract the point closest to the elevation point from the first set of intersection points as the first target intersection point, extract the point closest to the elevation point from the second set of intersection points as the second target intersection point, and use the neighborhood contour lines where the first target intersection point and the neighborhood contour lines where the second target intersection point are located as target contour lines; Based on the intersection of the first target and the intersection of the second target, determine whether the elevation point and the target contour line are in a point-line mismatch situation.

3. The point and line verification method based on engineering drawings according to claim 2, characterized in that, The step of determining whether the elevation point and the target contour line do not match based on the first target intersection point and the second target intersection point includes: Determine whether the intersection point of the first target and the intersection point of the second target satisfy the adjacent contour line relationship; If the adjacent contour line relationship is not satisfied, it is determined that the elevation point and the target contour line belong to the case of point-line mismatch. If the adjacent contour line relationship is satisfied, determine whether the first target intersection point and the second target intersection point satisfy the interval consistency criterion or the contour interval consistency criterion; if satisfied, determine that the elevation point and the target contour line belong to the case of point-line mismatch.

4. The point and line verification method based on engineering drawings according to claim 3, characterized in that, The step of determining whether the first target intersection point and the second target intersection point satisfy the adjacent contour line relationship includes: If the first target intersection point and the second target intersection point satisfy the following formula (1), then it is determined that the adjacent contour line relationship is satisfied; otherwise, it is determined that the adjacent contour line relationship is not satisfied; the formula (1) is: ;(1) in, H For contour intervals, The elevation value of the first target intersection point. The elevation value of the intersection point of the second target. This is the preset allowable elevation tolerance; The step of determining whether the first target intersection point and the second target intersection point satisfy the interval consistency criterion includes: If the first target intersection point and the second target intersection point satisfy the following formula (2), then it is determined that the interval consistency criterion is satisfied; otherwise, it is determined that the interval consistency criterion is not satisfied; the formula (2) is: ;(2) in, The elevation value of the elevation point; The step of determining whether the first target intersection point and the second target intersection point satisfy the contour interval consistency criterion includes: If the first target intersection point and the second target intersection point satisfy either formula (3) or formula (4), then the contour interval consistency criterion is satisfied; otherwise, the contour interval consistency criterion is not satisfied. Formulas (3) and (4) are: ;(3) ;(4)。 5. The point and line verification method based on engineering drawings according to claim 1, characterized in that, The step of obtaining ray pairs by ray scanning based on the elevation point includes: Using the elevation point as the vertex, construct the ray pair based on a preset angle; The first ray is expressed as: ;(5) The second ray is expressed as: ;(6) in, Let P be the first ray, and P be the elevation point. To preset the scan radius, The direction of the first ray. The second ray, The direction of the second ray. The preset angle is obtained based on a preset angle step size. ;(7) in, The preset angle step size, k It is a constant.

6. The point and line verification method based on engineering drawings according to claim 2, characterized in that, The feedback includes the elevation points and the neighboring contour lines that fall under the point-line mismatch situation, including: After confirming the discrepancy between the points and the lines, the elevation points are designated as elevation points to be reviewed, and the target contour lines are designated as contour lines to be reviewed. The users are then provided with feedback on the elevation points and contour lines to be reviewed.

7. A point and line calibration device based on engineering drawings, characterized in that, The point and line correction device based on engineering drawings includes: The parsing module is used to obtain topographic map files and parse the topographic map files to obtain a set of elevation points; The data processing module is used to divide the topographic map file into grids and establish a grid dictionary based on contour lines; the grid dictionary is used to store the location information of different grids and the contour line information passing through the grids; Traverse the set of elevation points, and for each elevation point, perform a ray scan to obtain ray pairs based on the elevation point. Search for contour lines passing through the neighboring grid according to the grid dictionary as neighboring contour lines. The ray pair includes a first ray and a second ray, which are two rays with opposite directions. The judgment module is used to determine whether there is a point-line discrepancy based on the relationship between the ray pair and the neighboring contour lines through adjacent contour lines, and to provide feedback on the elevation point and the neighboring contour line that belong to the point-line discrepancy situation.

8. A computer device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the computer program to implement the steps of the point and line alignment method based on engineering drawings as described in any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the steps of the point and line verification method based on engineering drawings as described in any one of claims 1-6.

10. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the steps of the point and line verification method based on engineering drawings as described in any one of claims 1-6.