Method for automatically generating CAD (Computer Aided Design) graph based on longitude and latitude and application

Through latitude -based methods, the attribute library and CAD block definition database is generated, and the automated drawing of the construction drawings of communication lines has been realized, the problem of low construction drawings in the existing technologies has been solved, saving manpower and material resources, and improving construction efficiency.

CN119379849AActive Publication Date: 2025-01-28GUANGXI HUITIANCHENG NETWORK TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411469864.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-21
Publication Date
2025-01-28
Estimated Expiration
2044-10-21

AI Technical Summary

Technical Problem

The prior art cannot realize the automatic drawing of communication line construction drawings, resulting in inefficient construction efficiency and waste of manpower and material resources.

Method used

Through the latitude -based method, the information data of the communication line construction industry is summarized, the attribute library is generated, and the latitude and longitude information is converted to CAD plane coordinates to draw the CAD coordinate base diagram. Automatically draw.

Benefits of technology

The rapid and automatic drawing of the construction drawings of communication lines has saved a lot of manpower and material resources and improved construction efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119379849A_ABST
    Figure CN119379849A_ABST
Patent Text Reader

Abstract

The invention provides a method and application for automatically generating a CAD graph based on longitude and latitude, and belongs to the field of automatic generation of CAD graphs, the scheme comprises the following steps: summarizing line graph attribute information according to information data of a communication line construction industry to obtain an attribute library, inputting longitude and latitude information, converting the longitude and latitude information into CAD plane coordinates, and storing the CAD plane coordinates; the method comprises the steps of drawing a CAD coordinate base map according to CAD plane coordinates, generating a CAD block definition library and a text description library according to an attribute library, inputting line attribute information, querying the attribute library, then determining CAD blocks and a drawing method according to assignment attribute information, and completing drawing according to the CAD block definition library and the text description library. The CAD block definition library and the text description library are generated according to the attribute information library, blocks can be automatically inserted and text description can be automatically added during later drawing, automatic drawing of the drawing is rapidly achieved, and a large amount of manpower is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automatic generation of CAD graphics, and in particular to a method and application for automatically generating CAD graphics based on longitude and latitude. Background Art

[0002] As the requirements for communication line construction become higher and higher and the construction period is required to be short, it is necessary to unify the requirements during the drawing of construction drawings to make the later construction more efficient. At the same time, the drawing of construction drawings and devices cannot take too much manpower, material resources and time. It is necessary to design an automated method for generating communication line construction drawings.

[0003] A Chinese patent with announcement number CN115423900A discloses a method, device, electronic circuit and storage medium for automatic generation of graphics, the method comprising: obtaining a display request for first data to be displayed, the display request is obtained based on an interface generated by a cloud service, and the first data to be displayed is data stored in Excel format; in response to the display request, a first CAD drawing corresponding to the first data to be displayed is determined and displayed through a pre-established display method, and the display method includes a conversion relationship between data in Excel format and CAD drawings. This solution solves the problem that in the field of survey and design, a large amount of statistics, calculations and drawing in engineering design are very cumbersome, and manual drawing is prone to errors. This solution directly derives from the conversion relationship between data in Excel format and CAD drawings, but this method does not provide relevant inspiration for automatic drawing of drawings in the field of communication line construction.

[0004] A Chinese patent with announcement number CN117475027A discloses a method for automatically drawing construction drawings of intersections of underground mine tunnels. Steps: S1, import the original intersection construction drawing into the CAD system, add annotation constraints to the graphics corresponding to the basic parameters required for drawing the graphics; according to the graphic features, identify the constraint relationship between the geometric bodies in the graphics, and add geometric constraints and annotation constraints between the primitive objects in the graphics; S2, activate the parameter input window, enter the basic parameters required for drawing the graphics in the parameter input window, generate the graphics, and solve and redraw the parametric model through the secondary development program; S3, obtain the graphic data required for engineering quantity calculation and fill the graphic data into the engineering quantity statistical table of the solved and redrawn parametric model; S4, delete the constraints and auxiliary lines. This method is mainly used in the construction of mine tunnel intersections and cannot provide technical inspiration for the construction of communication lines. Therefore, it is necessary to design a method and application for automatically generating CAD graphics based on longitude and latitude that meets the needs of communication line construction. Summary of the invention

[0005] The purpose of the present invention is to provide a method and application for automatically generating CAD graphics based on longitude and latitude, so as to solve the technical problem that the existing communication line construction cannot automatically draw the graphics.

