Map linear symbol design and plug-in automatic configuration method under AI
Through secondary development and the application of plug-in technology in the Adobe illustrator environment, the problem of low efficiency in linear symbol design and configuration was solved, the rapid symbolization and automatic drawing of GIS data was achieved, and the efficiency and quality of map making were improved.
Patent Information
- Application Number
- CN202510456786.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-12
- Publication Date
- 2025-09-05
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technologies are unable to quickly and effectively design and configure linear symbols, resulting in low map production efficiency and an inability to meet the needs of rapid emergency mapping. In addition, map symbol design ignores a large amount of semantic information of the original data and cannot achieve automatic configuration and expansion of linear symbols in Adobe Illustrator software.
Through secondary development in the Adobe illustrator environment, plug-in technology is used to realize data reading and automatic symbol configuration from the bottom layer, a widely applicable linear symbol expression method is established, and the spatial information and semantic information of GIS data are combined to realize the rapid symbolization and automatic drawing of GIS data.
It realizes the rapidity and automation of map making, improves the efficiency of map making, reduces the manual workload, ensures the accuracy and aesthetics of symbol design, and meets the needs of rapid emergency map production.
Smart Images

Figure CN120599063A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to a method for automatically configuring a map linear symbol plug-in, and in particular to a method for automatically configuring a map linear symbol design and plug-in under AI, belonging to the technical field of map linear symbol configuration. Background Art
[0002] Maps clearly and comprehensively convey the results of geographic information system (GIS) analysis, revealing the spatial manifestations and evolution patterns of real-world objects. Among the three elements that make up a map, map symbols, which convey information, hold a crucial position and significance, carrying the majority of a map's functions. The design and expression of map symbols plays a crucial role in ensuring the rapid and accurate delivery of information. Geographic entities are abstracted and re-expressed, and categorized by entity type: points, lines, surfaces, and aggregates. To express complex and diverse information, linear symbols, the most widely used of all map symbols, must be carefully considered in a variety of situations. The complex composition of linear symbols can lead to complex and cumbersome programming algorithms, making the efficient and effective expression of linear symbols of great practical significance. Adobe Illustrator (AI), a universal vector drawing software, offers a robust foundation for secondary development, facilitating functional expansion. Furthermore, the software is widely used within the cartography industry. Therefore, the design and development of automated linear symbol drawing and configuration software within an AI environment is crucial for practical cartography.
[0003] As the emphasis on map usage shifts from simple orientation to specific location, symbol design must consider more than just aesthetics. Linear symbols in map symbols are complex, and due to their complex algorithms and high computational complexity, designing and expressing them scientifically, rationally, and effectively has become a challenging problem. Mapping methods that rely solely on spatial coordinate information from GIS data ignore the semantic information of the original data. This, coupled with other issues such as incompatibility between geographic and cartographic data models and overlapping feature processing, significantly restricts the rapid configuration of symbols, making it difficult to meet the needs of rapid emergency mapping.
[0004] The problems that need to be solved by the existing map POI hierarchical expression method and the key technical difficulties of this application include:
[0005] (1) The focus of map use has changed from simple orientation determination to specific location determination. Symbol design cannot only consider whether the symbol is beautiful and generous. The linear symbol information in map symbols is complex. Due to the complexity of the program algorithm and the large amount of calculation, the existing technology cannot scientifically, reasonably and effectively design and express linear symbols as map symbols. Linear symbols cannot be quickly configured. There is a lack of efficient linear symbol design and configuration methods. The mapping software Adobe Illustrator cannot be expanded. There is a lack of map mapping modules. Under the control of the map rule library, the geographic information database cannot be used to achieve rapid symbolization of data. There is a lack of rapid configuration of map linear symbols. It is impossible to achieve rapid configuration of GIS data symbols. The manual workload of map mapping is large, and the overall quality of map compilation is poor, which is not conducive to fully automated mapping.
[0006] (2) The existing mapping method only uses the spatial coordinate information of GIS data, ignoring the semantic information of a large amount of original data. In addition, other problems such as incompatibility between geographic data models and mapping data models, and feature overlap processing have greatly restricted the rapid configuration of symbols and made it difficult to meet the needs of rapid emergency mapping. There is a lack of extended secondary development of Adobe illustrator software, and plug-in technology is not used to implement data reading and automatic symbol configuration from the bottom layer. GIS conversion cannot be achieved losslessly, and mapping software cannot recognize it. There is a lack of a common channel between GIS data and mapping data; GIS data cannot be used in symbol drawing, and the spatial information and semantic information of GIS data are not used, resulting in low map drawing efficiency; data processing and symbol drawing cannot be carried out separately on the mapping platform, and GIS software and mapping platform cannot each play their respective advantages.
[0007] (3) The existing design methods for linear map symbols are based on object-oriented design ideas and take the theory of graphic visual variables as the theoretical basis. By summarizing and summarizing the symbols and storing them in the symbol library, they are convenient for use and management. However, these methods all rely on their own platforms. The design and configuration of map symbols are all for solving specific problems. There is no universal and feasible method. At the same time, linear symbols have the problems of long drawing time, strong software dependence, and inability to expand functions when the amount of data is large. There is a lack of a set of widely applicable linear symbol expression methods. It is impossible to use plug-in extension software functions to realize linear symbol configuration under the support of Adobe illustrator software. It cannot take into account spatial information and attribute information. It cannot automatically draw linear symbols. There is a lack of plug-in extension software functions. It is impossible to combine symbol expression and configuration methods with map drawing software. It is impossible to expand the map expression function of drawing software and realize automatic, efficient and accurate drawing of linear symbols.
[0008] (4) Problems with the existing linear symbol configuration method: Using GIS software to design symbols has solved some symbol drawing problems, and the generated maps are beautiful. However, there are differences between Chinese and Western cultures, and the production standards of domestic and foreign maps are different, which makes the generated maps Figure 1 More than half of the software needs to be revised and improved by cartographers. In addition, the software is inconvenient to purchase and use, and when encountering usage problems, the help documentation is incomplete. As a result, these software are not widely used by major domestic map publishers and surveying and mapping bureaus. Operators often use GIS software to process data and then convert it into an intermediate data format. Cartographic software reads the data and manually symbolizes it, which is not only time-consuming but also laborious. General mapping software is used for graphic design, and the use of plug-in technology to solve specific tasks in specific fields has achieved some good results. However, there is no better way to express linear symbols with strong versatility and good drawing quality. Due to software promotion, self-developed software mostly includes basic functions and does not cover the professional field of linear symbols. At the same time, different localities and surveying and mapping bureaus have different standards and usage habits, and self-developed software does not have flexible changes. Summary of the Invention
[0009] This application proposes to expand the secondary development of Adobe Illustrator software, using plug-in technology to realize data reading and automatic symbol configuration from the bottom layer, and establish a set of universal and feasible methods. At the same time, when the amount of data is large, linear symbols have the problems of long drawing time, strong software dependence, and inability to expand functions. In response to the above practical problems, this application carries out corresponding research and development, conceiving a set of widely applicable linear symbol expression methods. With the support of Adobe Illustrator software, plug-ins are used to expand software functions and realize linear symbol configuration, thereby solving these existing problems. Its functions include: first, lossless GIS conversion is achieved, which can be recognized by mapping software, and a common channel is established between GIS data and mapping data; second, GIS data participates in symbol drawing, making full use of the spatial information and semantic information of GIS data, and improving map drawing efficiency; third, symbol drawing is carried out on the mapping platform, and data processing and symbol drawing are carried out separately, and GIS software and mapping platform each play their own advantages and characteristics.
[0010] To achieve the above technical effects, the technical solutions adopted in this application are as follows:
[0011] AI-powered map linear symbol design and plug-in automatic configuration method, based on the Adobe Illustrator environment, with the help of secondary development, utilizes GIS data containing rich semantic information, and under the support of the map symbol library and the control of the symbol rule library, establishes a new linear symbol design and rapid configuration method, streamlines the map symbol configuration process, ensures configuration accuracy while reducing manpower, and realizes rapid GIS data mapping;
[0012] Developed based on mapping software, GIS data is converted into cartographic data. Based on the characteristics of map linear symbols and combined with the characteristics of the Adobe Illustrator mapping environment, a new linear symbol design method and key algorithms are established to ultimately achieve automatic data symbolization, including:
[0013] (1) Establishing a line symbol design method that supports automated drawing based on AI line symbols: Through AI line symbol design standards, linear symbol design elements and rules are constructed, and a line symbol design method that supports automated drawing is proposed;
[0014] (2) Establishing AI offline symbol configuration rules and methods: Optimizing the design model, improving AI offline symbol configuration technology, and establishing configuration method implementation algorithms;
[0015] (3) Based on AI plug-in technology, develop plug-ins for automatic drawing and configuration of line symbols to realize the rapid symbolization of GIS data in actual mapping, while ensuring that data attribute information is not lost, build the conversion from GIS data to mapping data, and promote rapid and automated map publishing.
[0016] Preferably, all parallel lines are parsed into two line segments, which are displayed by overlapping two line segments with the same skeleton lines but different styles. Solid lines and dashed lines are controlled by the line style parameters of Adobe illustrator and are no longer subdivided. On this basis, all linear symbols are divided into two basic linear segments and dotted lines. Dotted lines represent dotted graphic elements that appear repeatedly at certain intervals along the upper edge of linear symbols. After classifying all linear symbols, three symbol design methods are established: multi-style superposition and overlapping, fixed-line multiple-cycle, and process adaptation.
[0017] Preferably, multiple styles of superposition and capping are used: for symbols with simple structures after decomposition, the symbols are regular single-line or double-line symbols, which are expressed as linear symbols of traffic roads;
[0018] The idea of multi-style superposition and overlapping is that the symbol is composed of multiple line segments, and the line segments are determined by the basic skeleton line as the skeleton line, and then different styles are generated to overlap each other; after the symbol is decomposed, it is composed of one or more line segments. After the railway symbol is decomposed, it is composed of two line segments, one is the lower black solid line segment with a width of m, and the other is the upper white dotted line segment with a width of n, n<m. When the two lines coincide, the white line segment is highlighted by superimposing the two lines, and the railway symbol is drawn.
[0019] Preferably, the line-fixing complex loop: the symbols included are all around the positioning line, and repeated dot-shaped graphic elements appear. The line-fixing complex loop sets one or more applicable symbols in each type of symbol;
[0020] Decompose the linear symbol into two parts, including the street tree symbol. The decomposed part consists of a line segment and recurring dot-shaped primitives. One is the basic skeleton line, which is hidden or styled. The recurring dot-shaped primitives, when used as a recurring template, include the effective blank part to form a regular circumscribed rectangle.
[0021] To control the distance between two adjacent graphics elements, a third parameter is introduced, namely the distance L between the two graphics elements, L ≥ 0. When L is the symbol width, it is a special cyclic pattern. In the wavy line symbol of the wavy line symbol, L is the symbol width. At the same time, the skeleton line is not displayed and is represented by a gray dotted line.
[0022] Preferably, the process is adaptive:
[0023] 1- Gradient symbols: Use models to represent the distribution and positional relationship of rivers, distinguish between mainstream and tributaries, and control the width of the river on the map to create a sense of river change. Width changes are divided into uniform and non-uniform changes. Non-uniform changes adopt a rhythm of fast changes at the beginning and end and slow changes in the middle. By dividing the river into three unequal sections and keeping the gradient step length the same for each section, a gradient effect with slow changes in the middle and fast changes on both sides is achieved.
[0024] 2- Jumping symbols: These are mainly used to represent various boundaries. When representing countries and domestic administrative divisions on a map, boundaries are drawn to distinguish their borders. The following rules should be followed when drawing them:
[0025] Rule 1: When the boundary line does not overlap with other linear features, the integrity of the boundary line should be maintained and the entire line should be exported continuously;
[0026] Rule 2: The boundary line should coincide with the skeleton line of other linear features. The boundary line should be drawn along the center line in a staggered manner to ensure that the symbol center line is consistent with the actual geographical location;
[0027] There are two types of jump drawings:
[0028] (1) Center jump drawing: Draw the symbol at the center of the linear feature, and ensure that the boundary line has symbols at the starting point and end point of the line segment;
[0029] (2) Skip drawing on both sides: boundary symbols are drawn alternately along both sides of the linear feature, and symbols are not drawn at the starting and ending points of the line segment;
[0030] When drawing boundary jumps, ensure that the symbols follow the drafting specifications, and at the same time, the symbols of each segment are exactly the same and there must be boundary symbols at the skeleton line nodes;
[0031] When drawing on both sides, the symbol is drawn along the line jump feature of Adobe Illustrator software. The symbol is considered to be drawn along three mutually parallel skeleton lines. The symbol is drawn along the upper skeleton line and the lower skeleton line respectively.
[0032] 3- Adaptive symbols: Bridges are classified into single-deck railway or highway bridges, dual-deck railway and highway bridges, and parallel railway and highway bridges. Bridges connecting the front and rear highway traffic overlay other symbols.
[0033] (1) Single-track bridge: The bridge is divided into scale symbols and non-scale symbols according to the length of the bridge. It is shown on the map as connecting single-track roads. To keep the symbols beautiful, the width of the bridge symbol for the front and rear roads should be consistent with the width of the front and rear roads. When the widths of the front and rear roads are different, the wider road is selected as the standard. Combined with AI mapping software, the single-track bridge is divided into two parts: the bridge body and the bridge wing. The angle between the bridge wing and the bridge body is 45°.
[0034] (2) Double-track bridge: After splitting, it consists of two parts: the bridge body and the bridge wings. The bridge body is formed by four line segments overlapping each other. The elytra and the bridge body follow a strict overlapping relationship. The connection with the road on the diagram is divided into two situations: the road width is consistent with the width of the inner bridge line segment, so as to highlight the bridge symbol; or the connecting road is a double line, and the double line intersects with the bridge wings to highlight the continuity of the road;
[0035] 4-Combined symbols: This refers to symbols where each line in the symbol is different, including interchanges. Interchanges are spatial intersections of roads at different elevations. Interchanges are represented to scale, and according to projection principles, the lower layer covered by the upper layer is disconnected, while the upper layer remains intact. The direction of the knock in the symbol is consistent with the direction of the passage or street. Ramps are a key component of complex interchanges, connecting the upper and lower levels of the interchange. Ramps should match the color of the highway they connect. When a ramp connects highways of different grades, the color of the lower grade highway is used as the ramp representation color.
[0036] First, the symbol data must be structured, and the main roads and ramps must be decomposed. At the same time, the main road numbers must be classified from high to low according to the road elevation. Based on the main road classification, the ramp connection status must be further classified, including the numbers of the two connected main roads, to correctly reflect the connectivity of the road.
[0037] Preferably, the linear symbol configuration process: symbol configuration is to automatically map the data in a unified format obtained by the pre-processing module, that is, based on the GIS data obtained by the data pre-processing module, based on the support of the map symbol library and rule library, realize the automatic conversion of GIS data to Adobe Illustrator data, automatic annotation configuration, and intelligent operation of element symbolization;
[0038] Under the constraints of the rule library, the original database is pre-processed, including data screening, projection transformation, and data classification and grading, to obtain a database for mapping. Then, the existing GIS secondary development interface is used to obtain GIS data from the mapping database, and through the data model converter, combined with the interface provided by Adobe Illustrator, it is converted into mapping data. With the support of the symbol library and rule library, the data is symbolized, and the intelligent configuration of symbols and annotations is completed. Finally, the places that do not conform to the mapping rules are modified and optimized to obtain a publishable map.
[0039] Preferably, line symbols are drawn:
[0040] 1- Parallel line symbol drawing: For the skeleton line formed by coordinate points 1 and 2, find the outer parallel line with a distance h between them, and similarly deduce the inner parallel line;
[0041] (1) With the starting point 1 of the line segment as the origin, establish a Cartesian coordinate system. Let the length of Line (1, 2) be d. Find the coordinates of 1' to be (x1, y1 + h), and the coordinates of 2' to be (x1 + d, y1 + h);
[0042] (2) Rotate Line (1', 2') counterclockwise by α degrees along coordinate point 1. In two-dimensional graphics, a transformation matrix is used to quickly calculate the coordinates of a point after rotation along a reference point.
[0043] Where (x r ,y r ) is the rotation base point, θ is the angle to be rotated, counterclockwise is positive, (x', y') is the result after rotation, and Line (1', 2') can be easily obtained;
[0044] (3) Similarly, Line (3', 4') is also obtained using the same method. Line (1', 2') and Line (3', 4') are intersected. At this point, the parallel line has been obtained.
[0045] 2- Single-line gradient drawing: When drawing a single-line river gradient, two transformation methods are used, which are used according to the mapping effect and usage habits;
[0046] (1) Determination of h value in single-line river drawing
[0047] The river width changes follow the following requirements:
[0048] ① The river changes smoothly from thick to thin along its flow direction;
[0049] ② When the source of a river is shown on a map, the minimum line thickness is 0.08 mm, and the line thickness of non-source areas increases;
[0050] ③The change in river thickness is consistent with the river length;
[0051] ④ The line thickness of the tributary source cannot be greater than the line thickness of the mainstream at the intersection with the mainstream;
[0052] ⑤ The speed of changes in the thickness of river lines should meet the requirements of scientific and aesthetics;
[0053] (2) Gradual change
[0054] The segmented gradient is along the skeleton line direction, and the nodes generate groups of parallel lines in sequence. The distance between two adjacent positioning line segments and the parallel lines becomes larger or smaller;
[0055] (3) Continuous Gradient
[0056] By improving the parallel line drawing algorithm and controlling the position of the parallel line endpoints, the fitting curve becomes a gradient line only when the distance between the two nodes is small enough.
[0057] 3-Linear multiple-loop drawing: When configuring line-based multiple-loop, the skeleton line of the linear element is mn, the anchor point of the point element is a, and the distance between the anchor points is d. After selecting an anchor point on the line segment mn, place the point element at the anchor point with a distance d before and after it. The element's own coordinate system is xOy. A coordinate system x'Oy' is created for each anchor point along the line segment mn. The point element is translated and overlapped to the anchor point. Repeat the above process to complete the drawing of all point elements.
[0058] (1) Determine the location of the point element: Divide the line segment into equal parts and obtain each segment node, or determine the location of each node at a distance L from the starting point. The formula is:
[0059] P t =L+n*d
[0060] (2) Point primitive rotation: In two-dimensional graphics, a transformation matrix is used to quickly calculate the coordinates of a point after rotation along a certain reference point:
[0061] P t =R(θ)*P
[0062] Where (x r ,y r ) is the rotation base point, θ is the angle to be rotated, counterclockwise is positive, and (x', y') is the result after rotation;
[0063] 4- Adaptive bridge drawing: Data is given a special field to identify the bridge data in the road layer. Parallel bridges require additional fields to identify parallel lines. The width of the connecting roads before and after is considered according to the scale of single-deck bridges, double-deck bridges, and parallel bridges. Combined with GIS data attributes, the tail bridge wings (four short lines) are connected to the road when drawing the bridge, reducing the bridge width to make the drawn bridge beautiful and elegant.
[0064] 5- Overpass drawing: First, define the format of the overpass data:
[0065] (1) Mark the road sections with forks and sort them in the order of elevation, with the lowest level marked as 1 and the upper level as 2.
[0066] (2) For the small ramps without forks connected to the above sections, mark them in order of elevation. The ramps connected to Section 1 are marked in order of elevation from low to high as 1-1, 1-2, etc.;
[0067] Drawing method:
[0068] ①i=1;
[0069] ② Draw the black part of the road section numbered i, j = 1;
[0070] ③ Draw the black part numbered ij;
[0071] ④ Draw the white part numbered ij;
[0072] ⑤ Check whether all ramps of the road section numbered i have been drawn. If not, j++ and return to step 3;
[0073] ⑥ Draw the white part of the road section numbered i;
[0074] ⑦ Check whether all road sections have been drawn. If not, i++ and return to step 2;
[0075] 6-Interval transformation algorithm: There are two types of dotted line settings:
[0076] (1) Change the dashed line width, but dotted line length: the first time the line width is M (mm), the solid line segment and dashed line segment are N1 (mm) and N2 (mm), then the solid line segment and dashed line segment setting values are N1 / M and N2 / M, the second time the line width is M', the solid line segment and dashed line segment lengths are not changed, the solid line segment and dashed line segment setting values are changed to N1 / M' and N2 / M';
[0077] (2) Dashed line symbol, consisting of two lines with the same dashed length: the width of the first line segment is M (mm), the solid line segment and the dashed line segment are L1 (mm) and L2 (mm), respectively, then the solid line segment and the dashed line segment setting values are L1 / M and L2 / M, the width of the second line segment is N, then the solid line segment and the dashed line segment setting values are L1 / N and L2 / N.
[0078] Preferably, symbol conflicts are handled:
[0079] 1- Alignment and loop symbol configuration issues
[0080] (1) The point element is located at the inflection point or is not drawn completely
[0081] Solution: Each positioning point determines whether it is too close to the node. If it is smaller than the dot element, move it left or right to optimize the configuration.
[0082] (2) Intersection of skeleton line and point primitives
[0083] Solution: Before drawing the graphics, add an intersection judgment with each line segment. First, use the rectangle formed by the line segments and the rectangle of the point graphics to make an intersection judgment. If the two rectangles intersect, then make a judgment on the circumscribed rectangle of the line segments and the point graphics. If an overlapping problem occurs, move the positioning point of the point graphics to the left or right and restart the judgment to avoid new conflicts caused by the shift. If the shift cannot solve the problem, place a special mark and let the cartographer decide on the solution himself.
[0084] (3) Dashed line reinforcement problem
[0085] Solution: Judge each node separately. When the above problem occurs, the loop unit moves along the skeleton line as a whole to ensure that all dotted spaces are staggered between nodes.
[0086] 2-Same type symbol conflict
[0087] Solution: When drawing roads, separate them into upper and lower layers. Single-line roads are grouped as the lower layer of two-line roads. Add a Merge Roads option to the mapping rules and check the layer where the road overlap occurs. When drawing, give priority to drawing the lower layer of the included layer, then draw the upper layer lines. By controlling the order of symbol drawing, the symbol conflict problem can be resolved.
[0088] 3- Different types of symbol conflicts
[0089] Solution: Establish symbol weight values. Symbol weight values indicate the importance of symbols on the map. The larger the weight value, the more important the symbol is. It should be fully represented on the map. When drawing symbols with lower weight values, symbols with higher weight values should be avoided. Due to different map types and different expressions, the same symbol has different weight values in different maps. When drawing symbols, symbols with higher weight values should be located on the upper layer of the layer, with an overlay effect, and symbols with higher weight values should be displayed completely.
[0090] Preferably, the linear symbol configuration plug-in architecture includes: a map data reading module, a map symbol management module, a map rule management module, a map symbol configuration module and a system configuration module;
[0091] (1) Map data reading module: reads and filters data from multiple data sources, pre-processes the data, and finally converts the data and stores it in the cartographic database;
[0092] (2) Map symbol management module: It includes two parts: symbol library and symbol library management. The symbol library is a linear symbol stored in three drawing methods, by storing description information in the database. Cartographic database management includes adding, modifying, deleting and querying symbols;
[0093] (3) Map rule management module: It includes two parts: map making rule base and rule base management. The rule base uses an external database to organize the map making rule base. The rule base management module is responsible for the storage and call management of the map making rules.
[0094] (4) Map symbol configuration module: realizes mapping of cartographic data under the support of map symbol library and the constraints of map rule library, and realizes rapid symbolization and symbol conflict processing of GIS data in Adobe illustrator;
[0095] (5) System configuration module: configures the normal operation environment of the plug-in, including license installation, scale setting, and correct configuration of the initial symbol library and rule library.
[0096] Preferably, GIS elements and cartographic elements are converted: the smallest unit of any graphic object is the Art object. All cartographic elements contained in the Art object exist in the Art object's dictionary, including element type, priority, length, and rule information. All spatial information and attribute information in the GIS data needs to be converted into the Art object.
[0097] 1- Spatial information conversion: Point features are represented as two-dimensional points with coordinates, and are represented as graphic features with symbols in Adobe Illustrator. Line features have only length and no width attributes, and are represented by a series of coordinate pairs. Adobe Illustrator also represents them by a series of coordinate pairs, and different linear features are distinguished by width and style. Area features contain length and area, and are closed by a series of one or more coordinate pairs. Adobe Illustrator only has closed line objects with fills.
[0098] 2- Attribute information conversion: By extending the Art object properties of Adobe illustrator and adding Dictionary entries, the obtained geographic object properties are mounted on the Art object. When attribute information is needed, the original information can be found through the Art object, which facilitates data conversion.
[0099] Compared with the existing technology, the innovation and advantages of this application are:
[0100] (1) This application addresses the problem that existing linear symbols cannot be quickly configured, proposes a new linear symbol design and configuration method, expands the mapping software Adobe Illustrator, and adds a map mapping module. Under the control of the map rule library, the geographic information database is used to achieve rapid symbolization of data and rapid configuration of map linear symbols. In this way, the symbols of GIS data will be quickly configured, the manual workload of map making will be reduced, and the overall quality of map compilation will be improved. Symbol design not only considers whether the symbols are beautiful and generous, but also solves the problem of complex linear symbol information in map symbols due to their complex program algorithms and large amount of calculations. It can scientifically, reasonably and effectively design and express linear symbols as map symbols, providing help for fully automated mapping.
[0101] (2) This application proposes to expand and redevelop the Adobe illustrator software, using plug-in technology to realize data reading and automatic symbol configuration from the bottom layer, and establish a set of universal and feasible methods. At the same time, when the amount of data is large, linear symbols have the problems of long drawing time, strong software dependence, and inability to expand functions. In response to the above practical problems, this application carries out corresponding research and development, conceiving a set of widely applicable linear symbol expression methods. With the support of Adobe illustrator software, plug-ins are used to expand software functions and realize linear symbol configuration, thereby solving these existing problems. Its functions include: first, lossless GIS conversion is achieved, which can be recognized by mapping software, and a common channel is established between GIS data and mapping data; second, GIS data participates in symbol drawing, fully utilizes the spatial information and semantic information of GIS data, and improves map drawing efficiency; third, symbol drawing is carried out on the mapping platform, and data processing and symbol drawing are carried out separately, and GIS software and mapping platform each play their own advantages.
[0102] (3) This application is developed based on mapping software, converting GIS data into mapping data. Based on the characteristics of map linear symbols and combined with the characteristics of Adobe illustrator mapping environment, a new linear symbol design method and key algorithm are established to finally realize the automatic symbolization of data. Based on AI line symbols, a line symbol design method that supports automatic drawing is established: through AI line symbol design standards, linear symbol design elements and rules are constructed, and a line symbol design method that supports automatic drawing is proposed; AI line symbol configuration rules and methods are established: design models are optimized, AI linear symbol configuration technology is improved, and configuration method implementation algorithms are established; based on AI plug-in technology, line symbol automatic drawing and configuration plug-ins are developed to realize the rapid symbolization of GIS data in actual mapping, while ensuring that data attribute information is not lost, improving mapping efficiency, and constructing the conversion from GIS data to mapping data, which has important reference and practical value for the mapping field. GIS data is converted to AI mapping data through the model, and combined with the linear symbol configuration method, it can realize automatic symbol configuration, and the configured symbols are beautiful and accurate. The configuration process is simple and efficient, providing reliable support for rapid map publishing and promoting the process of automated map publishing. BRIEF DESCRIPTION OF THE DRAWINGS
[0103] Figure 1 It is a schematic diagram of the classification of linear symbols according to design methods.
[0104] Figure 2 It is a schematic diagram of railway symbol drawing with multiple styles of superimposed covers.
[0105] Figure 3 It is a schematic diagram of the line and multiple loop to represent the street tree symbol drawing.
[0106] Figure 4 It is a schematic diagram of the linear symbol configuration process.
[0107] Figure 5 This is a schematic diagram of the method of drawing parallel lines.
[0108] Figure 6 This is a schematic diagram of the overpass data format definition.
[0109] Figure 7 This is a schematic diagram of the situation where the point element is located at the Yang point.
[0110] Figure 8 A dotted space appears in the node situation diagram.
[0111] Figure 9 This is a schematic diagram of the conflict resolution of symbols of the same type.
[0112] Figure 10 This is a schematic diagram of the design architecture of the linear symbol configuration plug-in.
[0113] Figure 11 It is a local effect of linear symbol configuration mapping Figure 1 .
[0114] Figure 12 It is a local effect of linear symbol configuration mapping Figure 2 .
[0115] Figure 13 This is a schematic diagram of an example of drawing a fixed-line complex loop symbol. DETAILED DESCRIPTION
[0116] Below, in conjunction with the accompanying drawings, the technical solution of the AI map linear symbol design and plug-in automatic configuration method provided by this application is further described so that those skilled in the art can better understand this application and implement it.
[0117] The rapid development of geographic information systems (GIS) and the widespread application of computer cartography have made the integration of the two an inevitable trend in scientific development. Among the elements that make up a map, map symbols carry a large amount of map information. Linear symbols in maps are complex and diverse, making their design and configuration of important significance and practical value.
[0118] This application is based on the Adobe Illustrator environment, with the help of secondary development technology, and uses GIS data containing rich semantic information. Under the support of the map symbol library and the control of the symbol rule library, a new linear symbol design and rapid configuration method is established, which greatly simplifies the map symbol configuration process, reduces manpower while ensuring configuration accuracy, and quickly produces GIS data, proposing a different solution.
[0119] This application is developed based on mapping software, converting GIS data into mapping data. Based on the characteristics of map linear symbols and combined with the characteristics of Adobe illustrator's mapping environment, a new linear symbol design method and key algorithms are established to ultimately achieve automatic symbolization of data.
[0120] (1) Establishing a line symbol design method that supports automated drawing based on AI line symbols: Through AI line symbol design standards, linear symbol design elements and rules are constructed, and a line symbol design method that supports automated drawing is proposed;
[0121] (2) Establishing AI offline symbol configuration rules and methods: Optimizing the design model, improving AI offline symbol configuration technology, and establishing configuration method implementation algorithms;
[0122] (3) Based on AI plug-in technology, a plug-in for automatic drawing and configuration of line symbols is developed to realize the rapid symbolization of GIS data in actual mapping, while ensuring that data attribute information is not lost, improving mapping efficiency, and constructing the conversion from GIS data to mapping data, which has important reference and practical value in the field of mapping.
[0123] The experimental results show that, based on the theoretical support of this application, GIS data is converted into AI mapping data through the model, and combined with the linear symbol configuration method, automatic symbol configuration can be achieved. The configured symbols are beautiful and accurate, and the configuration process is simple and efficient. It undoubtedly provides reliable support for the rapid publication of maps and promotes the process of automated map publishing.
[0124] 1. Linear Symbol Design Method in Adobe Illustrator
[0125] Map symbol systems vary across industries and regions, so a unified symbol system cannot be used to represent all geographical features or themes. Map symbols used in different eras within the same region can also differ. To facilitate symbol sharing and reuse, linear symbols are created in accordance with the national basic scale (1:10,000) map format (GB / T20257.2-2006). Linear symbols are categorized into the following six types:
[0126] (1) Water system: including linear symbols of rivers, ditches, and embankments;
[0127] (2) Residential areas and facilities: including city walls, fences, and various types of land boundary lines;
[0128] (3) Transportation: including a large number of linear symbols for railways and highways;
[0129] (4) Pipelines: including transmission lines and pipeline linear symbols;
[0130] (5) Boundary: including national borders, administrative boundaries at the provincial, municipal, and county levels;
[0131] (6) Landforms: including contour lines, slope lines and other linear landform symbols.
[0132] When designing map symbols, the symbols cover all the above types of symbols, and add several special linear symbols commonly used in map making.
[0133] Linear symbols are of various types and shapes, but they all have skeleton lines for positioning and expansion, and the skeleton lines are visible or invisible. This application parses all parallel lines into two line segments, which are displayed by overlapping the two line segments with the same skeleton lines but different styles. Solid lines and dashed lines are controlled by the line style parameters of Adobe illustrator and are no longer subdivided. On this basis, all linear symbols are divided into two basic linear segments and dotted lines. Dotted lines represent dotted graphics elements that appear repeatedly at certain intervals along the upper edge of the linear symbol. After classifying all linear symbols, three symbol design methods are established. Specific classifications are as follows: Figure 1 shown.
[0134] (1) Multiple styles of superimposed capping
[0135] The symbols should be simple in structure after decomposition, and the symbols should be regular single-line or double-line symbols, which are linear symbols of traffic roads;
[0136] The idea of multi-style overlay is that the symbol is composed of multiple line segments, which are determined by the basic skeleton line as the skeleton line, and then different styles are generated and overlapped with each other;
[0137] After the symbol is decomposed, it is composed of one or more line segments. After the railway symbol is decomposed, it is composed of two line segments. One is the lower black solid line segment with a width of m, and the other is the upper white dashed line segment with a width of n, where n < m. When the two lines overlap, the white line segment is highlighted by superimposing the two lines, and the railway symbol is drawn. Figure 2 shown.
[0138] (2) Fixed line recirculation
[0139] The symbols included in the alignment complex loop are all repeated dot-shaped graphics elements around the positioning line. The alignment complex loop sets one or more applicable symbols in each type of symbol.
[0140] Decompose the linear symbol into two parts, including the street tree symbol. After decomposition, it consists of a line segment and repeated dot-shaped primitives. One is the basic skeleton line, which is hidden or has a style. When the dot-shaped primitive is used as a recurring template, the effective blank part is included to form a regular circumscribed rectangle. This makes it convenient and quick to configure along the symbol skeleton line, and it can also simplify the handling of symbol conflicts. Figure 3 shown.
[0141] In order to control the distance between two adjacent graphics elements, the third parameter is introduced, that is, the distance L between the two graphics elements, L ≥ 0. When L is the symbol width, it is a special cyclic pattern. In the wavy line symbol of the wavy line symbol, L is the symbol width. At the same time, the skeleton line is not displayed and is represented by a gray dotted line.
[0142] (3) Process Adaptation
[0143] 1. Gradient symbols
[0144] A model is used to represent the distribution of rivers and their positional relationships, distinguishing between the main stream and tributaries of a river. By controlling the width of the river on the map, people can feel that the river is changing. The width transformation is divided into uniform change and non-uniform change. The non-uniform change adopts a change rhythm with fast changes at the beginning and end and slow changes in the middle. By dividing the river into three unequal sections with the same gradient step length for each section, a gradient effect with slow changes in the middle and fast changes on both sides is finally achieved.
[0145] 2. Jump drawing symbols
[0146] When representing countries and domestic administrative divisions on a map, we draw boundaries to distinguish them, focusing on various boundaries. The following rules should be followed when drawing boundaries:
[0147] Rule 1: When the boundary line does not overlap with other linear features, the integrity of the boundary line should be maintained and the entire line should be exported continuously;
[0148] Rule 2: The boundary line should coincide with the skeleton line of other linear features. The boundary line should be drawn along the center line in a staggered manner to ensure that the symbol center line is consistent with the actual geographical location;
[0149] There are two types of jump drawings:
[0150] (1) Center jump drawing: Draw symbols at the center of the linear feature, and ensure that symbols exist at the starting point and end point of the boundary line segment.
[0151] (2) Skip drawing on both sides: Draw boundary symbols alternately along both sides of the linear feature, and do not draw symbols at the starting and end points of the line segment
[0152] When drawing boundaries, ensure that the symbols follow the drawing specifications, and at the same time, the symbols of each segment are exactly the same and there must be boundary symbols at the skeleton line nodes.
[0153] When the symbols are drawn on both sides, the line jumping drawing feature of Adobe illustrator software is combined. The symbols are regarded as being drawn along three mutually parallel skeleton lines. The symbols are drawn along the upper skeleton line and the lower skeleton line respectively.
[0154] 3. Adaptive symbols
[0155] Bridges are divided into single-deck railway or highway bridges, double-deck bridges for both railway and highway, and bridges with railways and highways running in parallel. Bridges connect the front and rear highway traffic, covering up the other symbols to achieve the purpose of highlighting the symbols.
[0156] (1) Single-track bridge: The bridge is divided into scale symbols and non-scale symbols according to the length of the bridge. The bridge is shown as a single-track road on the map. To keep the symbols beautiful, the width of the bridge symbol for the front and rear roads should be consistent with the width of the front and rear roads. When the widths of the front and rear roads are different, the wider road is selected as the standard. Combined with AI mapping software, the single-track bridge is divided into two parts: the bridge body and the bridge wing. The angle between the bridge wing and the bridge body is 45°.
[0157] (2) Double-track bridge: After splitting, it consists of two parts: the bridge body and the bridge wings. The bridge body is formed by four line segments overlapping each other. The elytra and the bridge body follow a strict overlapping relationship. The connection with the road on the diagram is divided into two situations: the road width is consistent with the width of the inner bridge segment, so as to highlight the bridge symbol; or the connecting road is a double line, and the double line intersects with the bridge wings to highlight the continuity of the road.
[0158] 4. Combined symbols
[0159] It means that each line symbol in the symbol is different, including overpasses. Overpasses are spatial three-dimensional intersections of roads at different elevations. For overpasses represented according to the scale, the part of the lower layer covered by the upper layer is disconnected according to the projection principle, and the upper layer remains intact. At the same time, the direction of the knock in the symbol is consistent with the direction of the channel or street. Ramps are an important component of complex overpasses, responsible for connecting the upper and lower layers of the interchange (highways, expressways, main and secondary roads). The ramp should be consistent with the color of the highway it connects. When a ramp connects highways of different grades, the color of the lower grade highway is used as the ramp representation color 36.
[0160] First, the symbol data must be structured, and the main roads and ramps must be decomposed. At the same time, the main road numbers must be classified from high to low according to the road elevation. Based on the main road classification, the ramp connection status must be further classified, including the numbers of the two connected main roads, to correctly reflect the connectivity of the roads. The actual overpass situation can be clearly seen at a glance through the symbols.
[0161] 2. Linear Symbol Configuration Process
[0162] Symbol configuration is an automatic mapping based on the data in a unified format obtained by the early pre-processing module. That is, based on the GIS data obtained by the data pre-processing module and supported by the map symbol library and rule library, it realizes the automatic conversion of GIS data to Adobe Illustrator data, automatic annotation configuration, and intelligent operation of element symbolization.
[0163] like Figure 4 As shown in the figure, under the constraints of the rule library, the original database is pre-processed, including data screening, projection transformation and data classification and grading, to obtain a database for mapping. Then, the existing GIS secondary development interface is used to obtain GIS data from the mapping database, and the data is converted into mapping data through the data model converter combined with the interface provided by Adobe illustrator. With the support of the symbol library and rule library, the data is symbolized, and the intelligent configuration of symbols and annotations is completed. Finally, the places that do not conform to the mapping rules are modified and optimized to obtain a publishable map.
[0164] 3. Linear symbol configuration method under Adobe illustrator
[0165] It includes data pre-processing, linear symbol matching, linear symbol drawing and symbol conflict processing.
[0166] (1) Data pre-processing
[0167] The data sources in the original GIS database are complex, and the data and attributes therein are of no use value for map making. In order to improve the efficiency of mapping, it is necessary to pre-process the data to make it suitable for map making.
[0168] Pre-processing includes the following three steps: data format and projection conversion, classification and grading, and data screening.
[0169] (2) Linear symbol drawing
[0170] 1. Parallel line symbol drawing
[0171] For the skeleton line formed by coordinate points 1 and 2, find the outer parallel line with a distance h between them, and similarly find the inner parallel line.
[0172] (1) With the starting point 1 of the line segment as the origin, establish a Cartesian coordinate system. Let the length of Line (1, 2) be d. Calculate the coordinates of 1' to be (x1, y1 + h), and the coordinates of 2' to be (x1 + d, y1 + h), as shown in the following example: Figure 5 (a)
[0173] (2) Figure 5 In (a), Line (1', 2') rotates α degrees counterclockwise along coordinate point 1, as shown in Figure 5 (b) In two-dimensional graphics, a transformation matrix is used to quickly calculate the coordinates of a point after rotation about a reference point.
[0174] Where (x r ,y r ) is the rotation base point, θ is the angle to be rotated, counterclockwise is positive, (x', y') is the result after rotation, and Line (1', 2') can be easily obtained;
[0175] (3) Similarly, Line (3', 4') is obtained using the same method. Line (1', 2') and Line (3', 4') are intersected and the intersection point is Figure 5 At the small black dot shown in (c), the parallel line has been found.
[0176] 2. Single-line gradient drawing
[0177] When drawing the gradient of a single-line river, two transformation methods are used, which are used according to the mapping effect and usage habits.
[0178] (1) Determination of h value in single-line river drawing
[0179] The river width changes follow the following requirements:
[0180] ① The river changes smoothly from thick to thin along its flow direction;
[0181] ② When the source of a river is shown on a map, the minimum line thickness is 0.08 mm, and the line thickness of non-source areas increases;
[0182] ③The change in river thickness is consistent with the river length;
[0183] ④ The line thickness of the tributary source cannot be greater than the line thickness of the mainstream at the intersection with the mainstream;
[0184] ⑤ The speed of changes in the thickness of river lines must conform to the requirements of scientific beauty.
[0185] (2) Gradual change
[0186] The segmented gradient is along the skeleton line direction, and the nodes generate groups of parallel lines in sequence. The distance between two adjacent positioning line segments and the parallel lines becomes larger or smaller.
[0187] (3) Continuous Gradient
[0188] By improving the parallel line drawing algorithm and controlling the positions of the parallel line endpoints, the fitting curve becomes a gradient line only when the distance between the two nodes is small enough.
[0189] 3. Line determination and multiple cycle drawing
[0190] When configuring the line in a multiple-loop configuration, the skeleton line of the linear element is mn, the anchor point of the point element is a, and the distance between the anchor points is d. After selecting an anchor point on the line segment mn, place the point element at the anchor points with a distance d before and after. The element's own coordinate system is xOy. Create a coordinate system x'Oy' for each anchor point along the line segment mn. Move the point element to overlap with the anchor point. Repeat the above process to complete the drawing of all point elements.
[0191] (1) Determine the location of the point element: Divide the line segment into equal parts and obtain each segment node, or determine the location of each node at a distance L from the starting point. The formula is:
[0192] P t =L+n*d
[0193] (2) Point primitive rotation: In two-dimensional graphics, a transformation matrix is used to quickly calculate the coordinates of a point after rotation along a certain reference point:
[0194] P t =R(θ)*P
[0195] Where (x r ,y r ) is the rotation base point, θ is the angle to be rotated, counterclockwise is positive, and (x', y') is the result after rotation.
[0196] 4. Adaptive bridge drawing
[0197] The data is given a special field to identify bridge data in the road layer. Parallel bridges require additional fields to identify parallel lines. The width of the connecting roads before and after is considered according to the scale of single-deck, double-deck, and parallel bridges. Combined with GIS data attributes, the bridge's tail wings (four short lines) are connected to the road when drawing, reducing the bridge width. This makes the drawn bridges aesthetically pleasing and realistic.
[0198] 5. Overpass drawing
[0199] First, define the format of the overpass data:
[0200] (1) Mark the road sections with forks and sort them in the order of elevation, with the lowest level marked as 1 and the upper level as 2.
[0201] (2) For the small ramps without forks connected to the above sections, mark them in order of elevation. The ramps connected to Section 1 are marked in order of elevation from low to high as 1-1, 1-2, etc.; Figure 6 As shown;
[0202] Drawing method:
[0203] ①i=1;
[0204] ② Draw the black part of the road section numbered i, j = 1;
[0205] ③ Draw the black part numbered ij;
[0206] ④ Draw the white part numbered ij;
[0207] ⑤ Check whether all ramps of the road section numbered i have been drawn. If not, j++ and return to step 3;
[0208] ⑥ Draw the white part of the road section numbered i;
[0209] ⑦ Check whether all road sections have been drawn. If not, i++ and return to step 2.
[0210] 6. Interval Transformation Algorithm
[0211] Commonly used dotted line symbols such as railways and city boundaries are mostly displayed in a two-line overlapping manner, where the lower layer is a solid line and the upper layer is a dotted line. However, some linear symbols have both upper and lower layers as dotted lines. In mapping software, such as Adobe illustrator or CoreIDraw software, a dotted line drawing method is provided. One solid line segment and one dotted line segment are one section. AI has a maximum of three sections, and CDR has a maximum of five sections. However, when setting the length of the dotted line segments of these two mapping software, it is not set in length units, but in multiples of the line segment width. At present, when actual draftsmen design dotted line segments of map symbols, they set them based on length settings, which need to be converted to multiples by themselves when drawing. When modifying the line segment width, the previous line segment setting needs to be considered. There are two types of dotted line settings:
[0212] (1) Change the dashed line width, but dotted line length: the first time the line width is M (mm), the solid line segment and dashed line segment are N1 (mm) and N2 (mm), then the solid line segment and dashed line segment setting values are N1 / M and N2 / M, the second time the line width is M', the solid line segment and dashed line segment lengths are not changed, the solid line segment and dashed line segment setting values are changed to N1 / M' and N2 / M';
[0213] (2) Dashed line symbol, consisting of two lines with the same dashed length: the width of the first line segment is M (mm), the solid line segment and the dashed line segment are L1 (mm) and L2 (mm), respectively, then the solid line segment and the dashed line segment setting values are L1 / M and L2 / M, the width of the second line segment is N, then the solid line segment and the dashed line segment setting values are L1 / N and L2 / N.
[0214] (3) Symbol conflict handling
[0215] 1. Alignment loop symbol configuration issue
[0216] (1) The point element is located at the inflection point or is not drawn completely
[0217] Problem: During the symbol drawing process, the point primitives on the line symbol are arranged cyclically with equal distances along the skeleton line. After the point symbol positioning point is determined, the point symbol needs to be rotated according to the line segment angle. Sometimes the point primitive positioning point falls exactly on the inflection point of the skeleton line, which affects the appearance. The position of the point primitive needs to be optimized, such as Figure 7 shown.
[0218] Solution: Determine whether each positioning point is too close to the node. If it is smaller than the point-shaped element, move it left or right to optimize the configuration.
[0219] (2) Intersection of skeleton line and point primitives
[0220] The problem is raised: When using the plug-in to express symbols, the point graphics on the linear symbol are arranged in a circular manner along the skeleton line at different distances. The positioning points of the point symbols are determined. The point symbols may be passed through the skeleton line, affecting the symbol drawing.
[0221] Solution: Before drawing the graphics, add an intersection judgment with each line segment. First, use the rectangle formed by the line segments and the rectangle of the point graphics to make an intersection judgment. If the two rectangles intersect, then make a judgment on the circumscribed rectangle of the line segments and the point graphics. If an overlapping problem occurs, move the positioning point of the point graphics to the left or right and restart the judgment to avoid new conflicts caused by the shift. If the shift cannot solve the problem, place a special mark and let the cartographer decide on the solution himself.
[0222] (3) The problem of dotted line reinforcement is proposed: the dotted line is regarded as a basic graphic element that is configured cyclically along the skeleton line. If it is not controlled during configuration, dotted space will appear at the node, making the dotted line discontinuous. Figure 8 shown.
[0223] Solution: Judge each node separately. When the above problem occurs, the loop unit moves along the skeleton line as a whole to ensure that all dotted spaces are staggered between nodes.
[0224] 2. Conflict of symbols of the same type
[0225] The problem: When symbols of the same type overlap, "same" refers to generally similar symbol styles or the same symbol design methods. For example, two different two-lane roads intersect, and the symbol styles are generally similar. In real life, these two roads are intended to connect at the intersection, but due to overlapping, the connection effect is not well displayed, and this conflict needs to be addressed. For example, when a two-lane road is connected to a single-lane road at an intersection, while the roads appear connected, the map is not aesthetically pleasing. The abrupt broken lines make the map look cluttered and conflicting.
[0226] The conflict problem caused by overlapping symbols of the same type is that after overlapping, the display on the picture is not beautiful and has defects.
[0227] Solution: When drawing roads, they are divided into upper and lower layers and drawn separately. Single-line roads are classified as the lower layer of double-line roads. Add the Merge Roads option in the mapping rules and check the layer where the road overlaps. When drawing, give priority to drawing the lower layer of the included layer, and then draw the upper layer lines of the layer. By controlling the symbol drawing order, the symbol conflict problem can be solved.
[0228] Solution effect; by changing the drawing order of symbols to solve the symbol conflict problem, the effect is as follows Figure 9 shown.
[0229] 3. Conflicts between different types of symbols
[0230] The problem is: Different symbol types refer to symbols of different styles that overlap each other. Due to the layer order, the symbols cannot be fully represented. The middle of the road is the national border, but because the road and the national border are on the same line, the center of the national border jumps to the center and is covered and hidden by the road, resulting in conflicts between line symbols.
[0231] Solution: To resolve this type of conflict caused by symbol overlapping, establish symbol weight values. Symbol weight values indicate the importance of symbols on the map. The larger the weight value, the more important the symbol is. It should be fully represented on the map. When drawing symbols with lower weight values, symbols with higher weight values should be avoided. Due to different map types and different expressions, the weight values of the same symbol in different maps are different. When drawing symbols, symbols with higher weight values should be located on the upper layer of the layer, and the overlapping effect should be displayed. Symbols with higher weight values should be displayed completely.
[0232] 4. Linear symbol configuration plug-in design
[0233] (1) Plug-in architecture
[0234] It includes map data reading module, map symbol management module, map rule management module, map symbol configuration module and system configuration module, such as Figure 10 Shows the overall functionality of the plugin.
[0235] (1) Map data reading module: reads and filters data from multiple data sources, pre-processes the data, and finally converts the data and stores it in the cartographic database;
[0236] (2) Map symbol management module: It includes two parts: symbol library and symbol library management. The symbol library is a linear symbol stored in three drawing methods, by storing description information in the database. Cartographic database management includes adding, modifying, deleting and querying symbols;
[0237] (3) Map rule management module: It includes two parts: map making rule base and rule base management. The rule base uses an external database to organize the map making rule base. The rule base management module is responsible for the storage and call management of the map making rules.
[0238] (4) Map symbol configuration module: realizes mapping of cartographic data under the support of map symbol library and the constraints of map rule library, and realizes rapid symbolization and symbol conflict processing of GIS data in Adobe illustrator;
[0239] (5) System configuration module: configures the normal operation environment of the plug-in, including license installation, scale setting, and correct configuration of the initial symbol library and rule library.
[0240] (2) Conversion between GIS elements and cartographic elements
[0241] The smallest unit of any graphic object is the Art object. All cartographic elements contained in the Art object exist in the Art object's Dictionary, including feature type, priority, length, and rule information. All spatial information and attribute information in GIS data needs to be converted into the Art object.
[0242] 1. Spatial Information Conversion
[0243] Point features are represented as two-dimensional points with coordinates, and are represented as graphic features with symbols in Adobe Illustrator; line features have only length and no width attributes, and are represented by a series of coordinate pairs. In Adobe Illustrator, they are also represented by a series of coordinate pairs, and different linear features are distinguished by width and style; surface features contain length and area, and are closed by one or more series of coordinate pairs. In Adobe Illustrator, they are just closed line objects with filling.
[0244] 2. Attribute Information Conversion
[0245] By extending the Art object properties of Adobe illustrator and adding Dictionary entries, the obtained geographic object properties are mounted on the Art object. When attribute information is needed, the original information can be found through the Art object, which facilitates data conversion.
[0246] 5. Plugin Development Example
[0247] (1) Plug-in interaction interface
[0248] Development uses the Qt graphical user interface framework, all member functions allow extension and customization, and window widgets are custom drawn using built-in controls.
[0249] (1) Signals and slots: In Qt, objects communicate through the Signal-Slot mechanism. Compared with other class member functions, the only feature of slots is that they can be connected to signals. All classes that use the signal / slot mechanism must contain the Q_OBJECT macro;
[0250] (2) Qt event processing: Events generated by the window system and Qt itself, drawing events for window display, and redraw events for displaying the window after it is hidden.
[0251] (2) Map data reading module
[0252] 1. Map data reading process
[0253] The map data module is responsible for reading data and simple data processing. Data reading starts with data preparation. The selected data undergoes pre-processing, and the data is synthesized a second time to screen out data suitable for mapping. After model conversion, it is converted into mapping data under the control of the scale and stored in the memory to prepare for symbol configuration.
[0254] 2. Implementation of data model conversion function
[0255] Using the secondary development method, data acquisition is simplified by ArcEngine components, mapping data is provided by Adobe Illustrator interface, and the plug-in builds a bridge between the two.
[0256] Conversion of attribute information: Use extended graphics Art objects, add attribute tags, and store attributes in extension items provided by the Art object in Adobe illustrator.
[0257] (3) Map symbol management module
[0258] Symbols are managed using a symbol library, and data is automatically matched with symbols based on semantic information, reducing manual intervention, alleviating work intensity, and reducing repetitive work.
[0259] (1) Point symbols: There is a point symbol library in general vector drawing software. The symbol tool provided by Adobe Illustrator copies graphic information directly to the layer. When the symbol is modified, all copied symbols will be modified accordingly. Complex graphic symbols are manually created in advance and then stored in the symbol library for use, ensuring user convenience while taking efficiency into account.
[0260] (2) Line symbols: Linear elements include roads, administrative boundaries, and rivers. The symbol type is automatically determined based on data attribute information, and data symbolization is performed. Conflict resolution is also performed. Symbol description information is designed in advance by the cartographer and then stored in the symbol library.
[0261] (3) Surface symbols: Only some surface elements in the data are retained. The symbol expression method is similar to that of line symbols. Symbol design and modification also need to be made in advance and saved in the symbol library. The difference between surface symbols and line symbols is that surface symbols use internal filling. The area information of different regions can be expressed by different internal fillings.
[0262] (4) Map rule management module
[0263] When drawing symbols, we can adjust the order of symbol drawing to prevent smaller patterns from being overlapped by larger patterns. However, this still leaves some issues where the overlapping relationships between features are inappropriate. The existing problems include the following aspects:
[0264] (1) When drawing a single layer, there are special cases where symbols overlap. For example, in a road layer, if two intersecting roads are drawn one after another, the map will show that the later-drawn road overlaps the earlier one. The spatial relationship expressed is incorrect, and there is a lack of processing for road openings.
[0265] (2) When drawing multiple layers, symbols are configured only according to the layer order, ignoring the overlapping relationship between layers, resulting in incorrect expression of the relationship between features, and manual adjustment of the layer positions is required.
[0266] The above problems require summarizing the drawing rules of single layers and multiple layers, and making adjustments during the symbol drawing process.
[0267] 1. Single layer drawing rules
[0268] Single layer drawing rules include the drawing order of points, lines, and surface features within a single layer. Points and surface features within a single layer are drawn in order of importance or size.
[0269] The single layer drawing rule of line features controls the drawing order of the road layer to ensure that the relationship between road symbols is accurate and there is no conflict, that is, there is no situation where road openings overlap each other.
[0270] When drawing a single road symbol, the lower layer is drawn first, followed by the upper layer. If the drawing order of the road layers is not managed properly, the roads on the map will not be connected, and the road layers will overlap each other. To avoid this problem, the road layers are drawn in a unified layered manner. The bottom layer lines of all road layers are drawn first, followed by the upper layer lines, to obtain a road diagram that conforms to reality.
[0271] The map rule module includes layer overlap and feature conflict rules. The rule library affects the cartographic expression effect in the form of a data table.
[0272] 2. Multiple layer drawing rules
[0273] The drawing order of different layers of point features is controlled by sorting point symbols according to their importance, and the sorting results are stored in the rule library to control the drawing order of different layers of point features and ensure the complete expression of important point symbols.
[0274] For line and surface feature layers, you only need to set the drawing order according to the relationship between the objects to ensure the accuracy of the overlapping information. Manually adjust the layer sequence steps in the AI layer interface, set it in the rule library, and perform automatic adjustments.
[0275] The most basic hierarchical relationship between symbols should be that annotations are at the top, followed by point, line, and surface symbols, and finally map background or basemap. The feature layering step of data pre-processing defines the overlapping relationship of features in the symbolization process.
[0276] 3. Map symbol configuration rules
[0277] By conceptualizing the symbolic relationships in cartography, we formulate layer overlapping rules, symbol configuration rules, annotation configuration rules, feature conflict rules, and other rules to control the order of symbol drawing and ensure the reasonable expression of symbolic relationships. Map symbol configuration rules store summarized cartographic rule clauses in the form of a database, and control the symbolization process together with the symbol library.
[0278] (5) Map symbol configuration module
[0279] 1. Dot symbol
[0280] Adobe illustrator provides a symbol library with an interface, which establishes a mapping relationship by creating a symbol correspondence table.
[0281] 2. Line symbols
[0282] (1) Various styles of superimposed capping
[0283] Line symbols in Adobe Illustrator are stored in an external database, which stores description information and IsCirculation controls the drawing method.
[0284] (2) Fixed line recirculation
[0285] The skeleton line of the routing complex loop is described using a table, and the drawing method is controlled by IsCirculation. The routing complex loop uses a table structure to store the description information of the loop symbol: the first part is the basic information of the symbol: the first line is the size of the symbol on the map, and there is a space between the two values. The second part is the description information of the symbol. The symbol is split into basic graphic components through the description language.
[0286] 6. Linear Symbol Configuration Effect and Analysis
[0287] After data pre-processing, the raw data is divided into 98 layers. For the AI point symbol library, when operated proficiently, each symbol takes 5 seconds, line symbols and surface symbols take 15 seconds each, and rule setting takes 5 seconds for each rule. After proficiency, the time can be further shortened. The symbol library and rule library take a total of 18 minutes. When drawing without annotations, it takes 28 seconds. The mapping effect is good and meets the requirements of the published map base map. It takes 2 minutes and 13 seconds to mark annotations and perform conflict judgment. Compared with non-plug-in symbol configuration, the time is greatly shortened. In addition, the symbol library and rule library can be reused, which further shortens the time and can meet the needs of large-scale emergency mapping tasks. In addition, the symbols meet the habits of cartographers and are easy to modify.
[0288] (1) Local effects
[0289] After local magnification, Figure 11 、 Figure 12 This is a partial rendering. Data conversion is complete with no loss, line nodes display correctly, and details are well-presented. However, no smoothing is performed, and the display quality is poor for roads with many nodes. This will be improved in the pre-processing.
[0290] (2) Example of drawing multiple styles of superimposed overlapping symbols
[0291] The multi-style overlay symbol configuration first obtains the linear features, obtains the corresponding symbol description information according to the category of the linear features, and then symbolizes the linear features in Adobe illustrator based on the description information.
[0292] (3) Example of drawing a fixed line and multiple loop symbol
[0293] Locating line multiple cycle symbol drawing, cycle symbols are free and changeable, symbols are generated visually through the symbol editor and saved as regular data format. When drawing, you can also draw quickly along the positioning line, the effect is as follows Figure 13 shown.
[0294] (4) Process Adaptive Rendering Example
[0295] River gradient drawing is automated by reading data attribute fields and selecting data individually for drawing. It has various methods and is easy to use.
[0296] The overpass data is pre-processed and automatically drawn after reading the symbol library, saving manual time and improving efficiency.
[0297] After processing the data, you can customize bridge symbols as needed to meet the needs of drawing different types of bridges. All parameters of the symbols can be set.
Claims
1. The method for designing map linear symbols and automatically configuring plug-ins under AI is characterized by: Based on the Adobe Illustrator environment, with the help of secondary development and the use of GIS data containing rich semantic information, under the support of the map symbol library and the control of the symbol rule library, a new linear symbol design and rapid configuration method is established. This streamlines the map symbol configuration process, ensures configuration accuracy while reducing manpower, and realizes rapid GIS data mapping. Developed based on mapping software, GIS data is converted into cartographic data. Based on the characteristics of map linear symbols and combined with the characteristics of the Adobe Illustrator mapping environment, a new linear symbol design method and key algorithms are established to ultimately achieve automatic data symbolization, including: (1) Establishing a line symbol design method that supports automated drawing based on AI line symbols: Through AI line symbol design standards, linear symbol design elements and rules are constructed, and a line symbol design method that supports automated drawing is proposed; (2) Establishing AI offline symbol configuration rules and methods: Optimizing the design model, improving AI offline symbol configuration technology, and establishing configuration method implementation algorithms; (3) Based on AI plug-in technology, develop plug-ins for automatic drawing and configuration of line symbols to realize the rapid symbolization of GIS data in actual mapping, while ensuring that data attribute information is not lost, build the conversion from GIS data to mapping data, and promote rapid and automated map publishing.
2. The method for designing map linear symbols and automatically configuring plug-ins under AI according to claim 1, characterized in that: All parallel lines are parsed into two line segments, which are displayed by overlapping two line segments with the same skeleton line but different styles. Solid lines and dashed lines are controlled by the line style parameters of Adobe Illustrator and are no longer subdivided. On this basis, all linear symbols are divided into two basic types of basic linear segments and dotted lines. Dotted lines represent dotted graphic elements that appear repeatedly at certain intervals along the upper edge of linear symbols. After classifying all linear symbols, three symbol design methods are established: multi-style overlay, fixed-line multiple-cycle, and process adaptation.
3. The method for designing map linear symbols and automatically configuring plug-ins under AI according to claim 1 is characterized in that: Multi-style overlay and overlay: It can be used for symbols with simple structure after decomposition. The symbols are regular single-line or double-line symbols, which are expressed as linear symbols of traffic roads. The idea of multi-style superposition and overlapping is that the symbol is composed of multiple line segments, and the line segments are determined by the basic skeleton line as the skeleton line, and then different styles are generated to overlap each other; after the symbol is decomposed, it is composed of one or more line segments. After the railway symbol is decomposed, it is composed of two line segments, one is the lower black solid line segment with a width of m, and the other is the upper white dotted line segment with a width of n, n<m. When the two lines coincide, the white line segment is highlighted by superimposing the two lines, and the railway symbol is drawn.
4. The method for designing map linear symbols and automatically configuring plug-ins under AI according to claim 1 is characterized in that: Locating line repetition: The symbols included are all around the positioning line, with repeated dotted elements. Locating line repetition sets one or more applicable symbols in each type of symbol. Decompose the linear symbol into two parts, including the street tree symbol. The decomposed part consists of a line segment and recurring dot-shaped primitives. One is the basic skeleton line, which is hidden or styled. The recurring dot-shaped primitives, when used as a recurring template, include the effective blank part to form a regular circumscribed rectangle. To control the distance between two adjacent graphics elements, a third parameter is introduced, namely the distance L between the two graphics elements, L ≥ 0. When L is the symbol width, it is a special cyclic pattern. In the wavy line symbol of the wavy line symbol, L is the symbol width. At the same time, the skeleton line is not displayed and is represented by a gray dotted line.
5. The method for designing map linear symbols and automatically configuring plug-ins under AI according to claim 1 is characterized in that: Process Adaptation: 1- Gradient symbols: Use models to represent the distribution and positional relationship of rivers, distinguish between mainstream and tributaries, and control the width of the river on the map to create a sense of river change. Width changes are divided into uniform and non-uniform changes. Non-uniform changes adopt a rhythm of fast changes at the beginning and end and slow changes in the middle. By dividing the river into three unequal sections and keeping the gradient step length the same for each section, a gradient effect with slow changes in the middle and fast changes on both sides is achieved. 2- Jumping symbols: These are mainly used to represent various boundaries. When representing countries and domestic administrative divisions on a map, boundaries are drawn to distinguish their borders. The following rules should be followed when drawing them: Rule 1: When the boundary line does not overlap with other linear features, the integrity of the boundary line should be maintained and the entire line should be exported continuously; Rule 2: The boundary line should coincide with the skeleton line of other linear features. The boundary line should be drawn along the center line in a staggered manner to ensure that the symbol center line is consistent with the actual geographical location; There are two types of jump drawings: (1) Center jump drawing: Draw the symbol at the center of the linear feature, and ensure that the boundary line has symbols at the starting point and end point of the line segment; (2) Skip drawing on both sides: boundary symbols are drawn alternately along both sides of the linear feature, and symbols are not drawn at the starting and ending points of the line segment; When drawing boundary jumps, ensure that the symbols follow the drafting specifications, and at the same time, the symbols of each segment are exactly the same and there must be boundary symbols at the skeleton line nodes; When drawing on both sides, the symbol is drawn along the line jump feature of Adobe Illustrator software. The symbol is considered to be drawn along three mutually parallel skeleton lines. The symbol is drawn along the upper skeleton line and the lower skeleton line respectively. 3- Adaptive symbols: Bridges are classified into single-deck railway or highway bridges, dual-deck railway and highway bridges, and parallel railway and highway bridges. Bridges connecting the front and rear highway traffic overlay other symbols. (1) Single-track bridge: The bridge is divided into scale symbols and non-scale symbols according to the length of the bridge. It is shown on the map as connecting single-track roads. To keep the symbols beautiful, the width of the bridge symbol for the front and rear roads should be consistent with the width of the front and rear roads. When the widths of the front and rear roads are different, the wider road is selected as the standard. Combined with AI mapping software, the single-track bridge is divided into two parts: the bridge body and the bridge wing. The angle between the bridge wing and the bridge body is 45°. (2) Double-track bridge: After splitting, it consists of two parts: the bridge body and the bridge wings. The bridge body is formed by four line segments overlapping each other. The elytra and the bridge body follow a strict overlapping relationship. The connection with the road on the diagram is divided into two situations: the road width is consistent with the width of the inner bridge line segment, so as to highlight the bridge symbol; or the connecting road is a double line, and the double line intersects with the bridge wings to highlight the continuity of the road; 4-Combined symbols: This refers to symbols where each line in the symbol is different, including interchanges. Interchanges are spatial intersections of roads at different elevations. Interchanges are represented to scale, and according to projection principles, the lower layer covered by the upper layer is disconnected, while the upper layer remains intact. The direction of the knock in the symbol is consistent with the direction of the passage or street. Ramps are a key component of complex interchanges, connecting the upper and lower levels of the interchange. Ramps should match the color of the highway they connect. When a ramp connects highways of different grades, the color of the lower grade highway is used as the ramp representation color. First, the symbol data must be structured, and the main roads and ramps must be decomposed. At the same time, the main road numbers must be classified from high to low according to the road elevation. Based on the main road classification, the ramp connection status must be further classified, including the numbers of the two connected main roads, to correctly reflect the connectivity of the road.
6. The method for designing map linear symbols and automatically configuring plug-ins under AI according to claim 1 is characterized in that: Linear symbol configuration process: Symbol configuration is based on the unified format data obtained by the pre-processing module for automatic mapping. That is, based on the GIS data obtained by the data pre-processing module, with the support of the map symbol library and rule library, it realizes the automatic conversion of GIS data to Adobe Illustrator data, automatic annotation configuration, and intelligent operation of element symbolization; Under the constraints of the rule library, the original database is pre-processed, including data screening, projection transformation, and data classification and grading, to obtain a database for mapping. Then, the existing GIS secondary development interface is used to obtain GIS data from the mapping database, and through the data model converter, combined with the interface provided by Adobe Illustrator, it is converted into mapping data. With the support of the symbol library and rule library, the data is symbolized, and the intelligent configuration of symbols and annotations is completed. Finally, the places that do not conform to the mapping rules are modified and optimized to obtain a publishable map.
7. The method for designing map linear symbols and automatically configuring plug-ins under AI according to claim 1 is characterized in that: Line symbol drawing: 1- Parallel line symbol drawing: For the skeleton line formed by coordinate points 1 and 2, find the outer parallel line with a distance h between them, and similarly deduce the inner parallel line; (1) With the starting point 1 of the line segment as the origin, establish a Cartesian coordinate system. Let the length of Line (1, 2) be d. Find the coordinates of 1' to be (x1, y1 + h), and the coordinates of 2' to be (x1 + d, y1 + h); (2) Rotate Line (1', 2') counterclockwise by α degrees along coordinate point 1. In two-dimensional graphics, a transformation matrix is used to quickly calculate the coordinates of a point after rotation along a reference point. Where (x r ,y r ) is the rotation base point, θ is the angle to be rotated, counterclockwise is positive, (x', y') is the result after rotation, and Line (1', 2') can be easily obtained; (3) Similarly, Line (3', 4') is also obtained using the same method. Line (1', 2') and Line (3', 4') are intersected. At this point, the parallel line has been obtained. 2- Single-line gradient drawing: When drawing a single-line river gradient, two transformation methods are used, which are used according to the mapping effect and usage habits; (1) Determination of h value in single-line river drawing The river width changes follow the following requirements: ① The river changes smoothly from thick to thin along its flow direction; ② When the source of a river is shown on a map, the minimum line thickness is 0.08 mm, and the line thickness of non-source areas increases; ③The change in river thickness is consistent with the river length; ④ The line thickness of the tributary source cannot be greater than the line thickness of the mainstream at the intersection with the mainstream; ⑤ The speed of changes in the thickness of river lines should meet the requirements of scientific and aesthetics; (2) Gradual change The segmented gradient is along the skeleton line direction, and the nodes generate groups of parallel lines in sequence. The distance between two adjacent positioning line segments and the parallel lines becomes larger or smaller; (3) Continuous Gradient By improving the parallel line drawing algorithm and controlling the position of the parallel line endpoints, the fitting curve becomes a gradient line only when the distance between the two nodes is small enough. 3-Linear multiple-loop drawing: When configuring line-based multiple-loop, the skeleton line of the linear element is mn, the anchor point of the point element is a, and the distance between the anchor points is d. After selecting an anchor point on the line segment mn, place the point element at the anchor point with a distance d before and after it. The element's own coordinate system is xOy. A coordinate system x'Oy' is created for each anchor point along the line segment mn. The point element is translated and overlapped to the anchor point. Repeat the above process to complete the drawing of all point elements. (1) Determine the location of the point element: Divide the line segment into equal parts and obtain each segment node, or determine the location of each node at a distance L from the starting point. The formula is: P t =L+n*d (2) Point primitive rotation: In two-dimensional graphics, a transformation matrix is used to quickly calculate the coordinates of a point after rotation along a certain reference point: P.S t NR(θ)*P Where (x r ,y r ) is the rotation base point, θ is the angle to be rotated, counterclockwise is positive, and (x', y') is the result after rotation; 4- Adaptive bridge drawing: Data is given a special field to identify the bridge data in the road layer. Parallel bridges require additional fields to identify parallel lines. The width of the connecting roads before and after is considered according to the scale of single-deck bridges, double-deck bridges, and parallel bridges. Combined with GIS data attributes, the tail bridge wings (four short lines) are connected to the road when drawing the bridge, reducing the bridge width to make the drawn bridge beautiful and elegant. 5- Overpass drawing: First, define the format of the overpass data: (1) Mark the road sections with forks and sort them in the order of elevation, with the lowest level marked as 1 and the upper level as 2. (2) For the small ramps without forks connected to the above sections, mark them in order of elevation. The ramps connected to Section 1 are marked in order of elevation from low to high as 1-1, 1-2, etc.; Drawing method: ①i=1; ② Draw the black part of the road section numbered i, j = 1; ③ Draw the black part numbered ij; ④ Draw the white part numbered ij; ⑤ Check whether all ramps of the road section numbered i have been drawn. If not, j++ and return to step 3; ⑥ Draw the white part of the road section numbered i; ⑦ Check whether all road sections have been drawn. If not, i++ and return to step 2; 6-Interval transformation algorithm: There are two types of dotted line settings: (1) Change the dashed line width, but dotted line length: the first time the line width is M (mm), the solid line segment and dashed line segment are N1 (mm) and N2 (mm), then the solid line segment and dashed line segment setting values are N1 / M and N2 / M, the second time the line width is M', the solid line segment and dashed line segment lengths are not changed, the solid line segment and dashed line segment setting values are changed to N1 / M' and N2 / M'; (2) Dashed line symbol, consisting of two lines with the same dashed length: the width of the first line segment is M (mm), the solid line segment and the dashed line segment are L1 (mm) and L2 (mm), respectively, then the solid line segment and the dashed line segment setting values are L1 / M and L2 / M, the width of the second line segment is N, then the solid line segment and the dashed line segment setting values are L1 / N and L2 / N.
8. The method for designing map linear symbols and automatically configuring plug-ins under AI according to claim 1 is characterized in that: Symbol conflict handling: 1- Alignment and loop symbol configuration issues (1) The point element is located at the inflection point or is not drawn completely Solution: Each positioning point determines whether it is too close to the node. If it is smaller than the dot element, move it left or right to optimize the configuration. (2) Intersection of skeleton line and point primitives Solution: Before drawing the primitives, add an intersection check with each line segment. First, use the rectangle formed by the line segments and the rectangle of the point primitive to perform the intersection check. If the two rectangles intersect, then check the circumscribed rectangle of the line segments and the point primitive. If an overlapping problem occurs, move the point primitive positioning point left or right and restart the judgment to avoid new conflicts caused by the shift. If the shift cannot solve the problem, place a special mark and let the cartographer decide on the solution. (3) Dashed line reinforcement problem Solution: Determine each node separately. When the above problem occurs, the loop unit moves along the skeleton line as a whole to ensure that all dotted spaces are staggered. 2-Same type symbol conflict Solution: When drawing roads, separate them into upper and lower layers. Single-line roads are grouped as the lower layer of two-line roads. Add a Merge Roads option to the mapping rules and check the layer where the road overlap occurs. When drawing, give priority to drawing the lower layer of the included layer, then draw the upper layer lines. By controlling the order of symbol drawing, the symbol conflict problem can be resolved. 3- Different types of symbol conflicts Solution: Establish symbol weight values. Symbol weight values indicate the importance of symbols on the map. The larger the weight value, the more important the symbol is. It should be fully represented on the map. When drawing symbols with lower weight values, symbols with higher weight values should be avoided. Due to different map types and different expressions, the same symbol has different weight values in different maps. When drawing symbols, symbols with higher weight values should be located on the upper layer of the layer, with an overlay effect, and symbols with higher weight values should be displayed completely.
9. The method for designing map linear symbols and automatically configuring plug-ins under AI according to claim 1 is characterized in that: Linear symbol configuration plug-in architecture: including map data reading module, map symbol management module, map rule management module, map symbol configuration module and system configuration module; (1) Map data reading module: reads and filters data from multiple data sources, pre-processes the data, and finally converts the data and stores it in the cartographic database; (2) Map symbol management module: It includes two parts: symbol library and symbol library management. The symbol library is a linear symbol stored in three drawing methods, by storing description information in the database; cartographic database management includes adding, modifying, deleting and querying symbols; (3) Map rule management module: It includes two parts: map making rule base and rule base management. The rule base uses an external database to organize the map making rule base. The rule base management module is responsible for the storage and call management of the map making rules. (4) Map symbol configuration module: realizes mapping of cartographic data under the support of map symbol library and the constraints of map rule library, and realizes rapid symbolization and symbol conflict processing of GIS data in Adobe illustrator; (5) System configuration module: configures the normal operation environment of the plug-in, including license installation, scale setting, and correct configuration of the initial symbol library and rule library.
10. The method for designing map linear symbols and automatically configuring plug-ins under AI according to claim 1, characterized in that: GIS feature and cartographic feature conversion: The smallest unit of any graphic object is the Art object. All cartographic features contained in the Art object exist in the Art object's dictionary, including feature type, priority, length, and rule information. All spatial information and attribute information in the GIS data needs to be converted to the Art object. 1- Spatial Information Conversion: Point features are represented as two-dimensional points with coordinates, and are represented as graphic features with symbols in Adobe Illustrator. Line features have only length and no width attributes, and are represented by a series of coordinate pairs. Adobe Illustrator also represents them as a series of coordinate pairs, with different linear features distinguished by width and style. Area features contain length and area, and are represented by a closed state composed of one or more series of coordinate pairs. Adobe Illustrator simply represents closed line objects with fills. 2- Attribute information conversion: By extending the Art object properties of Adobe illustrator and adding Dictionary entries, the obtained geographic object properties are mounted on the Art object. When attribute information is needed, the original information can be found through the Art object, which facilitates data conversion.