A method and application for automatically generating CAD graphics based on latitude and longitude

By generating CAD planar coordinates and using attribute libraries to draw CAD blocks and text description libraries, the problem of communication line construction drawings not being able to be drawn automatically was solved, and fast and accurate automated drawing of construction drawings was achieved.

CN119379849BActive Publication Date: 2025-11-21GUANGXI 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
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-21
Publication Date
2025-11-21
Estimated Expiration
2044-10-21

AI Technical Summary

Technical Problem

Existing technologies cannot automate the drawing of construction drawings for communication lines, resulting in low construction efficiency and a high risk of errors due to manual drawing.

Method used

By inputting latitude and longitude information, CAD planar coordinates are generated, and CAD blocks are drawn using an attribute library and a text description library, thus realizing the automated drawing of communication line construction drawings.

Benefits of technology

It enables the rapid and automatic drawing of communication line construction drawings, saving manpower and material resources, improving construction efficiency and reducing human error.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119379849B_ABST
    Figure CN119379849B_ABST
Patent Text Reader

Abstract

The application provides a kind of method and application for automatically generating CAD graphics based on latitude and longitude, belongs to the field of CAD graphics automatic generation, the scheme includes the following steps: according to the information data of communication line construction industry, the attribute information of line graphics is summarized to obtain the attribute library, the latitude and longitude information is converted into CAD plane coordinates, the CAD coordinate base map is drawn according to the CAD plane coordinates, the CAD block definition library is generated according to the attribute library and the text description library is generated, the line attribute information is input, the attribute library is inquired, then the CAD block is determined according to the assignment attribute information and the drawing method is determined, and the drawing is completed according to the CAD block definition library and the generated text description library. According to the attribute information library, the CAD block definition library and the text description library are generated, the blocks can be automatically inserted and the text description can be added during later drawing, the automatic drawing of drawing is quickly realized, and a large amount of manpower is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automatic CAD drawing generation, and in particular to a method and application for automatically generating CAD drawings based on latitude and longitude. Background Technology

[0002] As the requirements for communication line construction become increasingly stringent and the construction period shorter, it is necessary to ensure uniformity during the drawing of construction drawings to improve the efficiency of later construction. At the same time, the drawing of components in the construction drawings should not consume too much manpower, material resources, and time. Therefore, it is necessary to design an automated method for generating communication line construction drawings.

[0003] Chinese Patent Publication No. CN115423900A discloses a method, apparatus, electronic circuit, and storage medium for automatic graphic generation. The method includes: acquiring a display request for first data to be displayed, wherein the display request is obtained from an interface generated based on a cloud service, and the first data to be displayed is data stored in Excel format; responding to the display request, determining and displaying a first CAD drawing corresponding to the first data to be displayed through a pre-established display method, the display method including the conversion relationship between Excel format data and CAD drawings. This solution addresses the tedious statistical calculations and drawing processes in engineering design within the field of surveying and design, where manual drawing is prone to errors. While this solution directly addresses the conversion relationship between Excel format data and CAD drawings, it does not provide any relevant insights into the automatic drawing of drawings in the field of communication line construction.

[0004] Chinese Patent No. CN117475027A discloses an automatic drawing method for construction drawings of intersections in underground mine tunnels. The steps are as follows: 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; based on the graphic features, identify the constraint relationships between geometric objects in the graphics, and add geometric constraints and annotation constraints between the graphic elements in the graphics; S2, activate the parameter input window, input the basic parameters required for drawing the graphics in the parameter input window, generate the graphics, and solve and redraw the parametric model through a secondary development program; S3, obtain the graphic data required for engineering quantity calculation and fill the graphic data into the engineering quantity statistics table of the solved and redrawn parametric model; S4, delete constraints and auxiliary lines. This method is mainly used in the construction of intersections in mine tunnels 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 latitude and longitude that meets the needs of communication line construction. Summary of the Invention

