Automatic division of maps for geotechnical engineering investigation industry

By automatically constructing multi-segment lines and dividing drawings, it solves the cumbersome problem of manually splitting drawings in geotechnical engineering surveys, achieves fast and accurate segmentation and management of drawings, and improves work efficiency.

CN112948607BActive Publication Date: 2024-09-24BEIJING URBAN CONSTR EXPLORATION & SURVEYING DESIGN RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110130755.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-29
Publication Date
2024-09-24
Estimated Expiration
2041-01-29

AI Technical Summary

Technical Problem

In geotechnical engineering surveys, the traditional method requires manual splitting of large drawings, resulting in a heavy workload and high repeatability, making it difficult to quickly split drawings.

Method used

The automatic drawing dividing method is used to obtain drawings from the database, construct polylines connecting all drilled holes, divide the drawings and adjust the angles, and store them in order to realize automatic cutting and numbering of the drawings.

Benefits of technology

It achieves accurate and efficient segmentation of drawings, generates continuous images of reasonable size and moderate proportions, clearly displays the content of each part and reflects the connection relationship, making it easy to manage and present.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112948607B
    Figure CN112948607B
Patent Text Reader

Abstract

The present invention provides an automatic segmentation method for geotechnical engineering survey industry. First, a polyline is constructed on a drawing to connect all the boreholes in series. The polyline can reflect the distribution of the boreholes on the drawing. Then, the polyline is divided into multiple parts according to the length, number of segments and angle of the polyline. The long image is cut into multiple continuous images according to the cutting method and adjusted to the same angle, thereby completing the cutting of the long image. Through the above method, the long image in the drawing can be segmented accurately and efficiently, and continuous images with reasonable size and appropriate proportion can be quickly obtained. The segmented images can clearly show the content of each part on the drawing and accurately reflect the connection relationship between the independent parts, so as to facilitate the management and presentation of the long image in the project file.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of engineering investigation, and in particular relates to an automatic mapping method applied to the geotechnical engineering investigation industry. Background Art

[0002] Large-scale survey projects often need to split large drawings into A3, A4 and other sizes that are easy to carry. Therefore, the plan drawings in the survey work need to be split according to the actual drawing size and drawing ratio. The traditional splitting method is often manual splitting. For large-scale projects, the manual splitting workload is large, and each drawing needs to repeat the layout setting, page numbering and other tasks. Therefore, realizing fast splitting has become a technical problem that technical personnel in this field urgently need to solve. Summary of the invention

[0003] In order to solve the above technical problems, the present invention provides an automatic mapping method applied to the geotechnical engineering survey industry.

[0004] The specific technical solutions of the present invention are as follows:

[0005] The present invention provides an automatic mapping method applied to the geotechnical engineering survey industry, which specifically comprises the following steps:

[0006] S1: Obtain a drawing with pre-arranged drilling holes from a database, and construct a polyline connecting all drilling holes on the drawing, wherein the polyline includes a plurality of through lines connected in sequence.

[0007] S2: dividing the polyline into multiple parts;

[0008] S3: According to the division method, the drawing is cut into a plurality of continuous images along the polyline, the images are adjusted to the same angle, and the images are sequentially numbered and stored in a database in sequence.

[0009] Furthermore, the specific method of step S1 is as follows:

[0010] S1.1: Obtain the drawing with pre-arranged drilling holes from the database, connect adjacent drilling holes in sequence, and construct multiple connection lines;

[0011] S1.2: Fit all the connecting lines, construct at least two through lines connecting a plurality of the boreholes in series, and connect all the through lines in sequence to form a multi-segment line connecting all the boreholes.

[0012] Furthermore, in step S1.2, the specific method of constructing the through line is as follows:

[0013] S1.2.1: Calculate the slopes of adjacent connecting lines and compare them. When the difference between the slopes of the adjacent connecting lines is greater than a preset first threshold, set the intersection of the adjacent connecting lines as a dividing point, and continue to compare the two connecting lines with the adjacent connecting lines respectively; when the difference between the slopes is less than the first threshold, connect the adjacent connecting lines end to end to construct a new connecting line, calculate the slope of the new connecting line, and continue to compare it with the adjacent connecting lines;

