CN108536883B - Automatic drawing method for engineering survey map with optimized label arrangement - Google Patents

Automatic drawing method for engineering survey map with optimized label arrangement Download PDF

Info

Publication number
CN108536883B
CN108536883B CN201710699292.6A CN201710699292A CN108536883B CN 108536883 B CN108536883 B CN 108536883B CN 201710699292 A CN201710699292 A CN 201710699292A CN 108536883 B CN108536883 B CN 108536883B
Authority
CN
China
Prior art keywords
drilling
label
borehole
degrees
hole
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710699292.6A
Other languages
Chinese (zh)
Other versions
CN108536883A (en
Inventor
李智斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201710699292.6A priority Critical patent/CN108536883B/en
Publication of CN108536883A publication Critical patent/CN108536883A/en
Application granted granted Critical
Publication of CN108536883B publication Critical patent/CN108536883B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Investigation Of Foundation Soil And Reinforcement Of Foundation Soil By Compacting Or Drainage (AREA)
  • Earth Drilling (AREA)

Abstract

The invention relates to the drawing of engineering drawings of geological engineering and geotechnical engineering investigation technology, in particular to a method for engineering investigation plan based on a label arrangement optimization algorithm. The invention aims to provide a method capable of automatically and intelligently generating an engineering survey plan, which is applied to the related fields of geological engineering, geotechnical engineering and the like and can generate the plan without any modification and unattended operation.

Description

Automatic drawing method for engineering survey map with optimized label arrangement
Technical Field
The invention relates to the drawing of engineering drawings of geological engineering and geotechnical engineering investigation technology, in particular to a method for engineering investigation plan based on a label arrangement optimization algorithm.
Background
In the fields of geological engineering and geotechnical engineering investigation, the planar graph serving as an important graph in technical documents is mainly used for displaying relevant information such as drilling position, drilling number, drilling depth, section line position, number, drilling coordinate and the like in investigation operation. By browsing the plan, the scale and size of the survey operation, the arrangement position of the drill holes and the spatial position correlation of the drill holes and the design building and each section line on the plane can be intuitively obtained. The plan has outline-carrying function in all figures in engineering survey, and the interrelation of other figures in the technical document, such as a drilling column diagram and a section diagram, can be obtained by browsing the plan.
Because the existing industry software adopts a certain fixed angle, such as 45 degrees, adds a lead wire with a fixed length, such as 10mm, and connects the tag block of the software from the drilling circle, and does not consider the possibility that the tag and the composition elements in the plan, such as a section line, other tags and the like, collide to cause mutual superposition, and consequently, the generated plan possibly has a large number of situations that the composition elements are mutually superposed, the plan generated by adopting the existing industry software has the biggest problem that technicians are required to carry out later manual modification and the overlapped tags are moved. When the drawing is more complex and the number of similar situations is larger, it takes more time to modify the drawing.
Disclosure of Invention
The invention aims to provide a method capable of automatically and intelligently generating an engineering survey plan, which is applied to the related fields of geological engineering, geotechnical engineering and the like and can generate the plan without any modification and unattended operation.
An automatic drawing method of engineering drawings comprises the following steps:
s1, recording the coordinate data of the drill hole and the section line data into a database; the data comprises drilling hole number, drilling hole coordinates, drilling hole attempts, section line number and drilling hole sequence number information in the section line;
s2, checking whether the drilling hole label and the section line extension line have overlapping conflict condition; scanning from 0 degree to 360 degrees clockwise or anticlockwise at the drilling position, and comparing whether tangent points or cross points exist at four corner points and a section line of a drilling label; if the label information exists, recording the label information and entering the next optimized arrangement; if there is no tangent point conflict; then no optimal placement is required;
s3, adjusting by one of two modes or two modes in combination according to the label information needing to be optimally arranged obtained in S2, wherein in the first mode, the drilling label is sequentially selected to be positioned at 45 degrees at the upper right corner, or 45 degrees at the upper left corner, or 45 degrees at the lower right corner of the drilling circle; secondly, adjusting the distance between the drilling hole label and the drilling hole position, and then returning to S2 for comparison and inspection until no drilling hole label and section line overlap conflict condition exists;
and S4, determining the corresponding scale and the drawing rotation angle, converting the drilling coordinates into drawing coordinates, and drawing the drilling and section line information on a plan view.
Preferably, step S2 includes the steps of:
s2.1, comparing the sector occupied by the drilling label with the sector formed by the section line to obtain the conflict check of the drilling label. And calculating the sector where the drilling label is positioned by using a Brute-Force algorithm pseudo code. (Brute Force algorithm is a common pattern matching algorithm, the idea of BF algorithm is to match the first character of the target string S with the first character of the pattern string T, if equal, continue to compare the second character of S with the second character of T, if not, compare the second character of S with the first character of T, and compare them in turn until the final matching result is obtained.)
Input L ═ { V1, V2, V3, V4 ═ V1} is the four corner points of the borehole label
P is the coordinates of the location of the borehole
VR=VL=V1;
for each fixed point Vi (i ═ 2,4)
{
eprev=(P is left of Vi-1 Vi);//left of edge ei-1
enext=(P is left of Vi Vi+1);//left of edge ei
if((NOT eprev)and enext)
{
if(Vi is not below VR)//handles nonconvex case
VR=Vi;
}
else if(eprev and(NOT enext)){
if(Vi is not above VL)//handles nonconvex case
VL=Vi;
}
}
Returning to both VR and VL tangents.
Scanning clockwise from 0 degrees to 360 degrees in sequence at the borehole position, comparing the two tangent points VR and VL at the borehole tags in fig. 2, i.e., V1 and V4 have cross-hatching and an azimuth angle between the two tangent point azimuth angles, if any, the borehole tags and the cross-hatching collide with each other; if not, then the borehole label does not conflict with all of the section lines;
preferably, step S3 includes the steps of:
s3.1, there are the following principles in the drill hole label arrangement:
(1) the drilling tag keeps a fixed distance from the drilling position as much as possible, and the distance is increased or decreased to the minimum when the drilling tag conflicts with other factors in the plan;
(2) the drilling labels are positioned at 45 degrees at the upper right corner of the drilling circle as much as possible, namely, the position 1 of the drilling label is the optimal position, the position 2 is 45 degrees at the upper left, the position 3 is 45 degrees at the lower left, and the position 4 is 45 degrees at the lower right, the optional positions of the drilling labels are sequentially reduced in priority, and the optional priorities of other drilling labels are lower than those of the upper 4 positions;
for the first principle, it is assumed that each drill hole label is connected with a spring with an elastic coefficient L (written as lower case L in the following formula) in the drill hole, and the optimal distribution of characters is the situation that the elastic potential energy of the whole field is minimum, namely the global optimal situation;
for the second principle, the location-first selectability of the tag is reflected in the following equation by giving less weight to the preferred location:
Figure GDA0003240960780000031
s.t. satisfaction of Conflict check Condition
In the formula: n is the total number of drilled holes in the plan, K is the optional position of the drilled hole label, Wi,kIs the score weight, X, of the ith borehole at the location of the kth borehole tagi,kTo select the kth borehole tag location for the ith borehole, l is the spring rate of the virtual spring, diThe distance of the ith borehole from its borehole tag, and D is the optimal distance of the borehole from its borehole tag.
Preferably, the optimum distance of the borehole from its borehole tag is determined by the size and scale of the plan, preferably, at a plan scale of 1: at the scale of 1000, 10mm may be taken.
Advantageous effects
Compared with the prior art, the method for drawing the engineering survey plan obtains the optimal distribution of the drilling labels through the label optimal arrangement algorithm, realizes the automatic whole-process drawing in a computer, does not need manual processing on the later stage of the drawing, greatly reduces the manual processing process of moving the drilling labels in the later stage of the manual processing, and greatly saves the labor cost. The method for drawing the engineering investigation plan has high automation degree, reasonable distribution of the processed drilling labels, normative and beautiful generated engineering investigation plan, is suitable for drawing the plan in geological engineering and geotechnical engineering investigation, and has high efficiency and strong specialization.
Drawings
FIG. 1 is a problem with prior art software generated floor plans;
FIG. 2 is a sector size occupied by a borehole tag relative to a borehole location;
FIG. 3 is four optimized layouts of drill labels;
FIG. 4 is a plan view generated using the inventive program without post-manual modification.
Detailed Description
1. The existing plane graph drilling label has problems
Fig. 1 is a plan view of an engineering survey generated by software in the prior art, wherein the drill holes are labeled in a lead-fixing mode with an angle of 45 degrees at the upper right and a length of 10mm, so that the drill holes TP08 and TF02 overlap with adjacent section lines, and the readability, the aesthetic property and the normative property of the drawing are not satisfactory.
When the situation occurs, it is necessary to manually select the drill hole labels of the drill holes TP08 and TF02 to move upwards appropriately in the AutoCAD software so as to avoid the drill hole labels from overlapping the adjacent section lines, and then connect the lead wires between the moved drill hole labels and the corresponding drill holes. In the case of complex graphics, there are a number of such situations or tag-to-tag collisions. The simple and repeated work consumes a great deal of time of technicians, and the intelligent optimal arrangement and distribution program of the drilling labels is realized through the invention, so that the situations can be avoided, and the precious time of a great deal of technicians is saved.
2. Label arrangement optimization algorithm
Aiming at the problems, the invention adopts a label arrangement optimization algorithm to solve, wherein the label arrangement optimization algorithm mainly comprises the following two main modules of conflict check and optimization arrangement.
2.1 Conflict checking Module
And the collision checking module is used for checking whether the drilling labels collide. In fig. 1, it can be seen that the holes are connected by cross-hatching to form several drawing areas centered on the holes, for example, hole TP08 forms 6 small fan-shaped drawing areas by cross-hatching 8, 12, 23, that is, a total of 6 rays are taken from the holes, and the collision check mechanism is to check whether the hole label overlaps with the 6 rays.
Figure 2 shows the sector size occupied by the drill tag relative to the drill location, and the collision check of the drill tag is obtained by comparing the sector occupied by the drill tag with the sector formed by the cross-hatching. The following program Brute-Force algorithm pseudo-code calculates the sector where the borehole label is located.
Input L ═ { V1, V2, V3, V4 ═ V1} is the four corner points of the borehole label
P is the coordinates of the location of the borehole
V R=VL=V1;
for each fixed point Vi (i ═ 2,4)
{
e prev=(P is left of Vi-1 Vi);//left of edge ei-1enext=(P is left of ViVi+1);//left of edge ei if((NOT eprev)and enext)
{if(Vi is not below VR)//handles nonconvex case VR=Vi;
Else if (eprev and (NOT ext)) { if (Vi is NOT above VL)/handles noconvex case VL ═ Vi; return VR and VL tangency points.
Scanning clockwise from 0 degrees to 360 degrees in sequence at the borehole position, comparing the two tangent points VR and VL at the borehole tags in fig. 2, i.e., V1 and V4 have cross-hatching and an azimuth angle between the two tangent point azimuth angles, if any, the borehole tags and the cross-hatching collide with each other; if not, then the borehole label does not conflict with all of the cross-hatching.
2.2 Label optimized Placement Module
In the drill label arrangement there are the following principles:
(1) the drilling label keeps a fixed distance with the drilling position as much as possible, the embodiment of the invention adopts 10mm, namely the length between the drilling label and the center of the drilling circle is 10mm, and the distance is increased or reduced to the minimum extent when the drilling label conflicts with other factors in a plan view;
(2) the drilling labels are positioned at 45 degrees at the upper right corner of the drilling circle as much as possible, namely, the position 1 of the drilling label is the optimal position, the position 2 is 45 degrees at the upper left, the position 3 is 45 degrees at the lower left, and the position 4 is 45 degrees at the lower right, the optional positions of the drilling labels are sequentially reduced in priority, and the optional priorities of other drilling labels are lower than those of the upper 4 positions;
aiming at the first principle, the situation that the elastic potential energy of the whole field is the minimum, namely the global optimal situation, is assumed that each drilling hole label is connected with a drilling hole through a spring with the elastic coefficient of l connection;
for the second principle, the location-first selectability of the tag is reflected in the following equation by giving less weight to the preferred location:
Figure GDA0003240960780000051
s.t. satisfaction of Conflict check Condition
In the formula: n is the total number of drilled holes in the plan, K is the optional position of the drilled hole label, Wi,kIs the score weight, X, of the ith borehole at the location of the kth borehole tagi,kTo select the kth borehole tag location for the ith borehole, l is the spring rate of the virtual spring, diThe distance of the ith borehole from its borehole tag, and D is the optimal distance of the borehole from its borehole tag.
The score weights for the drill tag locations in equation 1 above are for any drill:
Figure GDA0003240960780000052
for the drill hole tag location, it is obviously necessary to satisfy:
Figure GDA0003240960780000061
equation (3) above illustrates that only one drill tag selectable position can be selected. The spring constant for the virtual spring can be any number greater than zero, and can be chosen to be 2 without loss of generality. Represented by the following formula (4)
di=||Pi-Si|| (4)
In the formula PiIs the coordinate vector of the ith borehole, SiIs the coordinate vector of the ith borehole label.
The optimal distance between the drilling hole and the drilling hole label is determined by the size and the scale of the plane graph, 10mm is taken in the embodiment of the invention, and the scale of the plane graph is 1: a scale of 1000 is suitable.
3. Preferred embodiments of the present invention will be further described with reference to the accompanying drawings in which:
step S1, sampling the drill hole,
and drilling operation is carried out on an engineering construction site by adopting a drilling machine, and engineering geological information of all drill holes of one engineering project is obtained.
Step S2, building a drilling database,
and establishing a drilling database by adopting engineering geological database management information system software commonly used in the industry and inputting drilling data, wherein the drilling data comprises information such as a drilling number, a drilling coordinate, a drilling depth, a section line number, a drilling sequence number in a section line and the like.
Step S3, inputting a corresponding scale and a drawing rotation angle, and converting the drilling coordinates into drawing coordinates, for example, using a scale of 1: 1000, the coordinate of the drilling hole TF08 is 2424172.007, Y is 393623.4352, the coordinate of the drawing is converted into X '2424.172007, Y' 3936.234352, and the final coordinate is obtained by rotating again.
In step S4, the information such as the bore hole and the section line is drawn on the plan view in the above step S3.
And step S5, inputting all information into formula (1), and iteratively solving the optimal solution of all labels by adopting nonlinear programming.
And step S6, the calculation results are adopted as the positions of the drilling labels after layout optimization, the drilling labels are drawn in an AutoCAD based on a C # programming program, the final effect is shown in figure 3, and the function of intelligent layout of geological description characters and the engineering geological drilling histogram program without any manual modification are realized.
The above-described embodiments of the present invention do not limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (3)

1. An automatic drawing method of an engineering survey map with optimized label arrangement is characterized by comprising the following steps:
s1, recording the coordinate data of the drill hole and the section line data into a database; data includes, but is not limited to, borehole number, borehole coordinates, borehole attempt, cross-hatch number, borehole sequence number information in cross-hatch;
s2, checking whether the drilling hole label and the section line extension line have overlapping conflict condition; scanning from 0 degree to 360 degrees clockwise or anticlockwise at the drilling position, and comparing whether tangent points or cross points exist at four corner points and a section line of a drilling label; if the label information exists, recording the label information and entering the next optimized arrangement; if there are no tangents or intersections; then no optimal placement is required;
s3, adjusting by one of two modes or two modes in combination according to the label information needing to be optimally arranged obtained in S2, wherein in the first mode, the drilling label is sequentially selected to be positioned at one of 45 degrees at the upper right corner, 45 degrees at the upper left corner, 45 degrees at the lower left corner and 45 degrees at the lower right corner of the drilling circle; secondly, adjusting the distance between the drilling hole label and the drilling hole position, and then returning to S2 for comparison and inspection until no drilling hole label and section line overlap conflict condition exists;
s3.1, there are the following principles in the drill hole label arrangement:
principle (1): the drilling tag keeps a fixed distance from the drilling position as much as possible, and the distance is increased or decreased to the minimum when the drilling tag conflicts with other factors in the plan;
principle (2): the drilling labels are positioned at 45 degrees at the upper right corner of the drilling circle as much as possible, namely the position of the drilling label No. 1 is the optimal position, the position No. 2 is 45 degrees at the upper left, the position No. 3 is 45 degrees at the lower left, and the position No. 4 is 45 degrees at the lower right, the optional position priority of the drilling labels is sequentially reduced, and the optional priority of the other drilling label positions is lower than that of the upper 4 positions;
aiming at the principle (1), supposing that each drilling hole label is connected with a drilling hole through a spring with an elastic coefficient L, the optimal distribution of characters is the situation that the elastic potential energy of the whole field is minimum, namely the global optimal situation;
for the above principle (2), by giving a weight to the preferred position, the position of the tag is calculated by the following formula:
Figure FDA0003230380190000011
s.t. satisfaction of Conflict check Condition
In the formula: n is the total number of drilled holes in the plan, K is the optional position of the drilled hole label, Wi,kIs the score weight, X, of the ith borehole at the location of the kth borehole tagi,kTo select the kth borehole tag location for the ith borehole, l is the spring rate of the virtual spring, diThe distance between the ith drilling hole and the drilling hole label is set, and D is the optimal distance between the drilling hole and the drilling hole label;
and S4, determining the corresponding scale and the drawing rotation angle, converting the drilling coordinates into drawing coordinates, and drawing the drilling and section line information on a plan view.
2. The method for automatically drawing engineering survey map with optimized label arrangement as claimed in claim 1, wherein step S2 comprises the following steps: s2.1, comparing the sector occupied by the drilling label with the sector formed by the section line to obtain the conflict inspection of the drilling label, and calculating the sector where the drilling label is located by using a Brute-Force algorithm, wherein the Brute-Force algorithm is used for calculating by obtaining the coordinates of four intersection points of the label.
3. The method of claim 1, wherein the step S3 further comprises the following step, wherein the optimal distance between the borehole and its borehole label is determined by the size and scale of the plan view, and the scale of the plan view is 1: at a scale of 1000, 10mm is taken.
CN201710699292.6A 2017-08-16 2017-08-16 Automatic drawing method for engineering survey map with optimized label arrangement Active CN108536883B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710699292.6A CN108536883B (en) 2017-08-16 2017-08-16 Automatic drawing method for engineering survey map with optimized label arrangement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710699292.6A CN108536883B (en) 2017-08-16 2017-08-16 Automatic drawing method for engineering survey map with optimized label arrangement

Publications (2)

Publication Number Publication Date
CN108536883A CN108536883A (en) 2018-09-14
CN108536883B true CN108536883B (en) 2021-10-22

Family

ID=63488724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710699292.6A Active CN108536883B (en) 2017-08-16 2017-08-16 Automatic drawing method for engineering survey map with optimized label arrangement

Country Status (1)

Country Link
CN (1) CN108536883B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103758A (en) * 2011-03-21 2011-06-22 四川大学 Computer graph generating method for engineering geological section map
CN102346917A (en) * 2011-11-01 2012-02-08 广东省电力设计研究院 Method and system for automatically drawing engineering geologic histogram
CN102446214A (en) * 2011-09-19 2012-05-09 北京城建勘测设计研究院有限责任公司 Interior work data processing method used in engineering investigation and device adopting same
CN103591944A (en) * 2013-11-13 2014-02-19 江西建工第一建筑有限责任公司 Measurement construction method of arc building
CN104636520A (en) * 2013-11-12 2015-05-20 五冶集团上海有限公司 Building engineering comprehensive pipeline layout arranging method
JP2017025618A (en) * 2015-07-24 2017-02-02 信也 馬場 Advanced boring method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103758A (en) * 2011-03-21 2011-06-22 四川大学 Computer graph generating method for engineering geological section map
CN102446214A (en) * 2011-09-19 2012-05-09 北京城建勘测设计研究院有限责任公司 Interior work data processing method used in engineering investigation and device adopting same
CN102346917A (en) * 2011-11-01 2012-02-08 广东省电力设计研究院 Method and system for automatically drawing engineering geologic histogram
CN104636520A (en) * 2013-11-12 2015-05-20 五冶集团上海有限公司 Building engineering comprehensive pipeline layout arranging method
CN103591944A (en) * 2013-11-13 2014-02-19 江西建工第一建筑有限责任公司 Measurement construction method of arc building
JP2017025618A (en) * 2015-07-24 2017-02-02 信也 馬場 Advanced boring method

Also Published As

Publication number Publication date
CN108536883A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
US9064066B2 (en) Methods and systems for well planning based on a complex fracture model
Chen et al. A novel crowding genetic algorithm and its applications to manufacturing robots
US8294718B2 (en) Systems and methods for computing a variogram model
MX2015004001A (en) Propagating fracture plane updates.
CN110490100A (en) Ground automatic identification based on deep learning names method and system
MX2010008752A (en) Systems and methods for improved positioning of pads.
CN110119144A (en) Based on the matched multirobot SLAM algorithm of sub- map feature
CN105550688A (en) Method and device for point cloud data classification
CN109902583A (en) A kind of skeleton gesture identification method based on two-way independent loops neural network
CN105205864A (en) Multi-source-data-based automatic modeling method and system of three-dimension model of geological structural surface
RU2406136C2 (en) Method and mechanism of extracting and identifying polygons when designing integrated circuits
CN104411911A (en) Systems and methods for optimal positioning of drilling pads
CN110130987A (en) A kind of tunnel convergence deformation monitoring method based on image analysis
CN116468392A (en) Method, device, equipment and storage medium for monitoring progress of power grid engineering project
CN110490241B (en) Horizontal well parameter optimization method and device
CN111985081A (en) Logging curve construction method, system, equipment and readable storage medium
Wei et al. GMSK-SLAM: a new RGB-D SLAM method with dynamic areas detection towards dynamic environments
Han et al. 4D-based automation of heavy lift planning in industrial construction projects
CN108536883B (en) Automatic drawing method for engineering survey map with optimized label arrangement
US20030152273A1 (en) Parametric shape grammar interpreter
Arouri et al. Adaptive moment estimation framework for well placement optimization
Hofer et al. constrainedKriging: An R-package for customary, constrained and covariance-matching constrained point or block kriging
Vassiliou et al. On a test for trends in piecewise monotonic data approximation method
Vušović et al. Software solution for the mine subsidence prediction based on the stochastic method integrated with the gis
CN113075744A (en) Karst detection system for shield tunnel affected area under building

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant