CN114428990A - Automatic drawing filling method based on AutoCAD adaptive curve trend - Google Patents

Automatic drawing filling method based on AutoCAD adaptive curve trend Download PDF

Info

Publication number
CN114428990A
CN114428990A CN202210099535.3A CN202210099535A CN114428990A CN 114428990 A CN114428990 A CN 114428990A CN 202210099535 A CN202210099535 A CN 202210099535A CN 114428990 A CN114428990 A CN 114428990A
Authority
CN
China
Prior art keywords
geological
line
pattern
autocad
filling
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.)
Granted
Application number
CN202210099535.3A
Other languages
Chinese (zh)
Other versions
CN114428990B (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.)
China Railway Eryuan Engineering Group Co Ltd CREEC
Original Assignee
China Railway Eryuan Engineering Group Co Ltd CREEC
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 China Railway Eryuan Engineering Group Co Ltd CREEC filed Critical China Railway Eryuan Engineering Group Co Ltd CREEC
Priority to CN202210099535.3A priority Critical patent/CN114428990B/en
Publication of CN114428990A publication Critical patent/CN114428990A/en
Application granted granted Critical
Publication of CN114428990B publication Critical patent/CN114428990B/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]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/20Configuration CAD, e.g. designing by assembling or positioning modules selected from libraries of predesigned modules

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Optimization (AREA)
  • Computational Mathematics (AREA)
  • Architecture (AREA)
  • Mathematical Analysis (AREA)
  • Structural Engineering (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Civil Engineering (AREA)
  • Geophysics And Detection Of Objects (AREA)
  • Instructional Devices (AREA)

Abstract

The invention discloses an automatic map filling method based on AutoCAD adaptive curve trend, which is applied to the technical field of geological exploration map filling and comprises the following steps: s1, copying a lithologic pattern diagram library file, and importing the geological section diagram into AutoCAD; s2, filling the scale of the graph; s3, establishing a ground line of a geological section, a geological boundary and a selection set of stratum type description; s4, carrying out topology analysis on the selection set to obtain a topological area result corresponding to the stratum type; s5, connecting a stratum type database, and inquiring geological lithology pattern information and the coordinates of the stratum type; s6, inquiring lithologic pattern information in the geological lithologic pattern gallery file; s7, filling lithologic patterns of the geological section diagram through AutoCAD; the method can adaptively process the complex geological section map filling work, greatly reduces the workload, improves the efficiency of the filling work, has more standard and beautiful filling, has uniform filling format and enhances the filling effect.

Description

Automatic drawing filling method based on AutoCAD adaptive curve trend
Technical Field
The invention relates to the technical field of geological exploration mapping, in particular to an automatic mapping method based on an AutoCAD adaptive curve trend.
Background
The geological profile is a map showing geological phenomena and their mutual relations on a geological profile on a certain scale. The geological profile map is matched with the geological section map, and the three-dimensional concept of the geological structure can be obtained. Geological profiles are one of the important geological profile pieces, which are profiles that are tangent to the terrain in an imaginary vertical plane along a direction of the earth's surface. The intersection of the section and the ground is called the section line. Geological section is a map which uses a certain scale to record and reveal the interrelation of the landform form and the internal structure in a section in a certain direction. It can be formed by field visual inspection, instrument actual measurement or according to geological section diagram. The main contents of the geological profile map comprise the profile direction, the terrain, the lithology, the thickness, the era and the occurrence of the stratum, and the geological profile map can show the wrinkle form, the fault property and the forms of the igneous rock mass and the ore body; and may indicate their location, scale, etc.
AutoCAD is one of the indispensable tools in the geological exploration industry, geologists use the AutoCAD to draw geological transverse and longitudinal sections, plane maps and the like, and meanwhile, in order to clearly express geological structure conditions, the geologists need to fill lithologic patterns in geological longitudinal section maps.
For the terrain with complex geological structure and complex geological structure line, the filling workload of geological personnel is large, mistakes are easy to make, the filling format is not uniform, the filling efficiency is low, the filling effect is poor, the current AutoCAD does not support the function of filling the geological profile, and the function of automatically filling the geological profile is not provided.
Disclosure of Invention
The invention aims to overcome the defect that the geological profile cannot be automatically filled in the prior art, and provides an automatic pattern filling method based on the AutoCAD adaptive curve trend, which can automatically fill patterns according to the curve trend in the AutoCAD graph and realize the automatic filling of a complex section.
In order to achieve the above purpose, the invention provides the following technical scheme:
an automatic drawing filling method based on AutoCAD adaptive curve trend comprises the following steps:
s1, copying the lithology pattern diagram library file to a Support directory of AutoCAD in advance, importing a geological section diagram into the AutoCAD and opening the geological section diagram, wherein the geological section diagram comprises a plurality of layers, and different layers are respectively provided with a ground line, a geological boundary and stratum type characters;
s2, inputting stratum type data and a scale of a map-filling lithologic pattern in a command line of AutoCAD;
s3, establishing a selection set of a ground line, a geological boundary and a stratum type description of the geological section in a model space through a filtering selection function of AutoCAD according to the entity attributes of each layer in the geological section diagram;
s4, performing topological analysis on the selection set of the ground line, the geological boundary and the stratum type to obtain a topological area result corresponding to the stratum type;
s5, connecting a stratum type database, inquiring geological lithology pattern information and coordinates of the corresponding stratum type through the stratum type, judging whether the coordinates are in the topological area, and if so, matching the corresponding stratum type with the topological area;
s6, reading data in the geological lithology pattern gallery file, and inquiring corresponding geological lithology pattern information through the lithology pattern name;
and S7, drawing geological lithology patterns according to the lithology pattern scale, the corresponding geological lithology pattern information and the topological region result through the drawing function of the AutoCAD, and completing the filling of the lithology patterns of the geological section diagram.
The lithologic pattern gallery and the stratum type data are used as data sources and combined into a geological section map, topological analysis is utilized to obtain topological area results, the relationship between lithologic pattern information and the stratum range in the geological section map is established, and lithologic patterns are inquired and filled by using AutoCAD; the automatic query and filling method has the advantages that the lithologic pattern work of the existing manual filling geological section map can be replaced by the automatic query and filling of the AutoCAD software, the complex geological section map filling work is processed in a self-adaptive mode, the workload is reduced to a great extent, the efficiency of the filling work is improved, the filling is more standard and attractive, the filling format is unified, the phenomena of incomplete filling, incomplete filling and map filling errors cannot occur, and the filling effect is enhanced.
In a preferred embodiment of the present invention, in step S1, the lithology pattern gallery includes a unit format of the lithology pattern filling, including descriptions of the type, line length, direction, coordinate, and angle of the basic primitive; by recording descriptions of a plurality of types of information of basic figure elements in the unit format, information such as the shape and distribution of the included lithologic pattern can be directly known from the unit format.
In a preferred embodiment of the present invention, in the steps S2 and S3, the formation type data includes a formation type and corresponding lithology pattern information; by including the information of the stratum type and the lithologic pattern in the database, the matching relation with the geological section map can be formed, and the corresponding matching of the stratum type and the lithologic pattern in the geological section map is facilitated.
In a preferred embodiment of the present invention, when the selection set is established in step S3, a rectangular selection box is specified in the model space through a secondary development interface of AutoCAD, and a ground line, a geological boundary and a stratum type in a specified layer in the selection box are obtained through a filtering selection function of AutoCAD; through the selection box, the related lines and the stratum types in the geological section map can be found, and the subsequent search is facilitated.
In a preferred embodiment of the present invention, when performing topology analysis in step S4, a topology area needs to be set:
obtaining a bottom surface line by translating the ground line downwards along the Y coordinate of the AutoCAD, and obtaining a left boundary line and a right boundary line according to the starting point and the ending point of the ground line, the bottom surface line and the geological boundary line; according to the ground line, the bottom surface line, the geological boundary line, the left boundary line and the right boundary line, performing area analysis through a plane scanning algorithm to obtain a closed topological area; the topological area can be obtained according to each line, and data of topological analysis are formed.
In a preferred embodiment of the present invention, the step of obtaining the left boundary and the right boundary in step S4 specifically comprises:
s41, acquiring a starting point and an ending point of the ground line, and comparing X coordinate values of the two points, wherein a smaller X coordinate value is the starting point of the left boundary line, and a larger X coordinate value is the starting point of the right boundary line;
s42, acquiring the bottom surface lines, the starting points and the ending points of all geological boundary lines, classifying the starting points and the ending points, calculating the distance between the starting points and the ending points and the starting points of the left boundary line and the right boundary line respectively, if the distance between the starting points of the left boundary line and the starting points of the right boundary line is smaller than the distance between the starting points of the right boundary line, adding the starting points and the ending points to the left boundary line, and if not, adding the starting points and the ending points to the right boundary line;
s43, filtering point sets of the left boundary line and the right boundary line through the filtering and selecting function of the AutoCAD, traversing the ground line, the bottom line and all geological boundary lines one by one, and deleting points in the point sets of the boundary lines if the points belong to more than one curve entity;
s44, sorting the point set of the left boundary line and the point set of the right boundary line according to the ascending order of the Y coordinate values to obtain the left boundary line and the right boundary line.
The starting point and the ending point of the left boundary line are respectively compared with the bottom line and the starting point and the ending point of the geological boundary line to obtain a point set on the left boundary line and a point set on the right boundary line, and finally the point sets are connected in sequence, so that the boundary line condition close to the real boundary condition can be obtained.
In a preferred embodiment of the present invention, the performing topology analysis on the ground line and the geological boundary in step S4 includes:
s401, calculating the minimum external frame of different stratums of the geological section map through the algorithm of the minimum external frame;
s402, in the minimum external frame, translating the ground line to a position without intersection points with any other geological boundary, and obtaining the ground line;
s403, sequentially connecting the left boundary point of the geological boundary downwards from the left boundary point of the ground line, and finally connecting the left boundary point of the bottom surface line to obtain a left frame;
s404, breaking the bottom surface line, the left frame, the right frame, the ground line and the geological boundary obtained in the S403 at the intersection point of any two lines, and calculating the geological topological relation according to the broken multi-segment lines;
s405, matching the obtained coordinates of the stratum type with the relation of the topological area, and if the coordinates of the stratum type are located in the stratum range of the topological area, correspondingly matching the lithologic pattern of the area with the stratum type of the current stratum range to obtain a topological area result of the lithologic pattern type in the geological section.
By obtaining the minimum external frame, establishing a topological area in the frame, calculating the topological relation according to the broken multi-section line, finally matching the stratum type with the topological area relation, further matching the corresponding lithological pattern, realizing the matching of the range of a certain stratum in a geological section map, the stratum type and the lithological pattern, realizing automatic data matching and saving a large amount of manual operation.
In a preferred embodiment of the present invention, in step S5, each lithology pattern unit format having the same name as the lithology pattern information is acquired from the lithology pattern gallery file based on the lithology pattern information acquired in step S4; and searching the corresponding unit format through the lithologic pattern information so as to match the corresponding pattern information and smoothly fill the correct lithologic pattern.
In a preferred embodiment of the present invention, in step S7, according to the information of the topological area obtained in step S4, the information of the lithological pattern obtained in step S6 is drawn and filled in the range of different stratums in the topological area according to the lithological pattern scale in step S2; the filling can be carried out according to the specific geological section map in proportion, and the automatic adaptability of the filling map is improved.
In a preferred embodiment of the present invention, the step S7 is:
s71, calculating the actual height and width of the lithologic pattern in the geological section map according to the designated lithologic pattern scale;
s72, equally dividing the corresponding geological topological area according to the actual height of the lithologic pattern to obtain a plurality of areas for filling the lithologic pattern;
and S73, taking the geological trend curve of the topological region result as a central line, and gradually filling the lithologic patterns in the cell format along the geological trend curve from the starting point of the geological trend curve to the end point of the geological trend curve.
The lithologic patterns and the geological section map are automatically adapted by filling according to the proportion, the number of the patterns can be obtained by equally dividing the topological area according to the height, the geological section map is conveniently and completely filled, the smooth filling direction and the arrangement direction of the lithologic patterns can be kept by filling along a geological trend curve, and the standardability and the attractiveness are improved.
Compared with the prior art, the invention has the beneficial effects that:
1. by the automatic map filling method, the existing manual work of filling the lithologic patterns of the geological section map can be replaced by the automatic query and filling of the AutoCAD software, the complex geological section map filling work is processed in a self-adaptive mode, the workload is reduced to a great extent, the efficiency of the filling work is improved, the filling is more standard and attractive, the filling format is uniform, the phenomena of incomplete filling and map filling errors cannot occur, and the filling effect is enhanced.
Description of the drawings:
FIG. 1 is a step diagram of an automatic graph filling method based on AutoCAD adaptive curve trend according to the present invention;
FIG. 2 is a flow diagram of the method for automatic graph filling based on AutoCAD adaptive curve trend according to the present invention;
FIG. 3 is a diagram illustrating the filling effect of the automatic map filling method according to the present invention;
the mark in the figure is: 1-ground line, 2-ground line, 3-left boundary, 4-right boundary, 5-geological boundary.
Detailed Description
The present invention will be described in further detail with reference to test examples and specific embodiments. It should be understood that the scope of the above-described subject matter is not limited to the following examples, and any techniques implemented based on the disclosure of the present invention are within the scope of the present invention.
Examples
Referring to fig. 1, the present embodiment provides an automatic map filling method based on AutoCAD curve trend, which includes the following steps:
s1, copying the lithology pattern diagram library file to a Support directory of AutoCAD in advance, importing a geological section diagram into the AutoCAD and opening the geological section diagram, wherein the AutoCAD automatically loads a geological section curve, the geological section diagram comprises a plurality of layers, and different layers are respectively provided with a ground line, a geological boundary and stratum type characters;
the lithologic pattern gallery comprises image files of lithologic patterns of different stratum types, wherein the image files are in a PAT file format, the file format also comprises a unit format for lithologic pattern filling, the unit format is an information parameter contained in each lithologic pattern and comprises descriptions of types, line lengths, directions, coordinates and angles of basic graphic elements, the types refer to stratum types represented by graphic elements, the line lengths refer to lengths occupied by lines of filling patterns, the directions are the directions of the line lengths of the patterns, the coordinates are relative coordinates of the centers of the basic graphic elements, and the angles are angles of the filling patterns relative to a horizontal line; by recording descriptions of a plurality of types of information of basic figure elements in the unit format, information such as the shape and distribution of the included lithologic pattern can be directly known from the unit format. The geological profile comprises multiple layers, and the geological information comprises a ground line 1, a geological boundary and a stratum type, wherein the ground line 1 is in the layer named DMX, and the geological boundary 5 and the geological type are in the layer named DZJX.
S2, inputting stratum type data and a scale of a map-filling lithologic pattern in a command line of AutoCAD;
the scale of the map-filling lithologic pattern is an integer, the stratum type data comprises stratum types and corresponding lithologic pattern information, and each stratum type has matched lithologic patterns; by including the information of the stratum type and the lithologic pattern in the database, a matching relation with the geological section map can be formed, so that the corresponding matching of the stratum type and the lithologic pattern in the geological section map is facilitated; by setting the scale, the stratum data can be matched with the geological section map, the geological section map is reflected in equal proportion, and the real stratum condition is reflected.
S3, according to the entity attributes of each layer in the geological section diagram, the entity attributes are the attributes of colors, line shapes, line widths, characters and the like of AutoCAD, through the filtering selection function of the AutoCAD, the filtering selection function refers to the function of data screening of an object selection filter of the AutoCAD, a selection set of a ground line 1, a geological boundary 5 and stratum type description of the geological section is established in a model space, and when the figure of the AutoCAD is selected, a selection set window appears, and the window is used for conveniently selecting contents; through a secondary development interface of the AutoCAD, a rectangular selection frame is designated in a model space of a geological section diagram, through a filtering selection function of the AutoCAD and an interface provided by the secondary development of the AutoCAD, entities in the rectangular selection frame are filtered, corresponding entity attributes are selected, curve entities and character entities of a DMX layer and a DZJX layer are obtained, wherein characters of stratum types are in the DZJX layer, and a ground line 1, a geological boundary 5 and stratum types in the designated layer in the selection frame are obtained; through the selection box, the related lines and the stratum types in the geological section map can be found, and the searching is convenient to carry out later. The ground line 1, the geological boundary 5 and the stratum type are respectively arranged on different layers, and the ground line 1, the geological boundary 5 and the stratum type are searched in different layers, so that the contents contained in each layer can be independently processed conveniently, and no influence is generated among the layers. Different from adding pick points and adding selection objects in a map filling interface in AutoCAD, the step is to obtain selection objects of DMX and DZJX layers and then calculate the external frame according to an algorithm.
S4, performing topological analysis on the ground line 1, the geological boundary 5 and the selection set of the stratum types, wherein the topological analysis adopts a plane scanning algorithm to obtain a topological area result corresponding to the stratum types; when topology analysis is performed, a topological area needs to be set, specifically, topology analysis is performed on the ground line 1 and the geological boundary 5, and the method comprises the following steps:
s401, calculating the minimum external frame of different stratums of the geological section map through the algorithm of the minimum external frame;
s402, obtaining a bottom surface line 2 by translating the ground line 1, translating the ground line 1 to a position without intersection points with any other geological boundary in the minimum external frame, and obtaining the bottom surface line 2;
s403, acquiring a left boundary line 3 and a right boundary line 4 according to the ground line 1, the bottom line 2 and the geological boundary line;
the specific steps for obtaining the left boundary line 3 and the right boundary line 4 are as follows:
s41, acquiring a starting point and an ending point of the ground line 1, and comparing X coordinate values of the two points, wherein a smaller X coordinate value is the starting point of the left boundary line 3, and a larger X coordinate value is the starting point of the right boundary line 4;
s42, acquiring the bottom surface line 2 and the starting points and the ending points of all geological boundary lines, classifying the starting points and the ending points, calculating the distances from the starting points and the ending points to the starting points of the left boundary line 3 and the right boundary line 4 respectively, adding the starting points and the ending points to the left boundary line if the distance from the starting points of the left boundary line 3 is less than the distance from the starting points of the right boundary line 4, and otherwise, adding the starting points and the ending points to the right boundary line;
s43, filtering point sets of the left boundary line 3 and the right boundary line 4 through the filtering selection function of the AutoCAD, traversing the ground line 1, the bottom line 2 and all geological boundary lines one by one, and deleting points in the point sets of the boundary lines if the points belong to more than one curve entity;
s44, sorting the point set of the left boundary line 3 and the point set of the right boundary line 4 according to the ascending order of the Y coordinate values to obtain each boundary point of the left boundary line 3 and each boundary point of the right boundary line 4;
sequentially connecting the left boundary point of the geological boundary line from the left boundary point of the ground line 1 downwards, and finally connecting the left boundary point of the bottom surface line 2 to obtain a left frame, and similarly, sequentially connecting the right boundary point of the geological boundary line from the right boundary point of the ground line 1 downwards, and finally connecting the right boundary point of the bottom surface line 2 to obtain a right frame; the accuracy of the geological boundary left and right boundary points and the ground line 1 is 0.00.
S404, obtaining a closed topological area through the ground line 1, the bottom line 2, the geological boundary line, the left boundary line 3 and the right boundary line 4 to form topological analysis data, firstly breaking the bottom line 2, the left frame, the right frame, the ground line 1 and the geological boundary line which are obtained in the S42 at the intersection point of any two lines, and calculating the geological topological relation according to broken multi-segment lines;
s405, matching the acquired coordinates of the stratum type with the relation of the topological area, and if the stratum type is located in the stratum range of the topological area, correspondingly matching the lithologic pattern of the area with the stratum type of the current stratum range to obtain a topological area result of the lithologic pattern type in the geological section.
By obtaining the minimum external frame, establishing a topological area in the frame, calculating the topological relation according to the broken multi-section line, finally matching the stratum type with the topological area relation, further matching the corresponding lithological pattern, realizing the matching of the range of a certain stratum in a geological section map, the stratum type and the lithological pattern, realizing automatic data matching and saving a large amount of manual operation.
S5, connecting a stratum type database, inquiring geological lithology pattern information and coordinates of corresponding stratum types through the stratum types, judging whether the coordinates are in a topological area, if so, matching the corresponding stratum types with the topological area, and if not, mismatching, wherein the judgment process is to judge whether position coordinates (points) are in the topological area (polygon) by using a PNPoly algorithm;
according to the geological lithology pattern information obtained in the S4, obtaining each lithology pattern unit format with the same name as the lithology pattern information from the lithology pattern library file, namely searching the corresponding lithology pattern in the lithology pattern library according to the same name of the lithology pattern information and obtaining the position coordinate of the corresponding stratum type; and searching the corresponding unit format through the lithologic pattern information so as to match the corresponding pattern information and smoothly fill the correct lithologic pattern.
S6, reading data of the geological lithology pattern diagram library file by using a database plug-in of AutoCAD, and inquiring corresponding geological lithology pattern information in the geological lithology pattern diagram library file through the lithology pattern name; if the lithologic pattern of the name is not inquired, prompting the user that the lithologic pattern does not exist in an order prompt column of the AutoCAD;
and S7, automatically drawing geological lithology patterns by AutoCAD according to the lithology pattern scale, the lithology pattern information and the topological region result, and completing the filling of the lithology patterns of the geological section diagram.
According to the information of the topological area obtained in the step S4, drawing and filling the information of the lithological pattern obtained in the step S6 in different stratum ranges in the topological area according to the lithological pattern scale in the step S2; can fill according to specific geological section map, proportion, improve the automatic adaptability of filling the map, concrete step includes:
s71, calculating the actual height and width of the lithologic pattern in the geological section map according to the designated lithologic pattern scale, and filling the lithologic pattern in proportion to automatically adapt to the geological section map;
s72, dividing the corresponding geological topological area equally according to the actual height of the lithologic pattern to obtain a plurality of areas for filling the lithologic pattern, and dividing the topological area equally according to the height to obtain the number of the patterns so as to fill the geological section completely; the bisection is that the width and the height of the lithologic pattern in the unit format are fixed, the actual width and the actual height (the width proportional scale and the height proportional scale) are obtained through calculation according to an input proportional scale, and the bisection is that the actual height of the lithologic pattern to be filled in the topological area is divided by the actual height of the lithologic pattern to obtain the number of the patterns to be drawn in the current area.
S73, automatically filling a drawing graphic interface by using the secondary development of the AutoCAD instead of the filling function (namely, hash) of the used AutoCAD, drawing the image by identifying the lithologic pattern information, and drawing the geological lithologic pattern by using the drawing function of the AutoCAD after identifying the lithologic pattern information; taking a geological trend curve of a topological area result as a central line, gradually filling lithologic patterns in a unit format along the geological trend curve from a starting point of the geological trend curve to a finishing point of the geological trend curve, wherein the geological trend line is a trend line of a stratum structure and indicates the extending direction of a stratum; through filling along the geological trend curve, the smooth filling direction and the arrangement direction of lithologic patterns can be kept, and the normative and the aesthetic property are improved.
The method comprises the steps of combining a lithologic pattern diagram library and stratum type data serving as data sources into a geological section diagram, obtaining topological area results by using topological analysis, establishing the relationship between lithologic pattern information and a stratum range in the geological section diagram, and inquiring and filling lithologic patterns by using AutoCAD; the automatic query and filling method has the advantages that the lithologic pattern work of the existing manual filling geological section map can be replaced by the automatic query and filling of the AutoCAD software, the complex geological section map filling work is processed in a self-adaptive mode, the workload is reduced to a great extent, the efficiency of the filling work is improved, the filling is more standard and attractive, the filling format is unified, the phenomena of incomplete filling, incomplete filling and map filling errors cannot occur, and the filling effect is enhanced.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. An automatic drawing filling method based on AutoCAD adaptive curve trend is characterized by comprising the following steps:
s1, copying the lithology pattern diagram library file to a Support directory of AutoCAD in advance, importing a geological section diagram into the AutoCAD and opening the geological section diagram, wherein the geological section diagram comprises a plurality of layers, and different layers are respectively provided with a ground line, a geological boundary and stratum type characters;
s2, inputting stratum type data and a scale of a map-filling lithologic pattern in a command line of AutoCAD;
s3, according to the entity attributes of each layer in the geological section diagram, establishing a selection set of the ground line, the geological boundary and the stratum type description of the geological section in the model space through the filtering selection function of AutoCAD;
s4, performing topological analysis on the selection set of the ground line, the geological boundary and the stratum type to obtain a topological area result corresponding to the stratum type;
s5, connecting a stratum type database, inquiring geological lithology pattern information and coordinates of the corresponding stratum type through the stratum type, judging whether the coordinates are in the topological area, and if so, matching the corresponding stratum type with the topological area;
s6, reading data in the geological lithology pattern gallery file, and inquiring corresponding geological lithology pattern information through the lithology pattern name;
and S7, drawing geological lithology patterns according to the lithology pattern scale, the corresponding geological lithology pattern information and the topological region result through the drawing function of the AutoCAD, and completing the filling of the lithology patterns of the geological section diagram.
2. The AutoCAD curve trend-based automatic drawing method according to claim 1, wherein in step S1, the lithology pattern gallery contains the unit format of the lithology pattern filling, including description of the type, line length, direction, coordinate and angle of the basic primitive.
3. The AutoCAD curve trend-based automatic mapping method according to claim 1, wherein in the steps S2 and S3, the formation type data includes formation type and corresponding lithology pattern information.
4. The method for automatically filling in maps based on AutoCAD adaptive curve trend as claimed in claim 1, wherein when the selection set is established in step S3, a rectangular selection box is specified in the model space through the secondary development interface of AutoCAD, and the ground line, the geological boundary and the stratum type in the specified map layer in the selection box are obtained through the filtering selection function of AutoCAD.
5. The automatic graph filling method based on the AutoCAD curve trend as claimed in claim 1, wherein in the step S4, when performing topology analysis, a topology area is required to be set:
obtaining a bottom surface line by translating the ground line downwards along the Y coordinate of the AutoCAD, and obtaining a left boundary line and a right boundary line according to the starting point and the ending point of the ground line, the bottom surface line and the geological boundary line; and performing area analysis by a plane scanning algorithm according to the ground line, the bottom line, the geological boundary line, the left boundary line and the right boundary line to obtain a closed topological area.
6. The automatic drawing filling method based on the AutoCAD adaptive curve trend as recited in claim 5, wherein the specific steps of obtaining the left boundary and the right boundary in step S4 are as follows:
s41, acquiring a starting point and an ending point of the ground line, and comparing X coordinate values of the two points, wherein a smaller X coordinate value is the starting point of the left boundary line, and a larger X coordinate value is the starting point of the right boundary line;
s42, acquiring the bottom surface lines, the starting points and the ending points of all geological boundary lines, classifying the starting points and the ending points, calculating the distance between the starting points and the ending points and the starting points of the left boundary line and the right boundary line respectively, if the distance between the starting points of the left boundary line and the starting points of the right boundary line is smaller than the distance between the starting points of the right boundary line, adding the starting points and the ending points to the left boundary line, and if not, adding the starting points and the ending points to the right boundary line;
s43, filtering point sets of the left boundary line and the right boundary line through the filtering and selecting function of the AutoCAD, traversing the ground line, the bottom line and all geological boundary lines one by one, and deleting points in the point sets of the boundary lines if the points belong to more than one curve entity;
s44, sorting the point set of the left boundary line and the point set of the right boundary line according to the ascending order of the Y coordinate values to obtain the left boundary line and the right boundary line.
7. The AutoCAD adaptive curve trend-based automatic mapping method as claimed in claim 5, wherein said step S4 of performing topology analysis on the ground line and the geological boundary includes:
s401, calculating the minimum external frame of different stratums of the geological section map through the algorithm of the minimum external frame;
s402, in the minimum external frame, translating the ground line to a position without intersection points with any other geological boundary, and obtaining the ground line;
s403, sequentially connecting the left boundary point of the geological boundary downwards from the left boundary point of the ground line, and finally connecting the left boundary point of the bottom surface line to obtain a left frame, wherein similarly, the right frame is sequentially connecting the right boundary point of the geological boundary downwards from the right boundary point of the ground line, and is finally connected with the right boundary point of the bottom surface line to obtain a right frame;
s404, breaking the bottom surface line, the left frame, the right frame, the ground line and the geological boundary obtained in the S403 at the intersection point of any two lines, and calculating the geological topological relation according to the broken multi-segment lines;
s405, matching the obtained coordinates of the stratum type with the relation of the topological area, and if the coordinates of the stratum type are located in the stratum range of the topological area, correspondingly matching the lithologic pattern of the area with the stratum type of the current stratum range to obtain a topological area result of the lithologic pattern type in the geological section.
8. The automatic graph filling method based on the AutoCAD curve trend as claimed in claim 1, wherein in step S5, each lithology pattern unit format with the same name as the lithology pattern information is obtained in the lithology pattern gallery file according to the lithology pattern information obtained in S4.
9. The automatic graph filling method based on AutoCAD adaptive curve trend according to claim 1, characterized in that in step S7, according to the topological area information obtained in step S4, the lithology pattern information obtained in step S6 is drawn and filled in different stratigraphic ranges in the topological area according to the lithology pattern scale in step S2.
10. The AutoCAD curve trend-based automatic map filling method according to claim 9, wherein the step S7 is:
s71, calculating the actual height and width of the lithologic pattern in the geological section according to the designated lithologic pattern scale;
s72, equally dividing the corresponding geological topological area according to the actual height of the lithologic pattern to obtain a plurality of areas for filling the lithologic pattern;
and S73, taking the geological trend curve of the topological region result as a central line, and gradually filling the lithologic patterns in the cell format along the geological trend curve from the starting point of the geological trend curve to the end point of the geological trend curve.
CN202210099535.3A 2022-01-27 2022-01-27 Automatic mapping method based on AutoCAD self-adaptive curve trend Active CN114428990B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210099535.3A CN114428990B (en) 2022-01-27 2022-01-27 Automatic mapping method based on AutoCAD self-adaptive curve trend

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210099535.3A CN114428990B (en) 2022-01-27 2022-01-27 Automatic mapping method based on AutoCAD self-adaptive curve trend

Publications (2)

Publication Number Publication Date
CN114428990A true CN114428990A (en) 2022-05-03
CN114428990B CN114428990B (en) 2023-04-28

Family

ID=81313225

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210099535.3A Active CN114428990B (en) 2022-01-27 2022-01-27 Automatic mapping method based on AutoCAD self-adaptive curve trend

Country Status (1)

Country Link
CN (1) CN114428990B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115147518A (en) * 2022-09-01 2022-10-04 中国科学院地理科学与资源研究所 Sedimentary rock lithology symbol generation method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012155540A1 (en) * 2011-05-13 2012-11-22 北京市电力公司 Method and device for processing geological information
CN105205311A (en) * 2015-09-02 2015-12-30 西北大学 Complex number operation method for drawing of stratigraphic section
CN105574908A (en) * 2015-12-15 2016-05-11 中国地质大学(武汉) Random operator generator based trough cross-bedding decorative pattern automatic filling method
CN106934858A (en) * 2017-03-14 2017-07-07 中国地质科学院矿产资源研究所 Three-dimensional geological modeling method and system for scale region of mining area
CN106991258A (en) * 2017-05-10 2017-07-28 中铁第五勘察设计院集团有限公司 A kind of method for setting up Tunnel Engineering geology skiagraph
CN108898670A (en) * 2018-07-26 2018-11-27 广州图石科技有限公司 A kind of three-dimensional geological modeling method based on entity and section
CN110853118A (en) * 2019-11-21 2020-02-28 云南冶金资源股份有限公司 Large-scale geological map filling method for mineral exploration in shallow covered area
CN113435087A (en) * 2021-06-24 2021-09-24 中铁二院工程集团有限责任公司 Method for analyzing local stability of cave surrounding rock

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012155540A1 (en) * 2011-05-13 2012-11-22 北京市电力公司 Method and device for processing geological information
CN105205311A (en) * 2015-09-02 2015-12-30 西北大学 Complex number operation method for drawing of stratigraphic section
CN105574908A (en) * 2015-12-15 2016-05-11 中国地质大学(武汉) Random operator generator based trough cross-bedding decorative pattern automatic filling method
CN106934858A (en) * 2017-03-14 2017-07-07 中国地质科学院矿产资源研究所 Three-dimensional geological modeling method and system for scale region of mining area
CN106991258A (en) * 2017-05-10 2017-07-28 中铁第五勘察设计院集团有限公司 A kind of method for setting up Tunnel Engineering geology skiagraph
CN108898670A (en) * 2018-07-26 2018-11-27 广州图石科技有限公司 A kind of three-dimensional geological modeling method based on entity and section
CN110853118A (en) * 2019-11-21 2020-02-28 云南冶金资源股份有限公司 Large-scale geological map filling method for mineral exploration in shallow covered area
CN113435087A (en) * 2021-06-24 2021-09-24 中铁二院工程集团有限责任公司 Method for analyzing local stability of cave surrounding rock

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZHOU HONGBO: "Research on conversion of AutoCAD graphic data to ArcInfo data format" *
陈志敏等: "AutoCAD2010中岩性花纹的制作及其应用" *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115147518A (en) * 2022-09-01 2022-10-04 中国科学院地理科学与资源研究所 Sedimentary rock lithology symbol generation method and device

Also Published As

Publication number Publication date
CN114428990B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
AU2014306483B2 (en) Identifying matching properties between a group of bodies representing a geological structure and a table of properties
US10228478B2 (en) Method of searching for oil-gas reservoir based on trap-3D software
CN106981093A (en) A kind of three-dimensional formation parallel modeling method of subregion constraint coupling
CN111950051A (en) BIM-based three-dimensional geological modeling and geological model-based construction application method
CN111612903B (en) Geological data visualization method based on mixed data model
CN101221250A (en) Three-dimensional stratum characteristic decryption method based on geologic information acquisition data
CN111079217A (en) Geotechnical engineering comprehensive investigation information interpretation method and system based on BIM
CN107180452A (en) The stratified geological objects modeling method of the multi-source data coupling on the stratum containing standard
CN112150582B (en) Multi-modal data-oriented geological profile approximate expression method
CN109979011A (en) Plains region three-dimensional geological model building method based on multi-source heterogeneous data
CN115100373A (en) Surface and underground environment three-dimensional integrated representation method, device, medium and equipment
CN112070890A (en) Rapid refined three-dimensional geological modeling method based on multi-source data
CN114428990A (en) Automatic drawing filling method based on AutoCAD adaptive curve trend
CN116778096B (en) Three-dimensional geologic body modeling method based on BIM three-dimensional cloud data
CN111445569B (en) Sedimentary geological evolution dynamic simulation method
CN111899316A (en) Two-dimensional stratum grid digital editing method and device for stratum structure
CN106504319A (en) Reservoir Three Dimensional Contrast map generalization method and device between well
Chi Research on Automatic Profile Generation Based on 3D Model
CN114399605A (en) Stratum entity automatic modeling method based on virtual terrain surface
CN117635854A (en) Knowledge-element-based geological model local updating method and system
CN110928969A (en) Dynamic interaction visualization method for seabed sediment
CN115934740A (en) Automatic updating method for strip mine slope stability calculation profile

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