Graphical method and device of special graph, electronic equipment and medium

By decomposing the shapes and transferring the attributes of special graphics, standard graphic files are constructed, which solves the graphic problems of special symbols, line types and surface areas, realizes the accurate expression of graphics and the linkage update of attributes, and improves design efficiency and data management capabilities.

CN120707684APending Publication Date: 2025-09-26AERIAL PHOTOGRAMMETRY & REMOTE SENSING CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510892112.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

Existing technologies are unable to accurately express the graphics of special symbols, line types, and area domains, resulting in insufficient data accuracy and low production efficiency, and unable to ensure the coordinated updating of graphics and attributes.

Method used

Decompose the shape of the preset special graphics, extract the main shape and attribute information, build a standard graphic file, and transfer the attribute information to each part of the file to ensure that both the main part and the non-main part have attribute information and store it in the graphic file library.

Benefits of technology

It achieves accurate expression of special graphics and linked attribute updates, improves graphic design and management efficiency, reduces development costs and error risks, and supports the reuse and data analysis of graphics in multiple scenarios and projects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120707684A_ABST
    Figure CN120707684A_ABST
Patent Text Reader

Abstract

The invention provides a special graph patterning method and device, electronic equipment and a medium, and relates to the technical field of surveying and mapping. The method comprises the following steps: performing shape decomposition on a preset special graph to obtain a shape decomposition file of the preset special graph; the shape decomposition file at least comprises a main body shape and attribute information; the preset special graph is a graph without a corresponding graphical file in a corresponding graphical file library in a preset database; the main body shape is the shape of an existing graphical file in a graphical file library; according to the main body shape, constructing a standard graphical file corresponding to the preset special graph; transmitting the attribute information of the main body shape to each part of a standard graphical file, so that a main body part and a non-main body part in the standard graphical file have the attribute information; and storing the standard graphical file into a corresponding graphical file library in a preset database. According to the method, accurate graphical expression is carried out on the special graph, and linkage updating of the graph and the attribute is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of surveying and mapping technology, and in particular to a method, device, electronic equipment and medium for graphically displaying special graphics. Background Art

[0002] In the field of surveying, mapping and cartography, the graphical expression of special symbols, special line types and special areas has always been a technical difficulty.

[0003] At present, general symbols / line types / areas can be directly expressed by establishing symbol libraries, line type libraries or area libraries based on industry diagram specifications, such as achieving graphics through fixed size, color, shape and attributes.

[0004] However, due to the lack of standardized graphical specifications for special symbols, they are often replaced with dots or similar symbols, which cannot accurately represent shape features. Traditional line type libraries cannot accurately represent complex special line types and are often represented with zero or approximate line types, resulting in distorted topological relationships. Special surface areas with internal holes or complex topologies are also difficult to correctly represent in the database in terms of color, shape, and attribute consistency. In other words, existing technologies rely on manually selecting approximate graphic replacements, which cannot accurately represent special symbols, line types, or surface areas, nor can they ensure the coordinated update of graphics and attributes, resulting in insufficient data accuracy and low production efficiency. Summary of the Invention

[0005] The purpose of the embodiments of the present application is to provide a method, device, electronic device and medium for graphically expressing special graphics, so as to accurately graphically express special graphics and ensure the linkage update of graphics and attributes.

[0006] In order to achieve the above objectives, the technical solutions adopted in the embodiments of the present application are as follows: In a first aspect, an embodiment of the present application provides a method for graphically displaying a special graphic, including: Performing shape decomposition on a preset special graphic to obtain a shape decomposition file of the preset special graphic; wherein the shape decomposition file includes at least: a main body shape and attribute information of the main body shape; the preset special graphic is a graphic for which no corresponding graphic file exists in a corresponding graphic file library in a preset database; and the main body shape is a shape for which a graphic file exists in the graphic file library; Constructing a standard graphic file corresponding to the preset special graphic according to the main body shape; Transferring the attribute information of the main body shape to each part of the standard graphic file, so that both the main body part and the non-main body part of the standard graphic file have the attribute information; The standard graphical file is stored in a corresponding graphical file library in a preset database.

[0007] Optionally, the preset special graphic is an arrow symbol graphic; the main body shape is a main body line, and the attribute information of the main body shape is the attribute information of the main body line; The step of constructing a standard graphic file corresponding to the preset special graphic according to the main body shape includes: Modify the width information of the main body line to obtain the indicator line of the arrow symbol graphic; Copying the indicator line to obtain two copy lines parallel to the indicator line, and shortening the lengths of the two copy lines; Performing surface flipping on the two copied lines after the lengths are shortened, so as to connect the two copied lines after the lengths are shortened with the indicator line; The two copied lines with shortened lengths are subjected to surface processing to obtain an arrow-shaped closed surface of the arrow symbol graphic. The standard graphic file of the arrow symbol graphic includes: the indicator line and the arrow-shaped closed surface connected to the indicator line.

[0008] Optionally, the transferring of the attribute information of the main body shape to each part of the standard graphical file so that both the main body part and the non-main body part of the standard graphical file have the attribute information includes: The attribute information of the main line is used as the attribute information of the indicator line, and the attribute information of the indicator line is transferred to the arrow-shaped closed surface area, so that the indicator line and the arrow-shaped closed surface area in the standard graphical file both have corresponding attribute information.

[0009] Optionally, the preset special graphic is a combined line type graphic; the main shape is a main line, the attribute information of the main shape is the attribute information of the main line, and the shape decomposition file further includes: a schematic short line; The step of constructing a standard graphic file corresponding to the preset special graphic according to the main body shape includes: Constructing a main body line buffer graphic of the main body line, wherein the main body line buffer graphic is a rectangular frame having a length equal to that of the main body line and a preset width; Using the schematic short lines, copying the main line buffer pattern at equal intervals to obtain a schematic short line group; constructing schematic buffer areas for each schematic short line in the schematic short line group in the main body line buffer graphic; The schematic buffer area of ​​each schematic short line is filled to generate the filled surface area of ​​each schematic short line. The standard graphic file of the combined line type graphic includes: the main line buffer graphic and the filled surface area of ​​each schematic short line.