[0014] S1.2.2: After all branch points are determined, adjacent branch points are connected in sequence to construct multiple through lines.

[0015] Furthermore, the method for constructing the through line further includes the following steps:

[0016] S1.2.3: Calculate the slopes of adjacent through-lines and compare them. When the difference in the slopes of adjacent through-lines is greater than a preset second threshold, set the intersection of the adjacent through-lines as a sub-graph point, and continue to compare the two through-lines with the adjacent through-lines respectively; when the difference in the slopes is less than the second threshold, connect the adjacent through-lines end to end to construct a new through-line, calculate the slope of the new through-line, and continue to compare it with the adjacent connecting lines;

[0017] S1.2.4: After all the sub-image points are determined, adjacent sub-image points are sequentially connected to construct the polyline.

[0018] Furthermore, the specific method of step S2 is as follows:

[0019] The length of the sub-graph is set according to the length of the multi-segment line, the number of segments of the through-line and the angles of adjacent through-lines, each through-line is divided into a number of line segments of the same length according to the length of the sub-graph, and there may be overlapping parts between the line segments at the connection points of adjacent through-lines; the two endpoints of the line segment are marked, and the position coordinates of the endpoints are recorded.

[0020] Furthermore, in step S2, the endpoint does not overlap with any of the boreholes.

[0021] Furthermore, the specific method of step S3 is as follows:

[0022] S3.1: superimposing the polyline and the drill hole on the same layer to form a long image;

[0023] S3.2: Draw a frame outside each line segment according to the length of the sub-image, cut the long image into multiple images with the intersection of the frame and the line segment as the cutting point, and adjust all the images to the same angle;

[0024] S3.3: All the images are numbered and copied in sequence to construct a plurality of continuous images, which are stored in the database in sequence.

[0025] Furthermore, the specific method of step S3.2 is as follows:

[0026] Traversing the lengths of all the through lines, projecting all the through lines on the same plane, and setting the starting point of the projection on the plane as the starting point of the drawing frame;

[0027] Move along the projection, move forward each iteration, occupy positions at the same length, and build a frame between two adjacent points;

[0028] A compass is placed in the upper right corner of each of the frames, and each of the frames is corrected to the same angle by the compass, and overlapping parts are ensured between adjacent frames through verification and adjustment.

[0029] Furthermore, step S3 also includes the following steps:

[0030] S3.4: Record the rotation angle of each image respectively, set the cutting point as the connection point, and store the connection point together with the image in the database.

[0031] Furthermore, step S3.2 also includes the following steps:

[0032] The through lines of the overlapping parts of adjacent frames are marked and copied and stored in the database.

[0033] The beneficial effects of the present invention are as follows: The present invention provides an automatic drawing division method applied to the geotechnical engineering survey industry. First, a polyline is constructed on the drawing to connect all the boreholes in series. The polyline can reflect the distribution of the boreholes on the drawing. Then, the polyline is divided into multiple parts according to the length, number of segments and angle of the polyline. The long image is cut into multiple continuous images according to the cutting method and adjusted to the same angle, thereby completing the cutting of the long image. Through the above method, the long image in the drawing can be segmented accurately and efficiently, and continuous images with reasonable size and appropriate proportion can be quickly obtained. The segmented images can clearly show the content of each part on the drawing and accurately reflect the connection relationship between the independent parts, thereby facilitating the management and presentation of the long image in the project file. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a flow chart of the automatic image segmentation method applied to the geotechnical engineering investigation industry described in the embodiment;

[0035] Figure 2It is a schematic diagram of adding a frame to a long image for segmentation in the automatic image segmentation method applied to the geotechnical engineering investigation industry described in the embodiment;

[0036] Figure 3 It is an enlarged schematic diagram of adding a frame to a long image for segmentation in the automatic image segmentation method applied to the geotechnical engineering investigation industry described in the embodiment;

[0037] Figure 4 The segmented image obtained in the automatic segmentation method applied to the geotechnical engineering investigation industry described in the embodiment;

[0038] Figure 5 This is an enlarged view of the segmented image obtained by the automatic segmentation method applied to the geotechnical engineering investigation industry described in the embodiment. DETAILED DESCRIPTION

[0039] The present invention will be further described in detail below in conjunction with the accompanying drawings and the following embodiments.

[0040] Example

[0041] like Figures 1 to 5 As shown, this embodiment provides an automatic image segmentation method for geotechnical engineering survey industry, which is a preparation for subsequent layout generation. When the target image is too long to achieve the ideal printing effect, it needs to be segmented and divided into multiple images for printing. The method includes the following steps:

[0042] S1: Obtain a drawing with pre-arranged drilling holes from a database, and construct a polyline connecting all the drilling holes on the drawing. The polyline includes multiple through lines connected in sequence.

[0043] When there are a large number of drill holes on the drawing, their distribution may not be a straight line. At this time, it is impossible to connect all the drill holes in series with a straight line. Therefore, it is necessary to construct a broken line (i.e., a polyline) according to the direction of the drill holes, so as to connect all the drill holes in series in the simplest way possible through several through lines that are connected in sequence but in different directions.

[0044] In some specific embodiments, the specific method of step S1 is as follows:

[0045] S1.1: Obtain the drawing with pre-arranged drilling holes from the database, connect adjacent drilling holes in sequence, and construct multiple connection lines;

[0046] S1.2: Fit all the connecting lines, construct at least two through lines connecting multiple boreholes in series, and connect all the through lines in sequence to form a multi-segment line connecting all the boreholes.

[0047] When constructing a polyline, most of the boreholes are distributed on both sides of the throughline. At this time, each throughline is equivalent to the regression line of all the boreholes in series. Therefore, the construction of each throughline is equivalent to performing a linear regression analysis on a part of the boreholes. However, when the position and number of scattered points used for linear analysis change, the throughline will also change accordingly. Therefore, for each throughline, the results of which boreholes are used for analysis are different. Therefore, how to group all the boreholes is the key step to generate a throughline that best reflects the characteristics of the borehole distribution.

[0048] On this basis, in some specific embodiments, the following method can be used to construct the through line in step S1.2:

[0049] S1.2.1: Calculate the slopes of adjacent connecting lines and compare them. When the difference between the slopes of adjacent connecting lines is greater than a preset first threshold, set the intersection of the adjacent connecting lines as a dividing point, and continue to compare the two connecting lines with the adjacent connecting lines; when the difference in slopes is less than the first threshold, connect the adjacent connecting lines end to end, construct a new connecting line, calculate the slope of the new connecting line, and continue to compare it with the adjacent connecting lines;

[0050] S1.2.2: After determining all branch points, connect adjacent branch points in sequence and construct multiple through lines.

[0051] Through the above method, it can be ensured that the drill holes connected in series with each through-line are most densely packed around the through-line, and the goodness of fit is maximum at this time.

[0052] In order to further reduce the number of through-lines, the method for constructing through-lines further includes the following steps:

[0053] S1.2.3: Calculate the slopes of adjacent through-lines and compare them. When the difference in the slopes of adjacent through-lines is greater than a preset second threshold, set the intersection of the adjacent through-lines as a sub-graph point, and continue to compare the two through-lines with the adjacent through-lines; when the difference in the slopes is less than the second threshold, connect the adjacent through-lines end to end to construct a new through-line, calculate the slope of the new through-line, and continue to compare it with the adjacent connecting lines;

[0054] S1.2.4: After determining all the sub-map points, connect the adjacent sub-map points in sequence and construct polylines.

[0055] Through the above method, the through lines can be further merged and simplified, so as to minimize the number of through lines while ensuring that the drill holes around the through lines are dense enough and the goodness of fit is large enough, so as to facilitate subsequent segmentation operations.

[0056] S2: Divide the polyline into multiple parts.