[0006] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0007] A method and application for automatically generating CAD graphics based on longitude and latitude, the scheme comprising the following steps:

[0008] Step 1: Summarize line graphic attribute information according to communication line construction industry information data to obtain an attribute library;

[0009] Step 2: Input the longitude and latitude information and convert them into CAD plane coordinates;

[0010] Step 3: Draw the CAD coordinate base map according to the CAD plane coordinates;

[0011] Step 4: Generate a CAD block definition library and a text description library based on the attribute library;

[0012] Step 5: Input the line attribute information, query the attribute library, and then determine the CAD block and drawing method based on the assigned attribute information;

[0013] Step 6: Complete the drawing based on the CAD block definition library and generate the text description library.

[0014] Furthermore, the specific process of step 1 is: analyze the communication line construction industry specifications, determine the general attribute information of the graphics, analyze the industry's classic cases to summarize the graphic attribute information, and then summarize and classify all the attribute information to obtain a number of individual attribute information of different categories, and then summarize and store all the classified attribute information in the database to obtain an information attribute database.

[0015] Furthermore, the specific process in step 2 is: automatically converting the input latitude and longitude information into plane coordinates, converting the plane coordinates into spherical coordinates, and finally projecting the spherical coordinates into CAD plane coordinates.

[0016] Furthermore, the specific process in step 3 is: determine whether the longitude and latitude information is a single-point longitude and latitude or longitude information of more than two points. If it is a single-point longitude and latitude information, determine and determine the mapping scale, draw the CAD coordinate points, and then obtain the CAD coordinate base map based on the CAD coordinate points. If it is longitude and latitude information of more than two points, analyze the continuity of the longitude and latitude points, and then obtain several longitude and latitude combinations. The longitude and latitude points in the longitude and latitude combinations are continuous. Determine the mapping scale and drawing method for each longitude and latitude combination, and then draw CAD lines or graphics for each longitude and latitude combination, and then summarize all the drawn CAD lines and CAD graphics, and then determine whether it is necessary to add points automatically. If not, draw the CAD coordinate base map. If points need to be added, draw CAD points on the CAD lines or CAD graphics to obtain the CAD coordinate base map.

[0017] Furthermore, the specific process of step 5 is: input line attribute information to query whether the attribute library contains corresponding line attributes, and if so, return the queried attribute information, assign the value to the CAD coordinate base map, and determine the CAD block and drawing method according to the assigned attribute information.

[0018] Furthermore, the specific process of step 6 is: determine whether the assigned attribute information needs to query the block definition library to determine the CAD block and the drawing method. If necessary, determine the block to be inserted based on the generated CAD block definition library, and insert the block at the corresponding position point. If not necessary, determine the drawing method of the CAD graphics, draw the corresponding CAD graphics according to the corresponding drawing method, and query the generated text description library, add text descriptions to the blocks and graphics in the drawing, and complete the drawing.

[0019] The invention discloses an application of a method for automatically generating CAD graphics based on longitude and latitude, wherein the method is applied to automatically drawing construction drawings of communication lines.

[0020] The present invention has the following beneficial effects due to the adoption of the above technical solution:

[0021] The present invention can complete the drawing of the CAD coordinate base map by inputting the longitude and latitude, and then complete the drawing of the line construction drawing by inputting the attribute information of the corresponding line, thereby realizing rapid drawing. When drawing the drawing, a CAD block definition library and a text description library are generated according to the attribute information library. In the later drawing, blocks can be automatically inserted and text descriptions can be added, thereby realizing automatic drawing of the drawing rapidly and saving a lot of manpower. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a flow chart of generating a coordinate map according to the present invention;

[0023] Figure 2 It is a flowchart of drawing drawing of the present invention. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and preferred embodiments. However, it should be noted that many details listed in the specification are only for the purpose of enabling the reader to have a thorough understanding of one or more aspects of the present invention, and these aspects of the present invention can be implemented even without these specific details.

[0025] like Figure 1-2 As shown, a method for automatically generating CAD graphics based on longitude and latitude includes the following steps:

[0026] Step 1: Summarize the line graphic attribute information according to the communication line construction industry information data to obtain the attribute library. Analyze the communication line construction industry specifications, determine the general attribute information of the graphics, analyze the industry classic cases to summarize the graphic attribute information, and then summarize and classify all the attribute information to obtain several attribute information of different categories, and then summarize and store all the classified attribute information in the database to obtain the information attribute database.