[0010] Optionally, the transferring of the attribute information of the main body shape to each part of the standard graphical file so that both the main body part and the non-main body part of the standard graphical file have the attribute information includes: The attribute information of the main line is used as the attribute information of the main line buffer graphic, and the attribute information of the main line buffer graphic is transferred to the filling area of ​​each schematic short line, so that the main line buffer graphic and the filling area of ​​each schematic short line in the standard graphical file have corresponding attribute information.

[0011] Optionally, the preset special graphic is a combined face region graphic; the main body shape is a main face region, the attribute information of the main body shape is the attribute information of the main face region, and the shape decomposition file further includes: a non-main face region; The step of constructing a standard graphic file corresponding to the preset special graphic according to the main body shape includes: According to the non-main face region, the main face region is processed with island holes to generate a target face region with island holes, the outer edge of the target face region matches the main face region, and the edge of the island hole in the target face region matches the non-main face region; the standard graphical file of the combined face region class graphic includes: the target face region.

[0012] Optionally, the transferring of the attribute information of the main body shape to each part of the standard graphical file so that both the main body part and the non-main body part of the standard graphical file have the attribute information includes: The attribute information of the main face area is used as the attribute information of the face area part in the target face area, and the attribute information of the target face area is transferred to the island hole part in the target face area, so that the face area part and the island hole part in the standard graphical file both have corresponding attribute information.

[0013] In a second aspect, an embodiment of the present application provides a graphical device for a special graphic, including: a decomposition module, configured to perform shape decomposition on a preset special graphic to obtain a shape decomposition file of the preset special graphic; wherein the shape decomposition file includes at least: a main body shape and attribute information of the main body shape; the preset special graphic is a graphic for which no corresponding graphic file exists in a corresponding graphic file library in a preset database; and the main body shape is a shape for which a graphic file exists in the graphic file library; Constructing a standard graphic file corresponding to the preset special graphic according to the main body shape; Transferring the attribute information of the main body shape to each part of the standard graphic file, so that both the main body part and the non-main body part of the standard graphic file have the attribute information; The standard graphical file is stored in a corresponding graphical file library in a preset database.

[0014] In a third aspect, an embodiment of the present application provides an electronic device comprising: a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor can execute the machine-executable instructions to implement any of the methods described in the first aspect.

[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method as described in any one of the first aspects is implemented.

[0016] The present application provides a graphical method, device, electronic device and medium for special graphics, wherein the graphical method for special graphics includes: performing shape decomposition on a preset special graphic to obtain a shape decomposition file of the preset special graphic, extracting the main shape of the preset special graphic and the attribute information of the main shape, so as to structure the graphic data, facilitate subsequent attribute transfer and file management, and reduce the risk of data confusion; wherein, the preset special graphic is a graphic for which no corresponding graphic file exists in the corresponding graphic file library in the preset database; the main shape is a shape for which there is an existing graphic file in the graphic file library; according to the main shape, a standard graphic file corresponding to the preset special graphic is constructed to convert the special graphic into a file format that meets industry or enterprise standards; the attribute information of the main shape is transferred to each part of the standard graphic file, so that the main part and non-main part in the standard graphic file have attribute information to ensure that the attributes of the entire graphic are unified and complete. When the main shape attribute is modified, the entire graphic attribute is automatically updated synchronously, reducing the workload of manual adjustment and improving design efficiency; the standard graphic file is stored in the corresponding graphic file library in the preset database. This application achieves the transition from non-standard to standardized pre-defined special graphics, effectively improving graphic design and management efficiency, reducing development costs and error risks. Furthermore, the complete transfer of attribute information and file library management provide strong support for the reuse and data analysis of graphics in multiple scenarios and projects. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.

[0018] Figure 1 A schematic diagram of a process for a special graphic provided in an embodiment of the present application Figure 1 ; Figure 2 A schematic diagram of an arrow symbol provided in an embodiment of the present application Figure 1 ; Figure 3 A schematic diagram of a process for a special graphic provided in an embodiment of the present application Figure 2 ; Figure 4 A schematic diagram of an arrow symbol provided in an embodiment of the present application Figure 2 ; Figure 5 A schematic diagram of an arrow symbol provided in an embodiment of the present application Figure 3 ; Figure 6 A schematic diagram of an arrow symbol provided in an embodiment of the present application Figure 4 ; Figure 7 A schematic diagram of an arrow symbol provided in an embodiment of the present application Figure 5 ; Figure 8 A schematic diagram of a combined linear graphic provided in an embodiment of the present application Figure 1 ; Figure 9 A schematic diagram of a process for a special graphic provided in an embodiment of the present application Figure 3 ; Figure 10 A schematic diagram of a combined linear graphic provided in an embodiment of the present application Figure 2 ; Figure 11 A schematic diagram of a combined linear graphic provided in an embodiment of the present application Figure 3 ; Figure 12 A schematic diagram of a combined surface area graphic provided in an embodiment of the present application Figure 1 ; Figure 13 A schematic structural diagram of a graphical device for a special graphic provided in an embodiment of the present application; Figure 14 A schematic diagram of the electronic device structure provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0020] In order to better understand the various solutions provided in the embodiments of the present application, the technologies involved in the following embodiments are first explained.

[0021] General graphics refer to graphic objects that strictly comply with industry graphic specification document standards and can fully and accurately express their attribute information and functional characteristics.

[0022] Special graphics refer to those complex graphic objects in the field of surveying, mapping and cartography that cannot be described in a standardized manner through current industry graphic specification documents.

[0023] The following describes in detail the special graphic graphics method of the embodiment of the present application through multiple embodiments in conjunction with the accompanying drawings. Figure 1 A schematic diagram of a process for a special graphic provided in an embodiment of the present application Figure 1 The execution subject of this method is an electronic device (such as a computer device) installed with a preset mapping software (such as AutoCAD or ARCGIS). Figure 1 As shown, the method may include: S110 , performing shape decomposition on the preset special graphic to obtain a shape decomposition file of the preset special graphic.

[0024] In one possible implementation, a pre-defined special graphic is decomposed into multiple shape decomposition units using the graphic decomposition function in pre-defined mapping software (such as AutoCAD). The generation of these multiple shape decomposition units follows a pre-defined order: surface area → line → point. Decomposition terminates when the special graphic cannot be further decomposed into surface, line, or point elements. The resulting shape decomposition unit is the smallest undecomposable unit. The multiple shape decomposition units are then stored in a file, generating a shape decomposition file for the pre-defined special graphic. This shape decomposition file includes at least the main shape and its attribute information.

[0025] A preset special shape is a shape for which no corresponding graphic file exists in the preset database. A main shape is a shape for which a graphic file already exists in the graphic file library. The main shape's attribute information can include its location, unique identifier, and functional location within the graphic.

[0026] It should be noted that the main shape refers to the geometric primitive that satisfies any of the following conditions: the largest area element or the longest linear element, among the shape units decomposed from the preset special shape. Furthermore, it should be noted that, in addition to the examples above, the main shape's attribute information can also be dynamically configured based on the industry attributes of the main shape.

[0027] S120: Construct a standard graphic file corresponding to a preset special graphic according to the main body shape.

[0028] In one possible implementation method, based on the main body shape obtained by decomposition, a standard graphic file corresponding to the preset special graphic is reconstructed through combination, deformation, addition and other operations to meet the usage specifications and format requirements.

[0029] S130: Transfer the attribute information of the main body shape to each part of the standard graphic file, so that both the main body part and the non-main body part of the standard graphic file have the attribute information.

[0030] In one possible implementation, the attribute information of the main shape is transferred to various parts of the standard graphic file, including the main part and the non-main part, to ensure that the attributes of the entire graphic are unified and complete.

[0031] S140: Store the standard graphic file in a corresponding graphic file library in a preset database.

[0032] In a possible implementation, the generated standard graphic file is stored in a graphic file library corresponding to a preset database for subsequent calling and reuse.

[0033] It should be noted that before decomposing the preset special graphics, the preset special graphics need to be marked with dimension references so that when the standardized graphic file of the special graphics is subsequently constructed, the geometric parameters can be accurately reproduced and the proportion consistency can be controlled, thereby solving the graphic consistency problem in the graphics process of the special graphics.

[0034] The graphical method of special graphics provided by the present application performs shape decomposition on a preset special graphic to obtain a shape decomposition file of the preset special graphic, extracts the main shape of the preset special graphic and the attribute information of the main shape, structures the graphic data, facilitates subsequent attribute transfer and file management, and reduces the risk of data confusion; wherein, the preset special graphic is a graphic for which no corresponding graphic file exists in the corresponding graphic file library in the preset database; the main shape is a shape for which a graphic file already exists in the graphic file library; according to the main shape, a standard graphic file corresponding to the preset special graphic is constructed to convert the special graphic into a file format that meets industry or enterprise standards; the attribute information of the main shape is transferred to each part of the standard graphic file, so that both the main part and the non-main part in the standard graphic file have attribute information to ensure that the attributes of the entire graphic are unified and complete; when the main shape attribute is modified, the entire graphic attribute is automatically updated synchronously, reducing the workload of manual adjustment and improving design efficiency; the standard graphic file is stored in the corresponding graphic file library in the preset database. Thus, the present application realizes the transformation of the preset special graphic from non-standard to standardized, effectively improving the efficiency of graphic design and management, and reducing development costs and error risks. At the same time, complete attribute information transmission and file library management provide strong support for the reuse and data analysis of graphics in multiple scenarios and projects.

[0035] Optionally, the above-mentioned preset special graphic is an arrow symbol graphic; Figure 2 A schematic diagram of an arrow symbol provided in an embodiment of the present application Figure 1 .like Figure 2 As shown, the main shape of the arrow symbol graphic is the main line, that is, the longest linear element in the arrow symbol graphic, usually the center line of the arrow symbol graphic. Among them, the attribute information of the main shape is the attribute information of the main line.

[0036] It should be noted that, since the attribute information of the main shape can be used to fully express the core attribute information of the arrow symbol graphic, the attribute information of the main line can also be used to achieve consistent expression of the attribute information of the entire arrow symbol graphic.

[0037] Figure 3 A schematic diagram of a process for a special graphic provided in an embodiment of the present application Figure 2 .like Figure 3 As shown, the above-mentioned construction of a standard graphic file corresponding to a preset special graphic based on the main body shape may include: S210: Modify the width information of the main body line to obtain an indicator line of an arrow symbol-type graphic.

[0038] In one possible implementation, after determining the main line of the arrow symbol graphic, the width information of the main line is modified. For example, the width information of the main line can be modified in a preset drawing software (such as AutoCAD), thereby obtaining the indicator line of the arrow symbol graphic.

[0039] It should be noted that the purpose of modifying the width information of the main line is to achieve visual preview of the indicator line in the preset mapping software; in the process of modifying the width information of the main line, the attribute information of the main line can be transferred to the indicator line without loss.

[0040] S220 , copy the indicator line to obtain two copy lines parallel to the indicator line, and shorten the lengths of the two copy lines.

[0041] In one possible implementation, the indicator lines are copied in situ. Multiple copies are possible; here, two are selected. The two parallel copies are then shortened to the length of the centerline of the arrow triangle in the original arrow symbol (the dimension reference mark).

[0042] Among them, the distance between the two copy lines and the indicator line is 1 / 2 of the base of the arrow triangle in the original arrow symbol graphic (size reference mark).

[0043] For example, Figure 4 A schematic diagram of an arrow symbol provided in an embodiment of the present application Figure 2 .like Figure 4 As shown, A is the length of the median of the arrow triangle; B is the base of the arrow triangle. Figure 4 (1) is the indicator line. Figure 4 (1) in the figure is to copy the indicator line and shorten the length of the two copied lines, and get Figure 4 (2) in .

[0044] It should be noted that when shortening the length of two copy lines, the distance is shortened from the starting point to the end point of the copy line, and the length after shortening is the midline distance of the arrow triangle. Figure 5 As shown, Figure 5 A schematic diagram of an arrow symbol provided in an embodiment of the present application Figure 3 . Figure 5 C is the distance the copy line needs to be shortened; D is the midline distance of the arrow triangle.

[0045] S230 , performing surface flipping on the two copy lines whose lengths are shortened, so as to connect the two copy lines whose lengths are shortened with the indicator line.

[0046] In a possible implementation, the two copy lines after the length is shortened are flipped over to connect the ends of the two copy lines after the length is shortened to the ends of the indicator line. Figure 6 As shown, Figure 6 A schematic diagram of an arrow symbol provided in an embodiment of the present application Figure 4 . Figure 6 (1) For two copy lines that are parallel to the indicator line and shortened in length, select the surface flip function in the preset drawing software (such as AutoCAD) so that the ends of the two copy lines with shortened lengths are connected to the ends of the indicator line (such as Figure 6 (2)).

[0047] It should be noted that surface flipping involves moving the end points of the copied parallel lines to the end points of the line body file. This is a function of the default mapping software.

[0048] S240: Performing surface processing on the two copied lines whose lengths are shortened to obtain an arrow-shaped closed surface of an arrow symbol-type graphic.

[0049] The standard graphic file of arrow symbol graphics includes: an indicator line and an arrow-shaped closed area connected to the indicator line.

[0050] In one possible implementation, the two shortened copied lines are subjected to surface processing. For example, the two shortened copied lines are strung together into a single line using a line stringing function within a pre-set graphics software (e.g., AutoCAD). The starting and ending points of the strung line are then closed, and the closing function within the pre-set graphics software (e.g., AutoCAD) is used to complete the surface closing of the two shortened copied lines, resulting in an arrow-shaped closed surface of an arrow symbol. This arrow-shaped closed surface is then filled with a predetermined color using the color fill function within the pre-set graphics software (e.g., AutoCAD).

[0051] For example, Figure 7 A schematic diagram of an arrow symbol provided in an embodiment of the present application Figure 5 .like Figure 7 As shown, Figure 7 (1) Connect the two shortened copy lines to the indicator line. Figure 7 (2) To close the two copy lines after their lengths are shortened, Figure 7 (3) Fill the surface with preset colors for closure processing.

[0052] It should be noted that, during the process of graphing arrow symbol graphics, after obtaining the arrow-shaped closed surface region, redundant or duplicate point files, line files, and surface files on the current page of the preset mapping software (such as AutoCAD) are deleted. Furthermore, it should be noted that the above-described process of graphing arrow symbol graphics is merely an example, and arrow symbol graphics can also be graphed using other methods, which are not limited here.

[0053] The graphical method of special graphics provided by the present application is as follows: when the special graphics are preset as arrow symbol graphics; the main shape is the main line, and the attribute information of the main shape is the attribute information of the main line; the indicator line of the arrow symbol graphics is obtained by modifying the width information of the main line, ensuring that the indicator line forms a clear visual hierarchy with other elements in a complex drawing or interface, thereby improving the efficiency of information communication; by copying the indicator line, two copy lines parallel to the indicator line are obtained, and the contours of both sides of the arrow symbol graphics are quickly formed, ensuring that the parallelism of the lines meets the geometric accuracy requirements and avoiding manual drawing errors; and shortening the length of the two copy lines so that the proportion of the arrow tip meets the standardized design. Ensure the standardization and consistency of the graphics; by flipping the surface of the two shortened copy lines, the two shortened copy lines are connected with the indicator line, so as to integrate the two scattered copy lines into a complete arrow shape, avoid contour gaps, and ensure the integrity of the graphic topology structure; perform surface processing on the two shortened copy lines to obtain an arrow-shaped closed surface of the arrow symbol type graphics, so that the graphics are transformed from a simple line set into a fillable and operable surface object, and then generate a standard graphic file of the arrow symbol type graphics, which is convenient for subsequent cross-platform data exchange, ensures that the graphics maintain consistency in shape, size and attributes in different software, and reduce collaboration errors.

[0054] Optionally, the above-mentioned transfer of the attribute information of the main body shape to each part of the standard graphic file so that both the main body part and the non-main body part of the standard graphic file have the attribute information may include: The attribute information of the main line is used as the attribute information of the indicator line, and the attribute information of the indicator line is transferred to the arrow-shaped closed surface area, so that the indicator line and the arrow-shaped closed surface area in the standard graphic file both have corresponding attribute information.

[0055] In one possible implementation, the attribute information of the main line is directly assigned to the indicator line, which is then transferred to the arrow-shaped closed region. This ensures that both the indicator line and the arrow-shaped closed region in the standard graphic file have corresponding attribute information, ensuring that the visual presentation and data structure of each graphic element are completely consistent. Furthermore, the attribute information of the main line can be transferred synchronously with the geometric structure of the graphic element, forming a binding relationship between the graphic and the attribute information. When the indicator line or region is moved or scaled, the attribute information automatically follows, eliminating the need for repeated settings, ensuring the attribute integrity of the graphic throughout its lifecycle.

[0056] It's important to note that when the attribute information of a principal line is transferred, it always maintains the integrity of its original attribute information. This means that, as the core attribute carrier, the principal line's attributes will not be lost or altered during information transfer. Derivative shapes (such as arrow regions) simultaneously obtain attribute copies through topological overlay, forming a dual-track structure of "principal line attributes (primary) → derived shape attributes (copies)."

[0057] The graphical method for special graphics provided in this application uses the attribute information of the main line as the attribute information of the indicator line, and transfers the attribute information of the indicator line to the arrow-shaped closed surface area, so that the indicator line and the arrow-shaped closed surface area in the standard graphics file both have corresponding attribute information. Therefore, because the attribute information of the main line of this application can be transferred uniformly, when the graphic style needs to be adjusted (for example, changing all arrows to thin solid blue lines), only the main line attributes need to be modified, and the indicator lines and surface areas will be automatically updated synchronously, avoiding the tedious operation of adjusting each element one by one and improving design efficiency.

[0058] Optionally, the above-mentioned preset special graphics are combined line-type graphics; Figure 8 A schematic diagram of a combined linear graphic provided in an embodiment of the present application Figure 1 .like Figure 8 As shown in (1), the main shape of the combined linear type graphics is the main line, that is, the longest linear element in the combined linear type graphics, usually the center line of the combined linear type (such as Figure 8 (2) in the long line part). Among them, the attribute information of the main shape is the attribute information of the main line. The shape decomposition file also includes: schematic short lines (such as Figure 8 (2) in the short part).

[0059] It should be noted that the above schematic short line is the longitudinal center line of the gray rectangle in the combined linear type graphic. In addition, it should also be noted that the main line of the above combined linear type graphic can also be any longest line in the combined linear type.

[0060] Figure 9 A schematic diagram of a process for a special graphic provided in an embodiment of the present application Figure 3 .like Figure 9As shown, the above-mentioned construction of a standard graphic file corresponding to a preset special graphic based on the main body shape may include: S310: Construct a main line buffer graphic of the main line.

[0061] In one possible implementation, based on the size reference mark of the original combined linear type graphic, the main body line is used as the center line, and 1 / 2 of the reference width of the original combined linear type graphic is extended to both sides to generate the main body line buffer graphic.

[0062] The length of the main line buffer graphic is equal to the length of the main line, and the preset width of the main line buffer graphic is the base width of the original combined line type graphic. In other words, the main line buffer graphic is a rectangular frame with a length equal to the length of the main line and a preset width.

[0063] It should be noted that the above method of constructing the main line buffer graphics of the main line is exemplified by taking the main line as the center line of the combined line type. However, regardless of whether the main line is located at the center line position of the combined line type, the main line buffer graphics can be constructed according to the above rules to ensure that the output result meets the following requirements: the length is equal to the length of the main line, and it is a rectangular frame with a preset width.

[0064] For example, Figure 10 A schematic diagram of a combined linear graphic provided in an embodiment of the present application Figure 2 .like Figure 10 (1) is shown as the main line, Figure 10 (2) The center line is the length of the main line and is extended to both sides so that the width of the main line buffer graphic is the reference width of the size reference mark of the original combined linear type graphic.

[0065] S320: Using schematic short lines, copy the main line buffer graphics at equal intervals to obtain a schematic short line group.

[0066] In one possible implementation, a schematic short line is used to copy the main line buffer graphic at equal intervals. The copy interval is the length of one filled block plus the length of one non-filled block in the combined line type graphic. After multiple copies, a schematic short line group is obtained.

[0067] For example, Figure 11 A schematic diagram of a combined linear graphic provided in an embodiment of the present application Figure 3 .like Figure 11 (1) is a schematic short line, which is obtained by copying the schematic short line multiple times according to the copy spacing. Figure 11 (2) Schematic short-line group shown.

[0068] S330 , constructing schematic buffer areas for each schematic short line in the schematic short line group in the main body line buffer graphic.

[0069] In one possible implementation, in the main line buffer graph, a directional dimension buffer build is performed for each schematic short line as follows: In the X-axis direction, the fixed value expansion is performed according to the fixed distance in the dimension reference mark of the original combined linear type graphic. In the Y-axis direction, the vertical width of the original schematic short line is maintained, and an independent buffer surface area corresponding to each schematic short line is generated as the basis for the sleeper filling of the railway symbol.

[0070] S340 , performing surface filling on the schematic buffer area of ​​each schematic short line to generate a filled surface area for each schematic short line.

[0071] The standard graphic file of the combined line type graphics includes: the main line buffer graphics, and the filling area of ​​each schematic short line.

[0072] In one possible implementation, the color filling function in a preset drawing software (such as AutoCAD) is used to fill the schematic buffer area of ​​each schematic short line to generate a filled surface area for each schematic short line.

[0073] It should be noted that when completing the graphing of combined line types, after obtaining the filled regions of each schematic short line, it is necessary to delete redundant or duplicate point files, line files, and surface files on the current page of the preset mapping software (such as AutoCAD). Furthermore, it should be noted that the above-mentioned graphing process for combined line types is merely an example; other methods can also be used to graph combined line types, and this is not a limitation.

[0074] The graphical method of special graphics provided by the present application, when the special graphics are preset as combined linear graphics; the main shape is the main line, the attribute information of the main shape is the attribute information of the main line, and the shape decomposition file also includes: schematic short lines; then by constructing the main line buffer graphics of the main line, the obtained main line buffer graphics are made into a rectangular frame with a length equal to the length of the main line and a preset width, so that the main line is expanded from a single line to a more visual surface area structure through fixed length and width parameters, ensuring that the combined linear type has a clear outline boundary visually; providing a clear spatial carrier for the subsequent layout and filling operations of the schematic short lines, avoiding the schematic short lines from exceeding the main line range or the layout being chaotic, and ensuring the combined linear type graphics structure. rigor; then use the schematic short line to copy the main line buffer graphics at equal intervals to obtain a schematic short line group, wherein the automated equal-interval copy operation replaces manual drawing, greatly reducing repetitive work, especially when dealing with long-distance, high-precision combined line types, it can significantly improve design efficiency, while reducing the risk of errors such as uneven spacing and inconsistent short line lengths caused by manual drawing; and construct a schematic buffer area for each schematic short line in the schematic short line group in the main line buffer graphics, so that the original single line is transformed into a surface object with a filling effect, thereby enhancing the visual expression and graphic integrity of the schematic short line; finally, the schematic buffer area of ​​each schematic short line is filled with a surface area to generate a filled surface area for each schematic short line. Therefore, the standard file of the combined line type graphics of this application integrates the main line buffer graphics and the schematic short line filling surface area to form structured data, which is convenient for team collaboration and cross-platform use. The problem of graphic and attribute consistency of the combined line type graphics in the graphics process is realized.

[0075] Optionally, the above-mentioned transfer of the attribute information of the main body shape to each part of the standard graphic file so that both the main body part and the non-main body part of the standard graphic file have the attribute information may include: The attribute information of the main line is used as the attribute information of the main line buffer graphic, and the attribute information of the main line buffer graphic is transferred to the fill area of ​​each schematic short line, so that the main line buffer graphic and the fill area of ​​each schematic short line in the standard graphical file have corresponding attribute information.

[0076] In one possible implementation, the attribute information of the main line is directly assigned to the main line buffer graphic, and then transferred to the fill area of ​​each schematic short line, so that the main line buffer graphic and the fill area of ​​each schematic short line in the standard graphical file have corresponding attribute information, thereby ensuring that the attributes of the combined line type are completely consistent from the main structure to the detail elements.

[0077] It's important to note that when the attribute information of a principal line is transferred, it always maintains the integrity of its original attribute information. This means that, as the core attribute carrier, the principal line's attributes will not be lost or altered during information transfer. Derived shapes (such as the filled areas of each schematic short line) simultaneously acquire attribute copies through topological overlay, forming a dual-track structure of "principal line attributes (master) → derived shape attributes (copy)."

[0078] The special graphics graphics method provided in this application uses the main line's attribute information as the attribute information of the main line buffer graphic, and then transfers the attribute information of the main line buffer graphic to the fill area of ​​each schematic short line. This ensures that the main line buffer graphic and the fill area of ​​each schematic short line in the standard graphics file all have corresponding attribute information. Therefore, because the attribute information of the main line of this application can be uniformly transferred, when the graphic style needs to be adjusted (such as changing all linear lines to thin solid red lines), only the main line attributes need to be modified, and the buffer graphic and fill area will be automatically updated synchronously, eliminating the need for element-by-element adjustments. This avoids the tedious operation of element-by-element adjustments and improves design efficiency.

[0079] Optionally, the above-mentioned preset special graphics are combined area graphics; Figure 12 A schematic diagram of a combined surface area graphic provided in an embodiment of the present application Figure 1 .like Figure 12 As shown, the combined surface area graphics (such as Figure 12 (3)) is the main area, that is, the area element with the largest area in the combined area type graphics, usually the area with the largest area (such as Figure 12 (1)). Among them, the attribute information of the main body shape is the attribute information of the main body area, and the shape decomposition file also includes: non-main body area (such as Figure 12 (2)).

[0080] In a possible embodiment, the above-mentioned construction of a standard graphic file corresponding to a preset special graphic based on the main body shape may include: According to the non-main face region, the main face region is processed with island holes to generate a target face region with island holes.

[0081] Among them, the standard graphic files of the combined area graphics include: target area.

[0082] In one possible implementation method, the position of the non-main face region in the main face region is determined based on the center points of the circumscribed rectangles of the non-main face region and the main face region, and then the island holes of the main face region and the non-main face region are processed (Boolean difference operation), that is, the non-main face region is superimposed on the main face region to generate a target face region with island holes (nested structure).

[0083] Among them, the outer edge of the target surface area matches the main surface area, and the edge of the island hole in the target surface area matches the non-main surface area, ensuring that the surface area topological structure has no overlap and gaps, meeting the geometric accuracy requirements of scenarios such as spatial analysis and mapping.

[0084] It should be noted that when completing the graphing of a composite region graphic, after obtaining the target region, it is necessary to delete any redundant or duplicate point files, line files, and surface files on the current page of the preset mapping software (such as AutoCAD). Furthermore, it should be noted that the above graphing process for composite region graphics is merely an example; other methods can also be used to graph composite region graphics, and this is not a limitation.

[0085] The graphical method of special graphics provided by the present application is that when the special graphics are preset as a combined face domain type graphics; the main shape is the main face domain, the attribute information of the main shape is the attribute information of the main face domain, and the shape decomposition file also includes: non-main face domain; then the main face domain is first processed with island holes according to the non-main face domain to generate a target face domain with island holes, so that the outer edge of the target face domain matches the main face domain, and the edge of the island hole in the target face domain matches the non-main face domain, so as to ensure that the face domain topology structure has no overlap and no gaps, and meets the requirements of geometric accuracy for scenarios such as spatial analysis and mapping. Therefore, the combined face domain of the present application is upgraded from a simple geometric figure to a logical unit with a spatial hierarchy, so that the figure can express the dual information of the overall range and the internal hollowing at the same time, which is suitable for scenes that require nested structures such as land use planning, pipe network layout, and mold design.

[0086] Optionally, the above-mentioned transfer of the attribute information of the main body shape to each part of the standard graphic file so that both the main body part and the non-main body part of the standard graphic file have the attribute information may include: The attribute information of the main face region is used as the attribute information of the face region part in the target face region, and the attribute information of the target face region is transferred to the island hole part in the target face region, so that the face region part and the island hole part in the standard graphic file both have corresponding attribute information.

[0087] In one possible implementation method, the main face domain attributes (such as fill color, layer, area, material identification, etc.) are directly assigned to the face domain part of the target face domain, and then transferred to the island hole part, forming an attribute binding of the main face domain-island hole part face domain, so that the face domain part and the island hole part in the standard graphical file have corresponding attribute information, to ensure that the spatial graphics and attribute data are fully synchronized.

[0088] It should be noted that when the attribute information of the main area is transferred, the main area always maintains the integrity of its original attribute information. This can be understood as the main area, as the core attribute carrier, will not lose or change its own attributes due to information transfer; derived graphics (such as non-main area) synchronously obtain attribute copies through topological overlay, forming a dual-track persistence structure of "main area attributes (primary) → derived graphic attributes (copy)".

[0089] The graphical method for special graphics provided by this application uses the attribute information of the main face domain as the attribute information of the face domain part in the target face domain, and transfers the attribute information of the target face domain to the island hole part within the target face domain, so that the face domain part and the island hole part in the standard graphical file both have corresponding attribute information. As a result, after the island hole part of this application inherits the attribute information of the target face domain, it is no longer just a geometric hollowing out, but has attribute information. When it is necessary to adjust the style of the combined face domain (such as changing all orange fill colors to yellow), only the main face domain attributes need to be modified, and the face domain part of the target face domain and the island hole part will be updated synchronously. In other words, after the attribute information of this application is bound to the geometric topology, it supports dynamic adjustment: for example, when the size of the main face domain changes, the island hole position is automatically offset proportionally; after the island hole attributes are modified, the volume ratio attributes of the target face domain are synchronously recalculated, realizing the intelligent design of the attribute-driven model.

[0090] Figure 13 This is a schematic diagram of a special graphic graphics device provided in an embodiment of the present application. Figure 13 As shown, the graphic device 50 of the special graphic may include: The decomposition module 51 is configured to perform shape decomposition on the preset special graphic to obtain a shape decomposition file of the preset special graphic; wherein the shape decomposition file includes at least: a main body shape and attribute information of the main body shape; the preset special graphic is a graphic for which no corresponding graphic file exists in the corresponding graphic file library in the preset database; and the main body shape is a shape for which a graphic file exists in the graphic file library; A construction module 52 is used to construct a standard graphic file corresponding to a preset special graphic according to the shape of the main body; A transfer module 53 is used to transfer the attribute information of the main body shape to each part of the standard graphic file, so that both the main body part and the non-main body part of the standard graphic file have the attribute information; The storage module 54 is used to store the standard graphical file in the corresponding graphical file library in the preset database.

[0091] In an optional embodiment, the preset special graphic is an arrow symbol-type graphic; the main shape is a main line, and the attribute information of the main shape is the attribute information of the main line; the construction module 52 is specifically used to: modify the width information of the main line to obtain the indicator line of the arrow symbol-type graphic; copy the indicator line to obtain two copy lines parallel to the indicator line, and shorten the length of the two copy lines; perform surface flipping on the two copy lines with shortened lengths to connect the two copy lines with shortened lengths with the indicator line; perform surface domain processing on the two copy lines with shortened lengths to obtain an arrow-shaped closed surface domain of the arrow symbol-type graphic, and the standard graphical file of the arrow symbol-type graphic includes: an indicator line and an arrow-shaped closed surface domain connected to the indicator line.

[0092] In an optional embodiment, the transfer module 53 is specifically used to: use the attribute information of the main line as the attribute information of the indicator line, and transfer the attribute information of the indicator line to the arrow-shaped closed surface area, so that the indicator line and the arrow-shaped closed surface area in the standard graphical file have corresponding attribute information.

[0093] In an optional embodiment, the preset special graphics are combined line type graphics; the main shape is the main line, the attribute information of the main shape is the attribute information of the main line, and the shape decomposition file also includes: schematic short lines; the construction module 52 is specifically used to: construct a main line buffer graphic of the main line, the main line buffer graphic is a rectangular frame with a length equal to the length of the main line and a preset width; use the schematic short lines to copy the main line buffer graphic at equal intervals to obtain a schematic short line group; construct a schematic buffer area for each schematic short line in the schematic short line group in the main line buffer graphic; fill the schematic buffer area of ​​each schematic short line to generate a filled area for each schematic short line. The standard graphical file of the combined line type graphics includes: the main line buffer graphic, and the filled area for each schematic short line.

[0094] In an optional embodiment, the transfer module 53 is specifically used to: use the attribute information of the main line as the attribute information of the main line buffer graphic, and transfer the attribute information of the main line buffer graphic to the filling area of ​​each schematic short line, so that the main line buffer graphic and the filling area of ​​each schematic short line in the standard graphical file have corresponding attribute information.

[0095] In an optional embodiment, the preset special graphics are combined face domain graphics; the main shape is the main face domain, the attribute information of the main shape is the attribute information of the main face domain, and the shape decomposition file also includes: non-main face domain; the construction module 52 is specifically used to: perform island hole processing on the main face domain according to the non-main face domain, generate a target face domain with island holes, the outer edge of the target face domain matches the main face domain, and the edge of the island hole in the target face domain matches the non-main face domain; the standard graphical file of the combined face domain graphics includes: target face domain.

[0096] In an optional embodiment, the transfer module 53 is specifically used to: use the attribute information of the main face domain as the attribute information of the face domain part in the target face domain, and transfer the attribute information of the target face domain to the island hole part in the target face domain, so that the face domain part and the island hole part in the standard graphical file both have corresponding attribute information.

[0097] It should be noted that for details not disclosed in the special graphic patterning device of the embodiment of the present application, please refer to the details disclosed in the special graphic patterning method of the embodiment of the present application, and the details will not be repeated here.

[0098] The above modules can be one or more integrated circuits configured to implement the above methods, such as one or more application-specific integrated circuits (ASICs), one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For example, when a module is implemented by scheduling program code through a processing element, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0099] The embodiment of the present application further provides an electronic device 60, such as Figure 14 As shown, Figure 14 The electronic device structure diagram provided for the embodiment of the present application includes: a processor 61, a memory 62, and optionally, a bus.