[0057] In specific implementation, the following methods can be used for segmentation:

[0058] The sub-graph length is set according to the length of the polyline, the number of segments of the through-line, and the angle between adjacent through-lines. Each through-line is divided into several line segments of the same length according to the sub-graph length, and there may be overlapping parts between the line segments at the connection of adjacent through-lines. The two endpoints of the line segment are marked, and the position coordinates of the endpoints are recorded.

[0059] When splitting the through-line, since the length of the through-line may not be evenly divisible by the length of the sub-graph, the middle part is processed first during splitting, and the excess part is left at both ends, so that the line segments at the connection of adjacent through-lines may overlap, which can also reserve sufficient splitting space for the connection of adjacent through-lines.

[0060] In addition, in order to facilitate the subsequent printing of sub-maps to clearly and completely present the drilling information, in the specific implementation, the selected endpoints should not overlap with any drilling holes.

[0061] S3: According to the division method, the drawing is cut into a plurality of continuous images along the polyline, the images are adjusted to the same angle, and the images are sequentially numbered and stored in the database in sequence.

[0062] When taking a screenshot, the internal line segment (through line) is used as the central axis. At this time, the captured image is expanded on both sides of the line segment as the axis, thereby ensuring that the drill holes on both sides of the line segment are fully captured and completely presented in the image.

[0063] In some specific embodiments, the specific method of step S3 is as follows:

[0064] S3.1: Overlay the polylines and drill holes on the same layer to form a long image.

[0065] To facilitate screenshots and printing, you should first merge the contents of different layers (polylines and drill holes) onto the same layer to form a complete long image. In this way, when taking screenshots later, you only need to capture the long image itself to display both the drill holes and polylines.

[0066] S3.2: Draw a frame outside each line segment according to the length of the sub-image, use the intersection of the frame and the line segment as the cutting point, cut the long image into multiple images, and adjust all the images to the same angle; the specific method is as follows:

[0067] Traverse the lengths of all through lines, create projections of all through lines on the same plane, and set the starting point of the projection on the plane as the starting point of the drawing frame;

[0068] Move along the projection, move forward each iteration, occupy positions at the same length, and build a frame between two adjacent points;

[0069] Place a compass in the upper right corner of each frame, use the compass to adjust each frame to the same angle, and ensure that there are overlapping parts between adjacent frames through verification and adjustment.

[0070] Since the long image itself is not a straight line, the angles of the captured images are bound to be different, so the images need to be rotated to a uniform angle for saving.

[0071] S3.3: All images are numbered and copied in sequence to construct multiple continuous images, which are stored in the database in sequence.

[0072] The screenshot process does not cut off the long image itself, but creates a separate copy of each part of the long image. Therefore, each image needs to be copied separately for subsequent printing operations.

[0073] On this basis, in order to facilitate the management and use of these segmented images, in specific implementation, step S3 also includes the following steps:

[0074] S3.4: Record the rotation angle of each image respectively, set the cutting point as the connection point, and store the connection point and the image together in the database.

[0075] In order to intuitively reflect the connection relationship and position relationship between the images, it is also necessary to store the rotation angle and connection point (ie, cutting point) of each image, so as to facilitate calling the above images in subsequent other operations.

[0076] In addition, during specific implementation, the through lines of the overlapping parts of adjacent frames need to be marked and copied and stored in a database.

[0077] By marking the overlapping parts, the overlapping mode of the two images at the connection of the adjacent through lines can be clearly displayed, so that the above images can be spliced ​​more accurately when it is necessary to display a part of the long image.

[0078] Through the above method, long drawings in drawings can be segmented accurately and efficiently, and continuous images with reasonable size and appropriate proportion can be quickly obtained. The segmented images can not only clearly show the content of each part on the drawing, but also accurately reflect the connection relationship between the independent parts, thereby facilitating the management and presentation of long drawings in project files.