[0005] The purpose of this invention is to provide a method and application for automatically generating CAD graphics based on latitude and longitude, thereby solving the technical problem that existing communication line construction cannot be automatically drawn.

[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows:

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

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

[0009] Step 2: Input latitude and longitude information and convert it to CAD plane coordinates;

[0010] Step 3: Draw the CAD coordinate base map based on 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 the generated text description library.

[0014] Further, the specific process of step 1 is as follows: analyze the industry standards for communication line construction, determine the general attribute information of graphics, analyze the graphic attribute information summarized from classic industry cases, 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 into the database to obtain the information attribute database.

[0015] Furthermore, the specific process in step 2 is as follows: automatically convert the input latitude and longitude information into planar coordinates, convert the mean year coordinates into spherical coordinates, and finally project the spherical coordinates into CAD planar coordinates.

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

[0017] Further, the specific process of step 5 is as follows: 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.

[0018] Further, the specific process of step 6 is as follows: determine whether the assigned attribute information, CAD block, and drawing method need to query the block definition library. If so, determine the block to be inserted according to the generated CAD block definition library, and insert the block at the corresponding position. If not, determine the drawing method of the CAD drawing, draw the corresponding CAD drawing according to the corresponding drawing method, and query the generated text description library to add text descriptions to the block and drawing in the drawing to complete the drawing.

[0019] An application of a method for automatically generating CAD graphics based on latitude and longitude, the method being used for the automatic drawing of construction drawings for communication lines.

[0020] The present invention, by adopting the above-described technical solution, has the following beneficial effects:

[0021] This invention allows for the creation of CAD coordinate base maps by inputting latitude and longitude, and the creation of route construction drawings by inputting the corresponding route attribute information, enabling rapid drawing. During the drawing process, a CAD block definition library and a text description library are generated based on the attribute information library. In later stages of drawing, blocks can be automatically inserted and text descriptions can be added, quickly achieving automated drawing and saving a significant amount of manpower. Attached Figure Description

[0022] Figure 1 This is a flowchart of the process for generating a coordinate map according to the present invention;

[0023] Figure 2 This is a flowchart of the drawing process for this invention. Detailed Implementation

[0024] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be 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 merely to provide the reader with a thorough understanding of one or more aspects of the present invention, and these aspects of the 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 latitude and longitude includes the following steps:

[0026] Step 1: Summarize the graphic attribute information of communication line construction industry data to obtain an attribute database. Analyze industry standards for communication line construction to determine common graphic attribute information, analyze classic industry cases to summarize graphic attribute information, then summarize and categorize all attribute information to obtain several attribute information in different categories, and finally summarize and store all categorized attribute information into the database to obtain the information attribute database.

[0027] Step 2: Input latitude and longitude information and convert it to CAD planar coordinates. The input latitude and longitude information is automatically converted to planar coordinates, the mean year coordinates are converted to spherical coordinates, and finally the spherical coordinates are projected into CAD planar coordinates.

[0028] Step 3: Draw the CAD coordinate base map based on the CAD planar coordinates. Determine whether the latitude and longitude information is a single point or two or more points. If it is a single point, 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 two or more points, analyze the continuity of the latitude and longitude points, and then obtain several latitude and longitude combinations. The latitude and longitude points within a latitude and longitude combination are continuous. Determine the mapping scale and drawing method for each latitude and longitude combination, and then draw CAD lines or graphics for each latitude and longitude combination. Then, summarize all the drawn CAD lines and CAD graphics, and then determine whether automatic point addition is needed. If not, the CAD coordinate base map drawing is complete. If point addition is needed, 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 the attribute library to see if the corresponding line attribute is included. If it is, return the queried attribute information, assign the values ​​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 based on the CAD block definition library and the generated text description library. Determine whether the assigned attribute information requires querying the block definition library for the CAD block and drawing method. If so, determine the block to be inserted based on the generated CAD block definition library and insert it at the corresponding location. If not, determine the drawing method for the CAD drawing, draw the corresponding CAD drawing according to the method, and query the generated text description library to add text descriptions to the blocks and drawings in the drawing, thus completing the drawing.

[0032] An application of a method for automatically generating CAD graphics based on latitude and longitude, the method being used for the automatic drawing of construction drawings for communication lines.

[0033] The CAD versions supported by this method are AutoCAD 2016 and above, and GstarCAD 2000 and above.

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

[0035] General requirements for the device environment in specific application examples:

[0036] Supported CAD versions: AutoCAD 2016 and above, GstarCAD 2000 and above. Supports data input in tabular and JSON formats; supports online and desktop data input.

[0037] Input data for drawing fiber optic cable routes: Input data type: xlsx, xls, csv, or json format; Input image type: jpg or png format; Input data content: name, latitude and longitude [longitude + latitude], type, specifications, and terrain; Purpose of input data content: Latitude and longitude [longitude + latitude] are used for positioning and calculating length; The name in the input data must match the legend library name. The name + type + specifications in the input data determine the legend to be used in CAD.

[0038] Detailed description of fiber optic cable routing:

[0039] Names: 12 types including overhead route, direct burial route, wall route, duct route, trench route, and intra-office route, consistent with the legend library names. Latitude and Longitude [Longitude + Latitude]: A series of latitude and longitude trajectory points similar to 108.16556633,23.67925478; 108.16544563,23.67923881.

[0040] Types: Overhead routes are categorized into three types: newly built pole type, newly added suspension wire type, and existing suspension wire type. Overhead route specifications are categorized into three specifications: 2.2mm suspension wire, 2.6mm suspension wire, and 3.0mm suspension wire. Direct-buried routes are categorized into three specifications: composite soil, soft stone, and hard stone. Wall routes are categorized into three types: existing suspension wire type, newly added suspension wire type, and nail-mounted type. Pipe routes, trench routes, and intra-office routes: There is no "type" parameter; the type input in the Ovi input table is empty.

[0041] Terrain: There are four types of terrain: plains, hills, mountains, and urban areas. Hills are the default terrain. If the terrain field in the input table is empty, it means that the terrain is hills.

[0042] Drawing the fiber optic cable route: Select the pre-set legend by 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 in CAD according to the settings.

[0043] Specific application example 2: Drawing communication tag points:

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

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

[0046] Types: Existing poles and newly built poles are divided into four types: 7m, 8m, 9m, and 10m. 7m is the default type; if the input is empty, the default type is 7m. Existing marker stones and newly built marker stones are divided into three types: ordinary, monitoring, and junction pit. Ordinary is the default type; if the input is empty, the default type is ordinary. Existing junction boxes and newly built junction boxes are divided into three types: overhead, conduit, and direct burial. The type of junction box is determined by the label location. The default input is not to enter any information. Those placed next to overhead routes are overhead type, those placed next to direct burial routes are direct burial type, and those placed next to conduit routes are conduit type. Existing optical distribution boxes and newly built optical distribution boxes are divided into three types: floor-standing, overhead, and wall-mounted. Existing fiber optic distribution boxes and newly built fiber optic distribution boxes are divided into two types: pole-mounted and wall-mounted. The type is determined by the label location; those closer to the pole are pole-mounted, otherwise they are wall-mounted. Existing and newly built power supply lines are categorized as pole-mounted and wall-mounted. The type is determined by the label location. The default input from Aowei is not to enter this type. Lines closer to the pole are pole-mounted; otherwise, they are wall-mounted. Power protection is categorized into 220V, 380V, 1KV, and 10KV. Existing and newly built manholes are categorized into manholes, SK1, SK2, and SK3 specifications. The default is SK1. If the type field in the input table is empty, it indicates that the type is SK1.

[0047] Specifications: Existing junction boxes and newly built junction boxes are available in 6 specifications: 12 cores, 24 cores, 36 cores, 48 ​​cores, 96 cores, and 144 cores. Existing optical distribution boxes and newly built optical distribution boxes are available in 5 specifications: 96 cores, 144 cores, 288 cores, 576 cores, and 1152 cores. Existing fiber distribution boxes and newly built fiber distribution boxes are available in 4 specifications: 16 cores, 32 cores, 48 ​​cores, and 72 cores. Existing and newly built top-and-bottom connectors are available in 2 specifications: Φ50mm and Φ80mm.

[0048] Terrain: Includes three terrain types: soil, soft rock, and hard rock. Soil is the default. If the terrain field in the input table is empty, it indicates that the terrain is soil. Landing Point: Includes the origin and other text. The origin indicates that the landing point is itself. Other text indicates the source of the landing point. All fields are required and cannot be left blank. See the input table for details on which fields need to be filled in. Text Description: If entered, it will be drawn in CAD according to the rules; otherwise, it will be ignored. Near / Next to: Indicates that the straight-line distance between the center points of two labels is less than 3 meters.

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

[0050] Based on the input latitude and longitude points, draw the pole points along the fiber optic cable route and set the corresponding parameters for each point. Select the appropriate legend based on the input information and insert the corresponding legend onto the pole's latitude and longitude coordinates. First, draw the poles with the input latitude and longitude coordinates. Then, automatically add latitude and longitude points along the overhead route according to the set random distance and remaining maximum distance principles, thus automatically drawing the poles.

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

[0052] The drawing of guy wires follows the principle of automatic drawing without input. Based on the fiber optic cable route and the drawn poles, new guy wires are drawn according to the principle of drawing new suspension wires and existing guy wires are drawn using existing suspension wires. One guy wire is drawn on the first pole and the last pole, with the direction of the guy wire consistent with the direction of the route trajectory, and the arrow pointing in the opposite direction of the pole. Guy wires are drawn on poles at intermediate turning points: for poles with an angle greater than 120 degrees, one guy wire is added, with the guy wire aligned with the center line of the angle of the route trajectory, and the arrow pointing in the opposite direction of the pole; for poles with an angle of less than or equal to 120 degrees, two guy wires are added, with the guy wires consistent with the direction of the line, and the arrow pointing in the opposite direction of the pole.

[0053] Specific application example 2-3: Drawing ground lines using a string method:

[0054] Based on specific application example 2-2, for poles where new guy wires have been drawn, draw a guy wire-type ground wire on the same pole.

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

[0056] Draw the latitude and longitude points of the struts in CAD based on the input. Insert corresponding legends at the latitude and longitude points of the struts based on the input, with the arrows on the struts pointing towards the center point of the pole and perpendicular to the routing direction. The latitude and longitude of the strut labels are automatically corrected to the latitude and longitude of the nearest pole label.

[0057] Specific application example 2-5: Drawing of cement retaining blocks:

[0058] Draw the latitude and longitude points of the concrete retaining wall in CAD based on the input. Insert the corresponding legend on the latitude and longitude points of the concrete retaining wall based on the input, and ensure that the center point of the concrete retaining wall coincides with the center point of the corresponding utility pole. The latitude and longitude of the concrete retaining wall label is automatically corrected to the latitude and longitude of the nearest utility pole label.

[0059] Specific application example 2-7: Well drawing:

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

[0061] Tag location correction: The latitude and longitude of the well tag are automatically corrected to the centerline of the nearest pipeline route.

[0062] Specific application example 2-8: Drawing of buried marker stones:

[0063] Draw the latitude and longitude points of the marker stone in CAD based on the input. Insert the corresponding legend on the marker stone's latitude and longitude points based on the input, and adjust the orientation of the marker stone legend to be perpendicular to the route. Label positioning correction: The latitude and longitude of the marker stone label are automatically corrected to the centerline of the nearest pipeline route.

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

[0065] Draw the latitude and longitude points of the junction box in CAD based on the input. Insert the corresponding legend at the latitude and longitude points of the junction box based on the input. The center point of the junction box legend should be consistent with the center point of the route. If the latitude and longitude coordinates of the junction box legend are consistent with the latitude and longitude coordinates of the pole, then the junction box legend and the pole legend should be tangent when drawing. Determine the type of junction box based on the label position. The default input from Aowei is not to input. Junction boxes with latitude and longitude points next to overhead routes are overhead type; those placed next to direct-buried routes are direct-buried type; and those placed next to conduit routes are conduit type. Select one of the following based on the input: 12 cores / 24 cores / 36 cores / 48 cores / 96 cores / 144 cores.

[0066] Specific application example 2-10: Drawing of optical cross-section box:

[0067] Draw the latitude and longitude points of the optical distribution box in CAD based on the input. Select one of the following based on the information in the OVC input table: 96 cores / 144 cores / 288 cores / 576 cores / 1152 cores. Draw the legend: insert the corresponding legend at the latitude and longitude points of the optical distribution box based on the input.

[0068] Floor-standing fiber optic distribution box: The long side of the legend is parallel to the route direction. Overhead fiber optic distribution box: The long side of the legend is parallel to the route direction, and the legend is tangent to the pole. Wall-mounted fiber optic distribution box: The long side of the legend is parallel to the route direction.

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

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

[0071] Specific application example 2-12: Drawing top and bottom lines. Draw the latitude and longitude points for top and bottom lines in CAD based on the input; Specifications: Select one of Φ50mm / Φ80mm / Φ100mm based on the input.

[0072] Legend drawing involves inserting the corresponding legend at the input latitude and longitude points for the guide rails. For wall-mounted guide rails: the legend is tangent to the route. For pole-mounted guide rails: the legend is tangent to the pole.

[0073] Specific application example 2-13

[0074] Draw base stations, aggregation rooms, leased lines, and indoor distribution points in CAD based on the input. Insert corresponding legends at the latitude and longitude points of base stations, aggregation rooms, leased lines, and indoor distribution points based on the input. Place the legends east-west, starting from the side of the legend closest to the route.

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

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

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

[0078] If the power protection intersects with the overhead route, draw the corresponding legend for the direct-buried ground wire on the poles on both sides of the power protection. The base point of the legend is consistent with the center point of the pole and does not overlap with other legends.

[0079] Specific application example 3: Drawing terrain:

[0080] Ovi Input: Input data type: xlsx, xls, csv, or json format. Input image type: jpg or png format. Input data content: Name, latitude and longitude [longitude + latitude], type, specifications, number / name, and text description. The function of the content in the input data: The name in the input data must match the legend library name. The name + type in the input data determines the legend to be used in CAD. Latitude and longitude [longitude + latitude] are used for positioning and calculating the number of elements.

[0081] General instructions for terrain mapping: Names: 17 types including roads, rivers, houses, etc., consistent with the legend library names. Latitude and Longitude [Longitude + Latitude]: A series of latitude and longitude points similar to 108.16556633,23.67925478; 108.16544563,23.67923881, or latitude and longitude points similar to 108.16556633,23.67925478.

[0082] Types: Roads are divided into three types: village roads, county roads, national highways, and urban roads. Text description: If the input data contains entries, they will be drawn in CAD according to the rules; otherwise, they will be left unprocessed.

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

[0084] Specific application example 3-1: Pole route drawing for other operators:

[0085] Draw the latitude and longitude points of other operators' pole lines in CAD based on the input. Connect the latitude and longitude points of other operators' pole lines with lines, and draw the contents of the input number / name on the lines at 200-meter intervals.

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

[0087] Draw the latitude and longitude points of the road in CAD based on the input. Connect the latitude and longitude points of the road with a line based on the input, and use the road line as the center line. Replace it with two spline curves of a certain width. At the same time, draw a single line of text on the road center line at intervals of 150. The direction of the single line of text is consistent with the road center line, and the content is the number / name input by Ovi.

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

[0089] Draw the river's latitude and longitude points in CAD based on the input. Connect the river's latitude and longitude points with a line, using the road line as the centerline, and replace it with two spline curves of a certain width. Simultaneously, draw two hidden lines between the two lines. At every 150 units, draw a single line of text on the river's centerline, with the text direction consistent with the road's centerline, and the content being the number / name input from Ovi.

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

[0091] Draw the house's latitude and longitude points in CAD based on the input. Use the information entered in the number / name field. If no input is provided, draw a rectangle with a length of 12 meters, based on the line formed by the latitude and longitude of points 1 and 2. The height of the rectangle is the vertical distance from point 3 to the line connecting points 1 and 2, and the remaining length is used as the spacing between rectangles. When a place name is entered, draw a rectangle with the length of the latitude and longitude distance between points 1 and 2 and the height of the vertical distance from point 3 to the line connecting points 1 and 2. Place the number / name at the center of the rectangle.

[0092] Specific application examples 3-5: Drawing of clusters of houses:

[0093] Draw the latitude and longitude points of the cluster of houses in CAD based on the input. Within the area formed by the cluster of houses, fill with a rectangle with a length of 6 and a width of 5, then delete the rectangles that extend beyond the boundaries. Draw the characters for "house" at the center point of each house.

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

[0095] Based on the input, draw the latitude and longitude points of the key reference points in CAD. Connect the latitude and longitude points with lines to form a region. Draw the text containing the number / name information in the center of the region.

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

[0097] Draw the latitude and longitude points of the entire perimeter wall in CAD based on the input. Connect the latitude and longitude points to form a line, and then draw perpendicular lines at regular intervals on this line.

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

[0099] Legend selection: Bridges are often needed at the intersections of rivers and roads, railways, or railways and roads. Select the legend corresponding to the bridge. If the river intersects with a road: draw a bridge with a width of (road width + 2) using the road's centerline as the direction. If the river or road intersects with a railway: draw a bridge with a width of 5 using the railway's centerline as the direction.

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

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

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

[0103] Based on the input, draw the latitude and longitude points of the mountain range in CAD. Connect the latitude and longitude points to form a closed multi-curve, and then reduce the size by 0.7 times and 0.3 times to form three closed multi-curves.

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

[0105] Based on the input, draw the latitude and longitude points of a group of trees, orchards, paddy fields, dry land, and cemeteries in CAD. Connect the latitude and longitude points with lines to form a region. Fill the region with the corresponding legend at a certain density.

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

[0107] Draw the latitude and longitude points pointing to the road in CAD based on the input. Insert corresponding legends at the latitude and longitude points pointing to the road based on the input. The arrows in the legends point to the start or end of the road centerline, and the text direction and arrows are parallel to the road centerline.

[0108] Specific application example 4: Text drawing:

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

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

[0111] 4-1 Numerical labeling of route length:

[0112] The numerical value is equal to the length of the route segment multiplied by the labeling coefficient. The adjustment coefficient is a number greater than 1, which can be selected or adjusted in the template settings.

[0113] Base point labeling: For overhead routes: the route's start point, end point, and pole center point. For duct routes: the manhole center point. For buried routes: the route's start point and the base point of the buried marker stone. For wall-mounted routes: the route's start point, turning point, and end point. For trench and intra-office routes: the route's start point, turning point, and end point. Route segment selection: Line segments between any two adjacent base points in the route need to be labeled. Labeling method: Displayed directly above or below the midpoint of the route segment (selectable in template settings), with numbers perpendicular to the route segment. Standard style: Prefix text + number or number + suffix text; Prefix text and suffix text (set in "Label Text Settings" in template settings).

[0114] 4-2 No text input.

[0115] 4-2-1 Text description at the junction box icon

[0116] Input content: Specification + Name / Number. Input location and method: Use single-line text drawing and place it directly above the legend, parallel to the routing direction;

[0117] 4-2-2 Text description at the top and bottom guide icons, input content: The content near the original top and bottom guide icon legend is (first line: 1 top guide for route); The content near the newly created top and bottom guide icon legend is (first line: 1 top guide for route + new addition + icon specification + steel pipe; second line: 1 28 / 32 plastic sub-pipe).

[0118] Input location and method: Drag the arrow from the icon to display it near the legend, without overlapping with other text and non-topographic legends, and the text direction is due east-west.

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

[0120] Input content: Install electrical protection panels, unit: meters. The numbers in parentheses are set in the template workload rules settings.

[0121] Input location and method: Drag the arrow from the icon to display it near the legend, without overlapping with other text and non-topographic legends, and the text direction is due east-west.

[0122] 4-2-4 Text description at the intersection of road, overhead route, and wall-mounted route. Input content: Install one 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, drag an arrow from the icon to display it near the legend, without overlapping with other text and non-topographic legends. The text direction should be due east-west.

[0123] 4.3 Text Description for Label Name: Input Content: Enter the content from the text description column corresponding to "Text Description" in the Ovi input table. Input Location and Method: Draw a single line of text directly at the trajectory point. If there is other text or non-topographic legend at the trajectory point, use an arrow to drag to a position that does not overlap with other text or non-topographic legend. The text direction is due east-west.

[0124] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A method for automatically generating CAD graphics based on latitude and longitude, characterized in that: The method includes the following steps: Step 1: Summarize the graphic attribute information of the communication line construction industry to obtain an attribute library; Step 2: Input latitude and longitude information and convert it to CAD plane coordinates; Step 3: Draw the CAD coordinate base map based on 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 the generated text description library; The specific process in step 2 is as follows: automatically convert the input latitude and longitude information into planar coordinates, convert the common year coordinates into spherical coordinates, and finally project the spherical coordinates into CAD planar coordinates; The specific process in step 3 is as follows: Determine whether the latitude and longitude information is a single point or two or more points. If it is a single point, 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 two or more points, analyze the continuity of the latitude and longitude points, and then obtain several latitude and longitude combinations. The latitude and longitude points within the latitude and longitude combination are continuous. Determine the mapping scale and drawing method for each latitude and longitude combination, and then draw CAD lines or graphics for each latitude and longitude combination. Then summarize all the drawn CAD lines and CAD graphics, and then determine whether it is necessary to automatically add points. If not, the drawing of the CAD coordinate base map is completed. If it is necessary to add points, draw CAD points on the CAD lines or CAD graphics to obtain the CAD coordinate base map.

2. The method for automatically generating CAD graphics based on latitude and longitude according to claim 1, characterized in that: The specific process of step 1 is as follows: Analyze the industry standards for communication line construction, determine the general attribute information of graphics, analyze classic industry cases to summarize the attribute information of graphics, 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 into the database to obtain the information attribute database.

3. The method for automatically generating CAD graphics based on latitude and longitude according to claim 1, characterized in that: Step 5 is as follows: Input the line attribute information to query the attribute library to see if the corresponding line attribute is included. If it is included, 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.

4. The method for automatically generating CAD graphics based on latitude and longitude according to claim 1, characterized in that: Step 6 is as follows: Determine whether the assigned attribute information, CAD block, and drawing method require querying the block definition library. If so, determine the block to be inserted based on the generated CAD block definition library and insert the block at the corresponding position. If not, determine the drawing method of the CAD drawing, draw the corresponding CAD drawing according to the corresponding drawing method, query the generated text description library, add text descriptions to the block and drawing in the drawing, and complete the drawing.

5. The application of the method for automatically generating CAD graphics based on latitude and longitude according to any one of claims 1-4, characterized in that: The method for automatically generating CAD graphics based on latitude and longitude is applied to the automatic drawing of construction drawings for 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