[0100] The memory 62 stores machine-readable instructions executable by the processor 61. When the electronic device 60 is running, the processor 61 communicates with the memory 62 via a bus. When the machine-readable instructions are executed by the processor 61, the method steps described in the aforementioned method embodiment are performed.

[0101] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method for graphing special graphics are executed.

[0102] Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working processes of the systems and devices described above can refer to the corresponding processes in the method embodiments and will not be described in detail in this application. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways.

[0103] In addition, the functional units in the various embodiments of the present application can be integrated into a single processing unit, each unit can exist physically separately, or two or more units can be integrated into a single unit. If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in the various embodiments of the present invention. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0104] The above description is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, various modifications and variations of the present application are possible. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for graphically displaying a special graphic, characterized in that: include: Performing shape decomposition on a preset special graphic to obtain a shape decomposition file of the preset special graphic; wherein the shape decomposition file includes at least: a main body shape and attribute information of the main body shape; the preset special graphic is a graphic for which no corresponding graphic file exists in a corresponding graphic file library in a preset database; and the main body shape is a shape for which a graphic file exists in the graphic file library; Constructing a standard graphic file corresponding to the preset special graphic according to the main body shape; Transferring the attribute information of the main body shape to each part of the standard graphic file, so that both the main body part and the non-main body part of the standard graphic file have the attribute information; The standard graphical file is stored in a corresponding graphical file library in a preset database.

2. The method according to claim 1, characterized in that The preset special graphic is an arrow symbol graphic; the main shape is a main line, and the attribute information of the main shape is the attribute information of the main line; The step of constructing a standard graphic file corresponding to the preset special graphic according to the main body shape includes: Modify the width information of the main body line to obtain the indicator line of the arrow symbol graphic; Copying the indicator line to obtain two copy lines parallel to the indicator line, and shortening the lengths of the two copy lines; Performing surface flipping on the two copied lines after the lengths are shortened, so as to connect the two copied lines after the lengths are shortened with the indicator line; The two copied lines with shortened lengths are subjected to surface processing to obtain an arrow-shaped closed surface of the arrow symbol graphic. The standard graphic file of the arrow symbol graphic includes: the indicator line and the arrow-shaped closed surface connected to the indicator line.

3. The method according to claim 2, characterized in that The transferring of the attribute information of the main body shape to each part of the standard graphic file so that both the main body part and the non-main body part of the standard graphic file have the attribute information includes: The attribute information of the main line is used as the attribute information of the indicator line, and the attribute information of the indicator line is transferred to the arrow-shaped closed surface area, so that the indicator line and the arrow-shaped closed surface area in the standard graphical file both have corresponding attribute information.

4. The method according to claim 1, wherein The preset special graphic is a combined line type graphic; the main shape is a main line, the attribute information of the main shape is the attribute information of the main line, and the shape decomposition file further includes: a schematic short line; The step of constructing a standard graphic file corresponding to the preset special graphic according to the main body shape includes: Constructing a main body line buffer graphic of the main body line, wherein the main body line buffer graphic is a rectangular frame having a length equal to that of the main body line and a preset width; Using the schematic short lines, copying the main line buffer pattern at equal intervals to obtain a schematic short line group; constructing schematic buffer areas for each schematic short line in the schematic short line group in the main body line buffer graphic; The schematic buffer area of ​​each schematic short line is filled to generate the filled surface area of ​​each schematic short line. The standard graphic file of the combined line type graphic includes: the main line buffer graphic and the filled surface area of ​​each schematic short line.

5. The method according to claim 4, characterized in that The transferring of the attribute information of the main body shape to each part of the standard graphic file so that both the main body part and the non-main body part of the standard graphic file have the attribute information includes: The attribute information of the main line is used as the attribute information of the main line buffer graphic, and the attribute information of the main line buffer graphic is transferred to the filling area of ​​each schematic short line, so that the main line buffer graphic and the filling area of ​​each schematic short line in the standard graphical file have corresponding attribute information.

6. The method according to claim 1, wherein The preset special graphic is a combined face region graphic; the main body shape is a main face region, the attribute information of the main body shape is the attribute information of the main face region, and the shape decomposition file further includes: a non-main face region; The step of constructing a standard graphic file corresponding to the preset special graphic according to the main body shape includes: According to the non-main face region, the main face region is processed with island holes to generate a target face region with island holes, the outer edge of the target face region matches the main face region, and the edge of the island hole in the target face region matches the non-main face region; the standard graphical file of the combined face region class graphic includes: the target face region.

7. The method according to claim 6, characterized in that The transferring of the attribute information of the main body shape to each part of the standard graphic file so that both the main body part and the non-main body part of the standard graphic file have the attribute information includes: The attribute information of the main face area is used as the attribute information of the face area part in the target face area, and the attribute information of the target face area is transferred to the island hole part in the target face area, so that the face area part and the island hole part in the standard graphical file both have corresponding attribute information.

8. A graphics device for special graphics, characterized in that: include: a decomposition module, configured to perform shape decomposition on a preset special graphic to obtain a shape decomposition file of the preset special graphic; wherein the shape decomposition file includes at least: a main body shape and attribute information of the main body shape; the preset special graphic is a graphic for which no corresponding graphic file exists in a corresponding graphic file library in a preset database; and the main body shape is a shape for which a graphic file exists in the graphic file library; Constructing a standard graphic file corresponding to the preset special graphic according to the main body shape; Transferring the attribute information of the main body shape to each part of the standard graphic file, so that both the main body part and the non-main body part of the standard graphic file have the attribute information; The standard graphical file is stored in a corresponding graphical file library in a preset database.

9. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor can execute the machine-executable instructions to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.