[0079] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. An automatic mapping method used in geotechnical engineering survey industry, characterized in that: The steps include: S1: Obtaining a drawing with pre-arranged drilling holes from a database, and constructing a polyline connecting all drilling holes on the drawing, wherein the polyline includes a plurality of sequentially connected through lines; S2: dividing the polyline into multiple parts; S3: cutting the drawing into a plurality of continuous images along the polyline according to the division method, adjusting the images to the same angle, and sequentially numbering and storing them in a database; The specific method of step S2 is as follows: The sub-graph length is set according to the length of the multi-segment line, the number of segments of the through-line and the angles of adjacent through-lines, and each through-line is divided into a number of line segments of the same length according to the sub-graph length, and there may be overlapping parts between the line segments at the connection of adjacent through-lines; the two endpoints of the line segment are marked, and the position coordinates of the endpoints are recorded; in step S2, the endpoints do not overlap with any of the drill holes; The specific method of step S3 is as follows: S3.1: superimposing the polyline and the drill hole on the same layer to form a long image; S3.2: drawing a frame outside each line segment according to the length of the sub-image, cutting the long image into multiple images with the intersection of the frame and the line segment as the cutting point, and adjusting all the images to the same angle; S3.3: All the images are numbered and copied in sequence to construct a plurality of continuous images, which are stored in the database in sequence.

2. The automatic mapping method for geotechnical engineering survey industry according to claim 1, characterized in that: The specific method of step S1 is as follows: S1.1: Obtain the drawing with pre-arranged drilling holes from the database, connect adjacent drilling holes in sequence, and construct multiple connection lines; S1.2: Fit all the connecting lines, construct at least two through lines connecting a plurality of the boreholes in series, and connect all the through lines in sequence to form a multi-segment line connecting all the boreholes.

3. The automatic mapping method for geotechnical engineering survey industry according to claim 2, characterized in that: In step S1.2, the specific method of constructing the through line is as follows: S1.2.1: Calculate the slopes of adjacent connecting lines and compare them. When the difference between the slopes of the adjacent connecting lines is greater than a preset first threshold, set the intersection of the adjacent connecting lines as a dividing point, and continue to compare the two connecting lines with the adjacent connecting lines respectively; when the difference between the slopes is less than the first threshold, connect the adjacent connecting lines end to end to construct a new connecting line, calculate the slope of the new connecting line, and continue to compare it with the adjacent connecting lines; S1.2.2: After all branch points are determined, adjacent branch points are connected in sequence to construct multiple through lines.

4. The automatic mapping method for geotechnical engineering survey industry according to claim 3, characterized in that: The method for constructing the through line further comprises the following steps: S1.2.3: Calculate the slopes of adjacent through lines and compare them. When the difference in the slopes of adjacent through lines is greater than a preset second threshold, set the intersection of the adjacent through lines as a sub-graph point, and continue to compare the two through lines with the adjacent through lines respectively; when the difference in the slopes is less than the second threshold, connect the adjacent through lines end to end to construct a new through line, calculate the slope of the new through line, and continue to compare it with the adjacent connecting lines; S1.2.4: After determining all the sub-graph points, connect the adjacent sub-graph points in sequence to construct the multi-segment line.

5. The automatic mapping method for geotechnical engineering survey industry according to claim 1, characterized in that: The specific method of step S3.2 is as follows: Traversing the lengths of all the through lines, projecting all the through lines on the same plane, and setting the starting point of the projection on the plane as the starting point of the drawing frame; Move along the projection, move forward each iteration, occupy positions at the same length, and build a frame between two adjacent points; A compass is placed in the upper right corner of each of the frames, and each of the frames is corrected to the same angle by the compass, and overlapping parts are ensured between adjacent frames through verification and adjustment.

6. The automatic mapping method for geotechnical engineering survey industry according to claim 1, characterized in that: Step S3 also includes the following steps: S3.4: Record the rotation angle of each image respectively, set the cutting point as the connection point, and store the connection point together with the image in the database.

7. The automatic mapping method for geotechnical engineering survey industry according to claim 5, characterized in that: Step S3.2 also includes the following steps: The through lines of the overlapping parts of adjacent frames are marked and copied and stored in the database.