[0027] Step 2: Input longitude and latitude information and convert them into CAD plane coordinates. Automatically convert the input longitude and latitude information into plane coordinates, convert the plane coordinates into spherical coordinates, and finally project the spherical coordinates into CAD plane coordinates.

[0028] Step 3: Draw the CAD coordinate base map according to the CAD plane coordinates. Determine whether the longitude and latitude information is a single point or more than two points. If it is a single point, determine and determine the mapping scale, draw the CAD coordinate point, and then obtain the CAD coordinate base map based on the CAD coordinate point. If it is more than two points, analyze the continuity of the longitude and latitude points, and then obtain several longitude and latitude combinations. The longitude and latitude points in the longitude and latitude combinations are continuous. Determine the mapping scale and drawing method for each longitude and latitude combination, and then draw CAD lines or graphics for each longitude and latitude combination. Then summarize all the drawn CAD lines and CAD graphics, and then determine whether it is necessary to add points automatically. If not, the CAD coordinate base map is drawn. If points need to be added, draw CAD points on the CAD lines or CAD graphics to obtain the CAD coordinate base map.

[0029] Step 4: Generate a CAD block definition library and a text description library based on the attribute library.

[0030] Step 5: Input the line attribute information, query the attribute library, and then determine the CAD block and drawing method based on the assigned attribute information. Input the line attribute information to query whether the attribute library contains the corresponding line attribute. If it does, return the queried attribute information, assign the value to the CAD coordinate base map, and determine the CAD block and drawing method based on the assigned attribute information.

[0031] Step 6: Complete the drawing according to the CAD block definition library and the generated text description library. Determine whether the CAD block and drawing method need to query the block definition library based on the assigned attribute information. If necessary, determine the blocks to be inserted based on the generated CAD block definition library, and insert the blocks at the corresponding positions. If not, determine the drawing method of the CAD graphics, draw the corresponding CAD graphics according to the corresponding drawing method, query the generated text description library, add text descriptions to the blocks and graphics in the drawings, and complete the drawing.

[0032] The invention discloses an application of a method for automatically generating CAD graphics based on longitude and latitude, wherein the method is applied to automatically drawing construction drawings of communication lines.

[0033] The CAD versions supported by this method are AUTO-CAD2016 and above, and Haochen CAD 2000 and above.

[0034] Specific application example 1: Drawing optical cable routing:

[0035] Specific application example equipment environment overall requirements:

[0036] Supported CAD versions: Support AUTO-CAD2016 and above, Haochen CAD 2000 and above. Support data input in table format and json data format; support online and desktop data input.

[0037] Layer input data for drawing optical cable routes: Input data type: xlsx or xls or csv format or json format; Input image type: jpg or png format; Input data content: name, longitude and latitude [longitude + latitude], type, specification, and terrain; Function of input data content: longitude and latitude [longitude + latitude] are used for positioning and calculating length workload; The name in the input data is consistent with the legend library name, and the legend to be used in CAD is determined by the name + type + specification in the input data.

[0038] Detailed description of the fiber optic cable routing:

[0039] Name: Overhead routing, direct buried routing, wall routing, pipeline routing, trough routing, bureau routing, etc., 12 types, consistent with the legend library name. Longitude and latitude [longitude + latitude]: a series of longitude and latitude track points like 108.16556633,23.67925478; 108.16544563,23.67923881.

[0040] Type: Overhead routing types are divided into three types: new pole routing, new hanging wire type, and reuse of existing hanging wire type. Overhead routing specifications are divided into three types: 2.2 hanging wire, 2.6 hanging wire, and 3.0 hanging wire. Direct buried routing specifications are divided into three types: comprehensive soil, soft stone, and hard stone. Wall routing is divided into three types: reuse of existing hanging wire type, new hanging wire type, and nailing type. Pipeline routing, trough routing, and intra-office routing: There is no type parameter. The type input in the table entered by Aowei is empty.

[0041] Terrain: There are four types of terrain: plain, hilly, mountainous, and urban. Hilly is the default terrain. If the terrain in the input table is empty, it means the terrain is hilly.

[0042] Drawing of optical cable routing: select the set legend through name + type + specification, draw the corresponding points in CAD, draw the points into lines, and set the corresponding parameters for the lines; adjust the line width, color and other attributes of the line in CAD according to the settings.

[0043] Specific application example 2: Draw communication label points:

[0044] Layer input data: Input data type: xlsx or xls or csv format or json format; Input image type: jpg or png format; Input data content: name, longitude and latitude [longitude + latitude], type, specification, number / name, connection point, number of connecting optical cable cores, connecting optical cable model, address, terrain, text description and accessories; The role of the content in the input data: The name in the input data is consistent with the legend library name, and the legend to be used in CAD is determined by the name + type + specification in the input data; longitude and latitude [longitude + latitude] are used for positioning and calculating the number of workloads; number / name, connection point, number of connecting optical cable cores, connecting optical cable model, and address are used to establish a path tree for the communication network.

[0045] General description of communication tag points: Name: New pole, existing pole, existing hand hole, etc., consistent with the legend library name. Longitude and latitude [longitude + latitude]: a series of longitude and latitude track points similar to 108.16556633, 23.67925478; 108.16544563, 23.67923881; or longitude and latitude points similar to 108.16556633, 23.67925478;

[0046] Type: The existing poles and newly built poles are divided into 4 types: 7m, 8m, 9m, and 10m. 7m is the default type. If the input is empty, the default type is 7m. The existing landmarks and newly built landmarks are divided into ordinary, monitoring, and joint pits. Ordinary is the default type. If the input is empty, the default type is ordinary. The existing joint boxes and newly built joint boxes are divided into 3 types: overhead, pipeline, and direct buried. The type of joint box is determined according to the label position. The default input of Aowei is not entered. The type placed next to the overhead route is the overhead type, the type placed next to the direct buried route is the direct buried type, and the type placed next to the pipeline route is the pipeline type. The existing optical cross-connection box and the newly built optical cross-connection box are divided into 3 types: floor-standing type, overhead type, and wall-mounted type. The existing fiber splitter box and the newly built fiber splitter box are divided into 2 types: pole-holding type and wall-mounted type. It is determined according to the position of its label point. The one close to the pole is the pole-holding type, otherwise it is the wall-mounted type. The existing up-and-down lead-in and the newly built up-and-down lead-in are divided into: pole-mounted type and wall-mounted type. The type of up-and-down lead-in is determined by the label position. The default input of Aowei is not input. The one close to the pole is pole-mounted type, otherwise it is wall-mounted. Power protection: divided into 4 types: 220V, 380V, 1KV, and 10KV. The existing pipe wells and newly built pipe wells are divided into 4 specifications: manhole, SK1, SK2, and SK3. The default is SK1. If the type in the input table is empty, it means the type is SK1.

[0047] Specifications: The existing joint box and the newly built joint box are divided into 6 specifications: 12 cores / 24 cores / 36 cores / 48 cores / 96 cores / 144 cores. The existing optical cross-connection box and the newly built optical cross-connection box are divided into 5 specifications: 96 cores / 144 cores / 288 cores / 576 cores / 1152 cores. The existing fiber splitter box and the newly built fiber splitter box are divided into 4 specifications: 16 cores / 32 cores / 48 cores / 72 cores. The existing up-and-down lead-in and the newly built up-and-down lead-in are divided into 2 specifications: Φ50mm / Φ80mm.

[0048] Terrain: There are three types of terrain: comprehensive soil, soft rock, and hard rock. Comprehensive soil is the default terrain. If the terrain in the input table is empty, it means that the terrain is comprehensive soil. Connection point: including the origin and other text content. The origin refers to the connection point itself, and the other content refers to the source of the connection point. It must be filled in and cannot be empty. For details on which ones need to be filled in, please refer to the input table. Text description: If there is an input, it will be drawn in CAD according to the rules. If there is no input, it will not be processed. The meaning of close to / next to: refers to the straight-line distance between the center points of the two labels is less than 3 meters;

[0049] Specific application example 2-1 Pole drawing:

[0050] According to the input longitude and latitude points, draw the pole points on the optical cable route and set the corresponding parameters for each point. Select the corresponding legend according to the input content and insert the corresponding legend on the pole longitude and latitude. First draw the pole with longitude and latitude input. Then automatically add longitude and latitude points on the overhead route according to the set random distance and the remaining maximum distance principle, so as to automatically draw the pole:

[0051] Specific application example 2-2 Line drawing:

[0052] The drawing of the guy wire adopts the principle of automatic drawing without input. On the basis of the optical cable route and the drawing of the pole, the guy wire is drawn according to the principle of drawing new guy wires with new suspension wires and drawing the original guy wires with old suspension wires. A guy wire is drawn on the first pole and the last pole. The direction of the guy wire is consistent with the direction of the route trajectory, and the arrow points in the opposite direction of the pole. Drawing of guy wires on poles at intermediate turning points: add one guy wire to poles with an internal angle greater than 120 degrees, the guy wire is consistent with the center line of the angle of the route trajectory, and the arrow points in the opposite direction of the pole; add two guy wires to poles with an angle less than or equal to 120 degrees, the guy wire is consistent with the direction of the line, and the arrow points in the opposite direction of the pole.

[0053] Specific application example 2-3 Pull-wire ground wire drawing:

[0054] Based on the specific application example 2-2, for the pole with a newly drawn guy wire, a guy-type ground wire is drawn on the same pole.

[0055] Specific application example 2-4 brace drawing:

[0056] Draw the latitude and longitude points of the pole in CAD according to the input. Insert the corresponding legend on the latitude and longitude points of the pole according to the input, and the arrow direction of the pole points to the center point of the pole, which is perpendicular to the routing direction. The latitude and longitude of the pole label is automatically corrected to the latitude and longitude of the nearest pole label.

[0057] Specific application example 2-5 Cement pier drawing:

[0058] Draw the longitude and latitude points of the cement pier in CAD according to the input. Insert the corresponding legend on the longitude and latitude points of the cement pier according to the input, and the center point of the cement pier is consistent with the center point of the corresponding pole. The longitude and latitude of the cement pier label is automatically corrected to the longitude and latitude of the nearest pole label.

[0059] Specific application example 2-7 Tube well drawing:

[0060] Draw the longitude and latitude points of the pipe well in CAD according to the input. First draw the points with the input longitude and latitude of the pipe well. Then draw the longitude and latitude points provided on the pipeline route. Insert the corresponding legend on the longitude and latitude points of the pipe well according to the input, and adjust the direction of the pipe well legend so that the long side of the legend is consistent with the route direction.

[0061] Label positioning correction: The longitude and latitude of the pipe well label are automatically corrected to the center line of the nearest pipeline route.

[0062] Specific application example 2-8 Direct buried marker drawing:

[0063] Draw the latitude and longitude points of the landmark in CAD according to the input. Insert the corresponding legend at the latitude and longitude points of the landmark according to the input, and adjust the direction of the landmark legend to be perpendicular to the route. Label positioning correction: The latitude and longitude of the landmark label are automatically corrected to the center line of the nearest pipeline route.

[0064] Specific application example 2-9 joint box drawing:

[0065] Draw the longitude and latitude points of the joint box in CAD according to the input. Insert the corresponding legend on the longitude and latitude points of the joint box according to the input. The center point of the joint box legend is consistent with the center point of the route. If the longitude and latitude coordinate points of the joint box legend are consistent with the longitude and latitude coordinate points of the pole, the joint box legend and the pole legend will be tangent when drawn. Determine the type of joint box according to the label position. Aowei input does not enter by default. The longitude and latitude points of the joint box next to the overhead route are overhead type, the type placed next to the direct buried route is direct buried type, and the type placed next to the pipeline route is pipeline type. Select one of 12 cores / 24 cores / 36 cores / 48 cores / 96 cores / 144 cores according to the input content.

[0066] Specific application example 2-10 Light intersection box drawing:

[0067] Draw the longitude and latitude points of the optical cross-box in CAD according to the input. Select 96 cores / 144 cores / 288 cores / 576 cores / 1152 cores according to the content of the Aowei input table. Draw the legend and insert the corresponding legend at the longitude and latitude points of the optical cross-box according to the input.

[0068] Floor-standing optical cross-connection box: the long side of the diagram is parallel to the routing direction. Overhead optical cross-connection box: the long side of the diagram is parallel to the routing direction, and the diagram is tangent to the pole. Wall-mounted optical cross-connection box: the long side of the diagram is parallel to the routing direction.

[0069] Specific application example 2-11 fiber distribution box drawing:

[0070] Draw the longitude and latitude points of the fiber distribution box in CAD according to the input. Specifications: Select one of 16 cores / 32 cores / 48 cores / 72 cores / 96 cores / 144 cores according to the input content; Legend drawing, insert the corresponding legend at the longitude and latitude points of the fiber distribution box according to the input. Wall-mounted fiber distribution box: The long side of the legend is parallel to the routing direction. Pole-mounted fiber distribution box: The long side of the legend is parallel to the routing direction, and the legend is tangent to the pole.

