Method, device, equipment and storage medium for drawing guide signs
By automatically generating line and surface data of guide lines and guide signs using the horizontal auxiliary lines at road intersections, the problem of unreal data of guide signs in the existing technology is solved, efficient guide sign drawing is realized, and a variety of drawing software is satisfied. Require.
Patent Information
- Application Number
- CN202010761864.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-31
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2040-07-31
AI Technical Summary
The method of drawing traffic road guide signs in the prior art requires first drawing a model or referring to the basic image, which is time-consuming and labor-intensive. After importing other drawing software, the corresponding drawing requirements cannot be met and real line and surface data cannot be generated.
Through the horizontal auxiliary lines of road intersections, the guide lines of each lane are automatically generated, and modeled according to the guide lines to generate real line and surface data graphic files of the guide signs. It can effectively draw road intersections and guide signs in other drawing software. .
It effectively reduces the workload of digitalization, and the generated guide signs are real line and surface data, which meets the requirements of the drawing software and improves the drawing efficiency and accuracy.
Smart Images

Figure CN114067026B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of road traffic technology, and relates to but is not limited to a method and device, equipment, and storage medium for drawing guide signs. Background Art
[0002] The method of drawing traffic road guide signs in related technologies requires first drawing a model of the guide sign and then inserting it into the corresponding position one by one, which is time-consuming and laborious; or referring to the basic image, the prepared guide sign mapping expression is placed at the traffic intersection one by one, but the guide sign mapping table is not real line or surface data, and cannot meet the corresponding mapping requirements after being imported into other mapping software. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a method and device, equipment, and storage medium for drawing guide signs to solve at least one problem existing in the prior art, which at least solves the problem that the drawn guide signs are not real line and surface data and cannot meet the corresponding mapping requirements after being imported into other mapping software.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for drawing a guide sign, the method comprising:
[0006] Through a first application, the line elements of the guide sign are drawn according to the horizontal auxiliary lines of the road intersection; wherein the horizontal auxiliary lines are perpendicular to the traffic markings of the road and are used to determine the position of the guide sign; according to the line elements of the guide sign, the guide sign is modeled to obtain the surface elements of the guide sign; according to the surface elements of the guide sign, a first graphic file of the guide sign is generated; wherein the first graphic file is used to be imported into a second application, and the second application is used to draw the road intersection and the guide sign.
[0007] In a second aspect, an embodiment of the present application provides a device for drawing a guide sign, the device comprising a drawing module, a modeling module and a generating module, wherein:
[0008] The drawing module is used to draw the line elements of the guide sign according to the horizontal auxiliary lines of the road intersection through the first application; wherein the horizontal auxiliary lines are perpendicular to the traffic markings of the road and are used to determine the position of the guide sign; the modeling module is used to model the guide sign according to the line elements of the guide sign to obtain the surface elements of the guide sign; the generation module is used to generate a first graphic file of the guide sign according to the surface elements of the guide sign; wherein the first graphic file is used to be imported into the second application, and the second application is used to draw the road intersection and the guide sign.
[0009] In a third aspect, an embodiment of the present application provides a device for drawing guide signs, including a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and the processor implements the steps in the above-mentioned method for drawing guide signs when executing the computer program.
[0010] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the above-mentioned method for drawing guide signs.
[0011] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0012] In an embodiment of the present application, first, the line elements of the guide sign are drawn according to the horizontal auxiliary lines of the road intersection through a first application; wherein the horizontal auxiliary lines are perpendicular to the traffic markings of the road and are used to determine the position of the guide sign; according to the line elements of the guide sign, the guide sign is modeled to obtain the surface elements of the guide sign; according to the surface elements of the guide sign, a first graphic file of the guide sign is generated; wherein the first graphic file is used to be imported into a second application, and the second application is used to draw the road intersection and the guide sign; in this way, the guide lines of each lane can be automatically generated, which effectively reduces the workload of digitization, and the guide signs drawn on the basis of the guide lines are real line and surface data, which meet the drawing requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work, among which:
[0014] Figure 1 A schematic diagram of the implementation flow of the method for drawing a guide sign provided in an embodiment of the present application;
[0015] Figure 2 A schematic diagram of an optional flow chart of a method for drawing a guide sign provided in an embodiment of the present application;
[0016] Figure 3 Another optional flowchart of the method for drawing a guide sign provided in an embodiment of the present application;
[0017] Figure 4A A data flow diagram of a method for drawing guide signs provided in an embodiment of the present application;
[0018] Figure 4B A schematic diagram of the implementation flow of the method for drawing a guide sign provided in an embodiment of the present application;
[0019] Figure 4C A schematic diagram of auxiliary lines and guide lines for a certain traffic section provided in an embodiment of the present application;
[0020] Figure 4D A schematic diagram of the implementation process of drawing a guide sign provided in an embodiment of the present application;
[0021] Figure 4E A schematic diagram of auxiliary lines and guide signs for a certain traffic section provided in an embodiment of the present application;
[0022] Figure 5 A schematic diagram of the structure of a guide sign drawing device provided in an embodiment of the present application;
[0023] Figure 6 A schematic diagram of the hardware entity of a guide sign drawing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. The following embodiments are used to illustrate the present application, but are not intended to limit the scope of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0025] Before introducing the method for drawing a guide sign provided in the embodiment of the present application in detail, the method for drawing a guide sign in the related art of the embodiment of the present application is first analyzed and explained:
[0026] AutoCAD (Autodesk Computer Aided Design) is an automatic computer-aided design software developed by Autodesk in 1982. It is currently a popular drawing tool. AutoCAD has a good user interface and can perform two-dimensional drawing, detailed drawing, design documents, and basic three-dimensional design through interactive menus or command lines.
[0027] When drawing various guide signs at traffic intersections in AutoCAD (go straight, go straight or turn left, go straight or turn right, turn left, turn right, U-turn, no U-turn, go straight or U-turn, turn left or right, left turn or need to merge left, right turn or need to merge right, turn left or U-turn, pedestrian crossing warning marking line), it is often not intuitive enough to represent different guide signs with simple straight lines. In this case, it is necessary to draw models of various guide signs first, and then insert various guide signs in sequence at the corresponding positions of the intersection. However, when the data range is large and there are many intersections involved, this method will consume a lot of time and manpower.
[0028] ArcGIS can create, share, and use smart maps; compile geographic information; create and manage geographic databases; solve problems using spatial analysis; create map-based applications; and communicate and share information using geographic and visualization capabilities.
[0029] In ArcGIS, with reference to the basic image, the prepared guide sign cartographic expressions are placed at traffic intersections in sequence. Although the expression effect is achieved in ArcGIS, after the data is exported to AutoCAD, the cartographic expression in ArcGIS is not the real line and surface data in AutoCAD data, which makes it difficult to meet the AutoCAD mapping requirements.
[0030] In general, both AutoCAD and ArcGIS can realize the drawing of traffic signs, but the drawing method on AutoCAD is either not intuitive enough with simple straight lines, or the model of the guide sign is drawn first and then inserted into the corresponding positions one by one, which is time-consuming and laborious. The drawing method on ArcGIS meets the mapping expression requirements on ArcGIS, but cannot meet the mapping requirements on AutoCAD.
[0031] Based on at least one of the above-mentioned problems existing in the related technology, the embodiments of the present application provide a method and device, equipment, and storage medium for drawing guide signs, which automatically generates guide lines for each lane through the horizontal auxiliary lines at the road intersection, effectively reducing the workload of digitization, and the guide signs drawn based on the guide lines are real line and surface data, which meet the drawing requirements.
[0032] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0033] The present application embodiment provides a method for drawing a guide sign. Figure 1 A schematic diagram of the implementation flow of the method for drawing a guide sign provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes:
[0034] Step S110, drawing the line elements of the guide sign according to the horizontal auxiliary lines of the road intersection through the first application.
[0035] Here, the first application is the ArcPy site package, which provides users with an entry to operate all geoprocessing tools (including extension modules) using the Python language, and provides a variety of useful functions and classes for processing and querying GIS data. The embodiment of the present application draws the line elements and surface elements of guide signs based on ArcPy.
[0036] Here, the transverse auxiliary line at the road intersection is a traffic marking line perpendicular to the road and is used to determine the position of the guide sign.
[0037] It should be noted that the horizontal auxiliary line can be a guide sign auxiliary line in ArcGIS (ArcGIS application written in ArcPy), including a start point and an end point, and has different content attributes. It can be drawn by data processing personnel based on map images, and the type of guide sign for each lane is recorded in sequence from the start point to the end point of the horizontal auxiliary line, and written into the content attribute row of the horizontal auxiliary line.
[0038] Here, the line element of the guide sign is a guide line layer (feature class, also called element), which is generally a schematic guide line composed of simple straight lines, with coordinates and type attributes, where the coordinates can be determined according to the coordinates of the auxiliary lines, and the type attributes correspond one by one to the types of guide signs preset for each lane, such as straight ahead, straight ahead or left turn, straight ahead or right turn, left turn, right turn, U-turn, etc.
[0039] Step S120: Modeling the guide sign according to the line element of the guide sign to obtain the surface element of the guide sign.
[0040] Here, the surface element of the guide sign refers to the guide sign layer, which can be a more vivid graphic than the guide line.
[0041] Here, the guide sign is modeled to obtain the surface element of the guide sign, that is, according to the size of the guide sign under a specific scale, the midpoint coordinates of the guide line are used as the center of the guide sign, the coordinates of each node of each guide sign are calculated, and each node is connected in sequence to draw the guide sign.
[0042] Step S130: generating a first graphic file of the guide sign according to the surface element of the guide sign.
[0043] Here, the first graphic file is used to import into the second application, and may be a shapefile in ArcGIS, which is used to store each guide sign and the corresponding type attribute.
[0044] Here, the second application is used to draw the road intersection and the guide signs, and may be AutoCAD.
[0045] In an embodiment of the present application, the line elements of the guide sign are drawn according to the transverse auxiliary lines of the road intersection through a first application; wherein the transverse auxiliary lines are perpendicular to the traffic markings of the road and are used to determine the position of the guide sign; according to the line elements of the guide sign, the guide sign is modeled to obtain the surface elements of the guide sign; according to the surface elements of the guide sign, a first graphic file of the guide sign is generated; wherein the first graphic file is used to be imported into a second application, and the second application is used to draw the road intersection and the guide sign; in this way, the guide lines of each lane can be automatically generated, which effectively reduces the workload of digitization, and the guide signs drawn on the basis of the guide lines are real line and surface data, which meet the drawing requirements.
[0046] In some embodiments, the line element of the guide mark is a guide line, and the number of the guide lines is N. Figure 1 , Figure 2 An optional flow chart of a method for drawing a guide sign provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the above step S110 can be implemented by the following steps:
[0047] Step S210: reading the content attributes and coordinates of the horizontal auxiliary line through the first application.
[0048] Here, the content attribute represents the number and type attributes of the guide lines corresponding to the horizontal auxiliary line. For example, if the content attribute of the horizontal auxiliary line is "turn left / go straight / go straight / go straight or turn right", it means that there are 4 lanes at the intersection where the horizontal auxiliary line is located, and 4 guide lines with type attributes of turn left, go straight, go straight, go straight or turn right need to be created in sequence in the vertical direction of the horizontal auxiliary line.
[0049] Here, the coordinates of the horizontal auxiliary line include the starting point coordinates and the ending point coordinates of the horizontal auxiliary line.
[0050] One possible implementation method is to read the content attributes of the horizontal auxiliary line by using the ArcPy search cursor (SearchCursor) method; and read the starting point and end point of the auxiliary line by using the cursor value (row.getValue) method.
[0051] Step S220, splitting the content attributes of the horizontal auxiliary lines to obtain type attributes of N guide lines.
[0052] Here, N is a positive integer greater than or equal to 1, that is, the horizontal auxiliary line corresponds to at least one guide line, and each guide line has its own type attribute.
[0053] Here, the content attributes of the horizontal auxiliary line can be split by Python method. For example, the content attributes of the horizontal auxiliary line are: turn left / go straight / go straight / go straight or turn right. After splitting, the type attributes corresponding to the four guide lines are obtained, which are "turn left", "go straight", "go straight", and "go straight or turn right".
[0054] It should be noted that, for multiple guide lines on the same auxiliary line, except for the "content" attribute, all other attribute fields are derived from the attributes of the auxiliary line. For example, several attributes of an auxiliary line (a, turn left / go straight / go straight / go straight or turn right, c, d) can be obtained through Python processing (a, turn left, c, d), (a, go straight, c, d), (a, go straight, c, d), (a, go straight or turn right, c, d), which correspond to the attributes of the guide lines on the auxiliary line. The type attributes of different guide lines can be the same or different. For example, the type attribute of the second and third guide lines mentioned above is both "straight", which is different from the type attributes of the first and fourth guide lines.
[0055] Step S230, determining the position areas of the N guide lines according to the starting point coordinates and the ending point coordinates of the horizontal auxiliary lines.
[0056] Here, the position area of the N guide lines is an area perpendicular to the transverse auxiliary line and along the driving direction.
[0057] It should be noted that when data processing personnel manually draw auxiliary lines based on map images, they will distinguish the starting point and end point of the horizontal auxiliary lines according to the lane direction on the map image. In other words, the starting point and end point of the horizontal auxiliary lines of opposite lanes are opposite. Based on the positional relationship between the starting point coordinates and the end point coordinates, determine on which side of the horizontal auxiliary line the guide line should be drawn to ensure that the corresponding guide signs always point to the correct driving direction.
[0058] Step S240: Draw the N guide lines at equal distances in the position area according to the type attributes of the N guide lines.
[0059] Here, the type attributes of the N guide lines correspond to the type attributes of the traffic signs of each lane, such as: left turn / straight / straight / straight or right turn, which means that there are 4 lanes at the intersection where the horizontal auxiliary line is located, and 4 guide lines with type attributes of left turn, straight, straight, straight or right turn need to be created in sequence in the vertical direction of the horizontal auxiliary line.
[0060] Here, in the position area, i.e., in the area perpendicular to the transverse auxiliary line and along the driving direction, N guide lines are created at equal distances, and the type attribute of each guide line, that is, the corresponding guide sign type attribute, is written.
[0061] Here, the N guide lines are arranged in order of type attributes of the N guide lines.
[0062] The above steps 220 to 240 realize "drawing the line elements of the guide sign according to the content attributes and coordinates of the horizontal auxiliary line".
[0063] Furthermore, the method also includes: saving the N guide lines into a second graphic file, and writing the type attributes of the N guide lines into the attribute rows of the corresponding guide lines respectively.
[0064] Here, the second graphic file may be a graphic file in ArcGIS, which is used to store N guide lines and corresponding type attributes. After drawing a plurality of guide lines, the type attribute of each guide line may be written accordingly.
[0065] In some embodiments, the surface element of the guide sign is a graphic. Figure 1 and Figure 2 , Figure 3 Another optional flow chart of the method for drawing a guide sign provided in an embodiment of the present application is as follows: Figure 3 As shown, in the above step S120, "modeling the guide sign according to the line element of the guide sign to obtain the surface element of the guide sign" can be achieved by the following steps:
[0066] Step S310, determining the midpoint coordinates of each of the N guide lines.
[0067] Here, the cursor value-taking method is used to read the starting point coordinates and the end point coordinates of each guide line, and the midpoint coordinates of each guide line are calculated as the center position of the guide mark at that location.
[0068] Step S320, determining the coordinates of each node on the guide mark corresponding to each guide line according to the midpoint coordinates of each guide line and the type attribute of each guide line.
[0069] Here, according to the sizes of different guide signs at various scales, all the "nodes" on the guide signs are calculated according to the sizes of each section of the guide sign, with the midpoint coordinates of the guide line as the center of the sign.
[0070] Here, the type attribute of each guide line (eg, left turn) can be read using the query cursor method of ArcPy.
[0071] Step S330, connecting the nodes in sequence to obtain a graphic of a guide mark corresponding to each guide line.
[0072] In some possible embodiments, after obtaining the graphics of the guide mark corresponding to each of the guide lines, the type attributes of the graphics of the guide mark corresponding to each of the guide lines are determined according to the type attributes of each of the guide lines; and the first graphic file is generated according to the type attributes of the graphics of the guide mark and the graphics of the guide mark.
[0073] Here, the first graphic file is a graphic file in ArcGIS, in which the graphics of the guide signs and the corresponding type attributes are saved, and can be imported into the second application, namely AutoCAD, to further draw traffic roads and insert guide signs at intersections.
[0074] Figure 4A A data flow diagram of a method for drawing a guide sign provided in an embodiment of the present application is shown in FIG. Figure 4A The method is divided into two stages: drawing a guide line and drawing a guide mark, wherein:
[0075] In the stage of drawing the guide line, the auxiliary line data 41 is first obtained, the auxiliary line coordinates and content attributes 42 are obtained, and the guide line elements 43 and the guide line graphic files 44 are generated after processing.
[0076] In the stage of drawing guide signs, the guide line coordinates and attributes 45 are first obtained from the guide line graphic file 44, and the guide sign surface elements 46 and the guide sign graphic file 44 are generated after processing.
[0077] based on Figure 4A , Figure 4B The present invention provides a schematic diagram of the implementation process of the method for drawing a guide mark according to an embodiment of the present invention, wherein the guide line drawing stage mainly includes the following steps:
[0078] S410, reading auxiliary line data to obtain auxiliary line coordinates and content attributes.
[0079] Here, the auxiliary line coordinates include the starting point coordinates and the end point coordinates of the auxiliary line, and the auxiliary line coordinates can be read using the cursor value acquisition method.
[0080] Here, you can use ArcPy's query cursor method to read the content attributes of each auxiliary line, such as: turn left / go straight / go straight / go straight or turn right.
[0081] S420, drawing guide line elements according to the auxiliary line coordinates and content attributes.
[0082] Here, the guide line feature refers to the guide line layer.
[0083] First, according to the content attributes of the auxiliary line, determine the number of lanes corresponding to the auxiliary line, that is, the number of guide signs, such as: turn left / go straight / go straight / go straight or turn right. Use the string splitting method in Python to get that there should be 4 guide signs on the auxiliary line.
[0084] Then, according to the starting point, end point and number of guide signs of the auxiliary line, a simple straight line guide line layer, i.e., the guide line, is drawn at equal distances along the driving direction perpendicular to the auxiliary line. The implementation effect is as follows: Figure 4C As shown, Figure 4C A schematic diagram of auxiliary lines and guide lines of a certain traffic section provided in an embodiment of the present application, wherein the schematic dotted lines are auxiliary lines, and the schematic solid lines perpendicular to the auxiliary lines are guide lines.
[0085] S430, saving the guide line elements into the guide line graphic file.
[0086] Here, each guide line is saved in a guide line graphic file, and the content attributes of the auxiliary lines are split and written into the attribute rows of the corresponding guide lines.
[0087] In the stage of drawing guide signs, the following steps are mainly included:
[0088] S440, reads the guide line coordinates and type attributes from the guide line graphic file.
[0089] Here, ArcPy's query cursor method is used to read the type attribute of each guide line (for example: turn left); the cursor value method is used to read the starting point coordinates and end point coordinates of the guide line, and the midpoint coordinates of the guide line are calculated as the center position of the guide mark at that location.
[0090] S450, generating guide sign surface elements.
[0091] Here, the guide sign surface element refers to the guide sign layer.
[0092] S460, generating a guide sign graphic file.
[0093] based on Figure 4B , Figure 4D A schematic diagram of the implementation process of drawing a guide sign provided in an embodiment of the present application is shown in FIG. Figure 4D As shown, the process of the above step 450 "generating guide sign surface elements" is divided into the following steps:
[0094] S4501, determine the type attribute of the guide sign.
[0095] S4502, draw directional sign graphics.
[0096] During the implementation process, the guide lines are classified according to their type attributes. First, various types of guide signs are modeled: taking the midpoint coordinates of the guide line as the center, the coordinates of each node on the guide sign are calculated, and then the nodes are connected in sequence to generate a guide sign graph. That is, the node coordinates of each guide sign are calculated, and the guide sign graph is drawn according to each node.
[0097] The above step S460 may be further performed as follows: "saving the guide sign graphic to the guide sign graphic file, and writing the guide sign attributes".
[0098] Here, we first determine the different types of attributes of the guide line, then draw the corresponding sign shapes, and finally store all the guide sign graphics in the ArcGIS graphic file. The implementation effect is as follows: Figure 4E As shown, Figure 4E A schematic diagram of auxiliary lines and guide signs for a certain traffic section provided in an embodiment of the present application, wherein the dashed lines are auxiliary lines, and the solid lines perpendicular to the auxiliary lines are guide lines.
[0099] In an embodiment of the present application, based on the lateral auxiliary lines at the intersection, a simple straight line schematic guide line is first generated in each lane, and then a guide sign on the lane is drawn based on the guide line. The drawn guide sign is a real line element or surface element, rather than a cartographic expression in ArcGIS. Therefore, when the data is exported to AutoCAD, it is also real line data in AutoCAD.
[0100] An embodiment of the present application provides a device for drawing guide signs, which includes various modules and various units included in each module, and can be implemented by a processor in a computer device; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0101] Figure 5 A schematic diagram of the structure of a device for drawing guide signs provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the drawing device 500 includes: a drawing module 510, a modeling module 520 and a generating module 530, wherein:
[0102] The drawing module 510 is used to draw the line elements of the guide sign according to the horizontal auxiliary lines of the road intersection through the first application; wherein the horizontal auxiliary lines are perpendicular to the traffic markings of the road and are used to determine the position of the guide sign; the modeling module 520 is used to model the guide sign according to the line elements of the guide sign to obtain the surface elements of the guide sign; the generation module 530 is used to generate a first graphic file of the guide sign according to the surface elements of the guide sign; wherein the first graphic file is used to be imported into the second application, and the second application is used to draw the road intersection and the guide sign.
[0103] In some embodiments, the drawing module 510 includes a reading unit and a drawing unit, wherein: the reading unit is used to read the content attributes and coordinates of the horizontal auxiliary line through a first application; wherein the content attributes characterize the number and type attributes of the guide lines corresponding to the horizontal auxiliary line; and the drawing unit is used to draw the line elements of the guide sign according to the content attributes and coordinates of the horizontal auxiliary line.
[0104] In some embodiments, the number of guide lines is N, the coordinates of the horizontal auxiliary lines include the starting point coordinates and the ending point coordinates of the horizontal auxiliary lines, and the drawing unit includes a splitting subunit, a determining subunit and a drawing subunit, wherein the splitting subunit is used to split the content attributes of the horizontal auxiliary lines to obtain the type attributes of N guide lines; wherein N is greater than or equal to 1; the determining subunit is used to determine the position area of the N guide lines according to the starting point coordinates and the ending point coordinates of the horizontal auxiliary lines; the drawing subunit is used to draw the N guide lines equidistantly within the position area according to the type attributes of the N guide lines; wherein the N guide lines are arranged in the order of the type attributes of the N guide lines.
[0105] In some embodiments, the drawing device further includes a saving module for saving the N guide lines into a second graphic file, and writing the type attributes of the N guide lines into the attribute rows of the corresponding guide lines respectively.
[0106] In some embodiments, the surface element is a graphic, and the modeling module includes a first determination unit, a second determination unit and a connection unit, wherein the first determination unit determines the midpoint coordinates of each of the N guide lines; the second determination unit is used to determine the coordinates of each node on the guide mark corresponding to each guide line according to the midpoint coordinates of each guide line and the type attribute of each guide line; the connection unit is used to connect the nodes in sequence to obtain the graphic of the guide mark corresponding to each guide line.
[0107] In some embodiments, the generation module includes a third determination unit and a generation unit, wherein: the third determination unit is used to determine the type attribute of the graphic of the guide mark corresponding to each of the guide lines according to the type attribute of each of the guide lines; the generation unit is used to generate the first graphic file according to the type attribute of the graphic of the guide mark and the graphic of the guide mark.
[0108] It should be noted that the description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0109] Correspondingly, an embodiment of the present application provides a device for drawing a guide sign, such as a computer device, Figure 6 A schematic diagram of the hardware entity of the guide sign drawing device provided in the embodiment of the present application, such as Figure 6 As shown, the hardware entity of the device 600 includes: a processor 601, a communication interface 602 and a memory 603, wherein
[0110] Processor 601 generally controls the overall operation of device 600 .
[0111] The communication interface 602 may enable the device 600 to communicate with other terminals or servers via a network.
[0112] The memory 603 is configured to store instructions and applications executable by the processor 601, and can also cache data to be processed or processed by the processor 601 and various modules in the device 600 (for example, auxiliary line data, guide line elements or guide marking surface elements), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0113] Correspondingly, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method for drawing a guide sign provided in the above embodiment are implemented.
[0114] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0115] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0116] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0117] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0118] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment of the present application.
[0119] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0120] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for the automatic test line of the device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.
[0121] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0122] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0123] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for drawing a guide sign, characterized in that: The method comprises: Reading content attributes and coordinates of the horizontal auxiliary line through the first application; wherein the content attributes represent the number and type attributes of the guide lines corresponding to the horizontal auxiliary line; According to the content attributes and coordinates of the transverse auxiliary line, the line element of the guide sign is drawn; wherein the line element is a guide line, the number of the guide lines is N, and the coordinates of the transverse auxiliary line include the starting point coordinates and the end point coordinates of the transverse auxiliary line; the transverse auxiliary line is perpendicular to the traffic markings of the road and is used to determine the position of the guide sign; Modeling the guide sign according to the line element of the guide sign to obtain the surface element of the guide sign; Generate a first graphic file of the guide sign according to the surface element of the guide sign; wherein the first graphic file is used to import into a second application, and the second application is used to draw the road intersection and the guide sign; Drawing the line element of the guide mark according to the content attributes and coordinates of the horizontal auxiliary line includes: Splitting the content attribute of the horizontal auxiliary line to obtain type attributes of N guide lines; wherein N is an integer greater than or equal to 1; Determine the position areas of the N guide lines according to the starting point coordinates and the ending point coordinates of the horizontal auxiliary lines; According to the type attributes of the N guide lines, the N guide lines are drawn at equal distances in the position area; wherein the N guide lines are arranged in the order of the type attributes of the N guide lines.
2. The method according to claim 1, characterized in that The method further comprises: The N guide lines are saved in a second graphic file, and the type attributes of the N guide lines are respectively written into the attribute rows of the corresponding guide lines.
3. The method according to claim 2, characterized in that The surface element is a graphic, and the guide sign is modeled according to the line element of the guide sign to obtain the surface element of the guide sign, including: Determine the midpoint coordinates of each of the N guide lines; Determine the coordinates of each node on the guide mark corresponding to each guide line according to the midpoint coordinates of each guide line and the type attribute of each guide line; The nodes are connected in sequence to obtain a graphic of a guide mark corresponding to each guide line.
4. The method according to claim 3, characterized in that The step of generating a first graphic file of the guide sign according to the surface element of the guide sign comprises: According to the type attribute of each of the guide lines, determining the type attribute of the graphic of the guide mark corresponding to each of the guide lines; The first graphic file is generated according to the type attribute of the graphic of the guide sign and the graphic of the guide sign.
5. A device for drawing guide signs, characterized in that: The drawing device comprises a reading module, a drawing module, a modeling module and a generating module, wherein: The reading module is used to read the content attributes and coordinates of the horizontal auxiliary line through the first application; wherein the content attributes represent the number and type attributes of the guide lines corresponding to the horizontal auxiliary line; The drawing module is used to draw the line element of the guide sign according to the content attributes and coordinates of the horizontal auxiliary line; wherein the line element is a guide line, the number of the guide lines is N, and the coordinates of the horizontal auxiliary line include the starting point coordinates and the end point coordinates of the horizontal auxiliary line; the horizontal auxiliary line is perpendicular to the traffic markings of the road and is used to determine the position of the guide sign; The modeling module is used to model the guide sign according to the line elements of the guide sign to obtain the surface elements of the guide sign; The generation module is used to generate a first graphic file of the guide sign according to the surface elements of the guide sign; wherein the first graphic file is used to import into a second application, and the second application is used to draw the road intersection and the guide sign.
6. The drawing device according to claim 5, characterized in that: The drawing module includes a reading unit and a drawing unit, wherein: The reading unit is used to read the content attributes and coordinates of the horizontal auxiliary line through the first application; wherein the content attributes represent the number and type attributes of the guide lines corresponding to the horizontal auxiliary line; The drawing unit is used to draw the line element of the guide mark according to the content attributes and coordinates of the horizontal auxiliary line.
7. A device for drawing guide signs, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the computer program, the steps in the method according to any one of claims 1 to 4 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