[0071] Specific application example 2-12: Up and down drawing. Draw the up and down longitude and latitude points in CAD according to the input; Specification parameters: select one of Φ50mm / Φ80mm / Φ100mm according to the input content.

[0072] Legend drawing, insert the corresponding legend at the latitude and longitude points of the lead-in and lead-out according to the input. Wall-type lead-in and lead-out: the legend is tangent to the route. Pole-type lead-in and lead-out: the legend is tangent to the pole.

[0073] Specific application examples 2-13

[0074] Base stations, aggregation rooms, dedicated lines, and indoor distribution are drawn. Based on the input, the longitude and latitude points of base stations, aggregation rooms, dedicated lines, and indoor distribution are drawn in CAD. Based on the input, the corresponding legends are inserted on the longitude and latitude points of base stations, aggregation rooms, dedicated lines, and indoor distribution. The legends are placed from east to west, from the side of the legend close to the router.

[0075] Specific application example 2-14 Power protection drawing:

[0076] Draw the intersection of power protection and routing in CAD according to the input. Insert the corresponding legend at the intersection according to the input.

[0077] Specific application example 2-15: Drawing of direct buried ground wire.

[0078] If the power protection intersects with the overhead route, a legend corresponding to the direct buried ground wire shall be drawn on the poles on both sides of the power protection. The base point of the legend shall be consistent with the center point of the pole and shall not overlap with other legends.

[0079] Specific application example 3: Drawing terrain:

[0080] Aowei input: Input data type: xlsx or xls or csv format or json format. Input image type: jpg or png format. Input data content: name, longitude and latitude [longitude + latitude], type, specification, number / name, text description. The function of the content in the input data. The name in the input data is consistent with the legend library name. The legend to be used in CAD is determined by the name + type in the input data. Longitude and latitude [longitude + latitude] are used for positioning and calculating the number of workloads.

[0081] General description of terrain drawing: Name: 17 types such as roads, rivers, houses, etc., which are consistent with the legend library names. Longitude and latitude [longitude + latitude]: A series of longitude and latitude track points similar to 108.16556633, 23.67925478; 108.16544563, 23.67923881, or a longitude and latitude point similar to 108.16556633, 23.67925478.

[0082] Type: Roads are divided into three types: village roads, county roads, national roads, and urban areas. Text description: If there is input in the input data, it will be drawn in CAD according to the rules, otherwise it will not be processed.

[0083] CAD output: Determine which specific application instances need to be executed based on the name and type of the Aowei input, and select the corresponding legend based on the name and type of the input.

[0084] Specific application example 3-1 Pole line drawing of other operators:

[0085] Draw the latitude and longitude points of other operators' pole lines in CAD according to the input. Connect the latitude and longitude points of other operators' pole lines into lines according to the input, and draw the contents of the input number / name on the line at intervals of 200 meters.

[0086] Specific application example 3-2 road drawing:

[0087] Draw the latitude and longitude points of the road in CAD according to the input. Connect the latitude and longitude points of the road into lines according to the input, use the road line as the center line, replace it with two spline curves of a certain width, and draw single-line text on the center line of the road every 150. The direction of the single-line text is consistent with the center line of the road, and the content is the number / name content in the Aowei input.

[0088] Specific application example 3-3 River drawing:

[0089] Draw the latitude and longitude points of the river in CAD according to the input. Connect the longitude and latitude points of the river into lines according to the input, use the road line as the center line, replace it with two spline curves of a certain width, and draw two hindden lines between the two lines. At the same time, draw single-line text on the center line of the river every 150. The direction of the single-line text is consistent with the center line of the road, and the content is the number / name content in the Aowei input.

[0090] Specific application example 3-4 house drawing:

[0091] Draw the longitude and latitude points of the house in CAD according to the input. According to the content entered in the number / name. When there is no input, draw a rectangle of 12 meters according to the length of the line formed by the longitude and latitude points of point 1 and point 2. The height of the rectangle is the vertical distance from point 3 to the line of points 1 and 2, and the remaining length is the spacing between rectangles. When a place name is entered, draw a rectangle with the distance between the longitude and latitude points of point 1 and 2 as the length and the vertical distance from point 3 to the line of points 1 and 2 as the height, and draw the number / name at the center of the rectangle.

[0092] Specific application example 3-5: Drawing of houses in a block:

[0093] Draw the longitude and latitude points of the houses in CAD according to the input. Fill the area formed by the houses with a rectangle of length 6 and width 5, and then delete the rectangle that exceeds the boundary. Draw the word "house" at the center point of the house.

[0094] Specific application examples 3-6 key reference drawing:

[0095] Draw the latitude and longitude points of the key reference object in CAD according to the input. Connect the latitude and longitude points into lines to form an area. Draw the text in the number / name in the center of the area.

[0096] Specific application example 3-7 wall drawing:

[0097] Draw the longitude and latitude points of the fence in CAD according to the input. Connect the longitude and latitude points to form a line, and draw perpendicular lines at a certain interval on the line.

[0098] Specific application example 3-8 bridge drawing:;

[0099] Legend selection: The intersection of a river and a road, a railway, or a railway and a road often requires a bridge to be drawn. Select the legend corresponding to the bridge. If the river track intersects with the road: Draw a bridge with a width of (road width + 2) with the center line of the road as the direction. If a river or road intersects with a railway, draw a bridge with a width of 5 with the center line of the railway as the direction.

[0100] Specific application example 3-9 Railway drawing:

[0101] Draw the longitude and latitude points of the railway in CAD according to the input. Connect the longitude and latitude points to form a line, and insert the railway legend on the line.

[0102] Specific application example 3-10 Mountain range drawing:

[0103] The latitude and longitude points of the mountain range are drawn in CAD according to the input. The latitude and longitude points are connected into lines to form a closed multi-curve, which is then reduced by 0.7 times and 0.3 times to form three closed multi-curves.

[0104] Specific application examples 3-11 Drawing of trees, orchards, paddy fields, dry land, cemeteries, depressions, and reservoirs:

[0105] Draw the longitude and latitude points of trees, orchards, paddy fields, dry land, and cemeteries in CAD according to the input. Connect the longitude and latitude points into lines to form an area. Fill the corresponding legend in the area according to a certain density.

[0106] Specific application example 3-12 Road direction drawing:

[0107] Draw the latitude and longitude points of the road in CAD according to the input. Insert the corresponding legend at the latitude and longitude points of the road according to the input. The direction of the arrow in the legend points to the starting point or end point of the road centerline, and the text direction and arrow are parallel to the road centerline.

[0108] Specific application example 4 text drawing:

[0109] Text characteristics: The specific parameters of the text including style, height, width, color, etc. are set in the template settings. The default font is Songti, font height 2.5, width 0.7, font (Songti), and alignment (centered).

[0110] Classify text into standard text, other text, text description text, and table text, and set text styles separately in the template settings. Text styles include: style, character height, and character width.

[0111] 4-1 Digital marking of route length:

[0112] The size of the number = the length of the routing segment * the marking coefficient. The adjustment coefficient is a number greater than 1 and can be selected or adjusted in the template settings.

[0113] Marking base points: Base points of overhead routes: starting point of routes, end point of routes, center point of poles. Base points of pipeline routes: center point of pipe wells. Base points of direct buried routes: starting point of routes, base points of direct buried markers. Base points of wall routes: starting point, turning point, end point of routes. Base points of trough and in-bureau routes: starting point, turning point, end point of routes. Selection of routing segments: Line segments between two adjacent base points in the route need to be marked. Marking method: Displayed directly above or below the midpoint of the routing segment (can be selected in the template settings), numbers vertical to the routing segment. Standard style: Prefix text + number or number + postfix text; Prefix text, postfix text (set in "Marking text settings" in the template settings).

[0114] 4-2 No input text description.

[0115] 4-2-1 Text description of the connector box icon

[0116] Input content: specification + name / number. Input location and method: Use single-line text drawing method and place it just above the legend, parallel to the routing direction;

[0117] 4-2-2 Text description at the up and down icons, input content: the content near the original up and down legend is (first line: the route is led up to 1 place;); the content near the newly created up and down legend is (first line: the route is led up to 1 place + new additions + legend specifications + steel pipe; second line: put in 1 28 / 32 plastic sub-pipe).

[0118] Input location and method: Use the arrow to pull out from the icon to display it near the legend. It should not overlap with other text or non-topographic legends. The text direction should be due east-west.

[0119] 4-2-3 Text description of power protection icon

[0120] Input content: Install the power protection panel, unit is meter, the numbers in brackets are set in the template workload rule settings.

[0121] Input location and method: Use the arrow to pull out from the icon to display it near the legend. It should not overlap with other text or non-topographic legends. The text direction should be due east-west.

[0122] 4-2-4 Text description of the intersection of road, overhead route and wall route, input content: Install 1 overhead warning pipe, the text content can be modified in the settings. Input location and method: From the intersection of the road centerline and the route, use an arrow to pull out from the icon to display near the legend, without overlapping with other text and non-topographic legends, the text direction is positive east-west direction.

[0123] 4.3 Text description of label name: Input content: Input the content in the text description column corresponding to the name column "Text Description" in the Aowei input table. Input location and method: Draw directly as a single line of text at the track point. If there are other text or non-topographic legends at the track point, use an arrow to pull it out to a position that does not overlap with other text and non-topographic legends. The text direction is the positive east-west direction.

[0124] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method and application for automatically generating CAD graphics based on longitude and latitude, characterized by: The scheme comprises the following steps: Step 1: Summarize line graphic attribute information according to communication line construction industry information data to obtain an attribute library; Step 2: Input the longitude and latitude information and convert them into CAD plane coordinates; Step 3: Draw the CAD coordinate base map according to the CAD plane coordinates; Step 4: Generate a CAD block definition library and a text description library based on the attribute library; Step 5: Input the line attribute information, query the attribute library, and then determine the CAD block and drawing method based on the assigned attribute information; Step 6: Complete the drawing based on the CAD block definition library and generate the text description library.

2. The method for automatically generating CAD graphics based on longitude and latitude according to claim 1, characterized in that: The specific process of step 1 is: analyze the industry specifications for communication line construction, determine the general attribute information of graphics, analyze the industry's classic cases to summarize the attribute information of graphics, and then summarize and classify all the attribute information to obtain a number of individual attribute information of different categories, and then summarize and store all the classified attribute information in the database to obtain an information attribute database.

3. The method for automatically generating CAD graphics based on longitude and latitude according to claim 1, characterized in that: The specific process in step 2 is: automatically convert the input latitude and longitude information into plane coordinates, convert the common year coordinates into spherical coordinates, and finally project the spherical coordinates into CAD plane coordinates.

4. The method for automatically generating CAD graphics based on longitude and latitude according to claim 1, characterized in that: The specific process in step 3 is: determine whether the longitude and latitude information is a single-point longitude and latitude or more than two points. If it is a single-point longitude and latitude information, determine and determine the mapping scale, draw the CAD coordinate points, and then obtain the CAD coordinate base map based on the CAD coordinate points. If it is more than two points of longitude and latitude information, analyze the continuity of the longitude and latitude points, and then obtain several longitude and latitude combinations. The longitude and latitude points in the longitude and latitude combinations are continuous. Determine the mapping scale and drawing method for each longitude and latitude combination, and then draw CAD lines or graphics for each longitude and latitude combination, and then summarize all the drawn CAD lines and CAD graphics, and then determine whether it is necessary to add points automatically. If not, draw the CAD coordinate base map. If points need to be added, draw CAD points on the CAD lines or CAD graphics to obtain the CAD coordinate base map.

5. The method for automatically generating CAD graphics based on longitude and latitude according to claim 1, characterized in that: The specific process of step 5 is: input the line attribute information to query whether the attribute library contains the corresponding line attributes. If yes, return the queried attribute information, assign the value to the CAD coordinate base map, and determine the CAD block and drawing method according to the assigned attribute information.

6. The method for automatically generating CAD graphics based on longitude and latitude according to claim 1, characterized in that: The specific process of step 6 is: determine whether the CAD block and drawing method need to query the block definition library based on the assigned attribute information. If necessary, determine the block to be inserted based on the generated CAD block definition library, and insert the block at the corresponding position. If not necessary, determine the drawing method of the CAD graphics, draw the corresponding CAD graphics according to the corresponding drawing method, and query the generated text description library to add text descriptions to the blocks and graphics in the drawing to complete the drawing.

7. The application of the method for automatically generating CAD graphics based on longitude and latitude according to any one of claims 1 to 6, characterized in that: The method is applied to automatically drawing construction drawings of communication lines.

Citation Information

Patent Citations

  • Automatic graph generation method and device, electronic equipment and storage medium

    CN115423900A

  • Automatic drawing method for underground mine roadway intersection point construction drawing

    CN117475027A

  • CAD drawing generation method and device, electronic equipment and storage medium

    CN118114412A

  • Method and apparatus for spatially coordinating, storing and manipulating computer aided design drawings

    US20060100722A1