A method and device for processing line feature geographic information data
By determining the coordinates of nodes and new nodes and merging cartographic expression data, the coexistence of straight lines, curves and arcs is realized, which solves the problem of complexity in generating and editing line feature data, improves processing efficiency, and supports the creation of complex linear features. Flexible drawing and editing.
Patent Information
- Application Number
- CN202410642785.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-05-23
AI Technical Summary
In the existing technology, the data generation and editing process of line feature elements is complex, the processing efficiency is low, and it is difficult to flexibly draw and express complex line feature features, such as rivers, ditches, roads, etc.
By determining the coordinates of nodes and new nodes, it generates cartographic expression data, merges line units, realizes the coexistence of straight lines, curves and arcs, supports the addition, deletion and rollback of nodes, and uses the mouse and keyboard combination to achieve flexible drawing and editing.
It improves the operational efficiency of line object drawing, supports the expression and editing of complex linear objects, and realizes the unified display of straight lines, curves and arcs to meet various drawing needs.
Smart Images

Figure CN118247381B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of computer graphics processing and geographic information database, and in particular to a method and device for processing line feature geographic information data. Background Art
[0002] According to the national general standards GB / T20257.1-2017 and GB / T20258.1-2019 for the surveying and mapping and geographic information industry, geographic information element symbols are divided into scale-based symbols, semi-scale-based symbols and non-scale-based symbols, and the geometric types used to express the symbols of features can be roughly corresponded to surface features (based on scale), line features (semi-scaled) and point features (non-scaled). From the perspective of drawing methods, surface features can also be regarded as closed areas formed by the drawing of line features. Therefore, the drawing of line features accounts for a very large part of the work. In the early days, traditional surveying and mapping used paper maps, which were drawn by surveyors with pens. The symbol styles used to distinguish different features on the map were also drawn manually. This work is a very complex and time-consuming work with a certain artistic expression. With the development of computers and science and technology, surveying and mapping technology has been continuously updated. Traditional paper surveying and mapping has gradually been replaced by computer mapping. Then how to use computers to use mice and keyboards to draw and automatically display symbols as flexibly as using pens and rulers has become an urgent need.
[0003] When drawing line features, even when using computer tools, it is done one node at a time with the mouse. Although some snapping items can be enabled through the editing tools to draw line features, the shape of a line is either a straight line, a curve, or an arc. And if a drawn line needs to be edited again, it can only be deleted and redrawn.
[0004] A simple curve is not enough to express a complete line feature. For example, line features exist in a complex network state to express linear features such as rivers, ditches, roads, fences, and networks of linear features. For another example, a feature composed of line primitives and surface primitives uses a curve graphic as the outline of the feature. In the data structure of the feature element, how to combine the data structure of the linear feature to express it; and the positional relationship between the line feature and other feature elements, such as overlap and intersection, requires data expression and display of the relevant association relationship in the feature elements. Summary of the invention
[0005] The embodiments of the present application provide a method and device for processing line feature geographic information data, which solve the problems of complex generation and editing process and low processing efficiency of line feature element data and graphics in the prior art.
[0006] In a first aspect, an embodiment of the present application provides a method for processing line feature geographic information data, comprising the steps of:
[0007] In response to a first instruction, at least two nodes are determined; the first instruction includes first graphic expression data of node coordinates and lines between the nodes;
[0008] Connecting two nodes to form a first line unit according to first graphic expression data of a line between the nodes;
[0009] In response to a second instruction, one or more new nodes are determined on the first line unit and / or outside the first line unit; the second instruction includes new node coordinates and second graphics expression data;
[0010] Generate a second line unit indicated by second cartographic expression data; the second cartographic expression data includes information indicating the positional relationship between the first line unit and the second line unit;
[0011] The first geographical feature element data represented by the first line unit and the second geographical feature element data represented by the second line unit are combined to generate third geographical feature element data;
[0012] The third land feature element data belongs to the same land feature, forming a complete land feature element cluster;
[0013] Each node and new node has independent properties; these properties include line style and width.
[0014] In one embodiment, the method further comprises the steps of:
[0015] generating one or more operating points on the line unit in response to the GUI command;
[0016] Generating operation point position data and line type attributes between the operation points in the ground feature data;
[0017] When displaying the graphics of the ground feature elements, the primitive features between the operation points are displayed according to the line type attributes.
[0018] In one of the embodiments, the graphical representation data of the connection lines between the nodes includes line shape indication information.
[0019] In one embodiment, line units formed by multiple pairs of nodes are connected end to end to form a skeleton line, a line feature or a feature outline.
[0020] In one embodiment, the method further comprises the steps of:
[0021] Determine new nodes outside the first line of cells;
[0022] In response to the indication information of the positional relationship, the new node is connected to an end node of the first line unit to determine the second line unit.
[0023] In one embodiment, the method further comprises the steps of:
[0024] Determining a new node on the first line element;
[0025] Erase the line segment from one end to the new node;
[0026] The second geographical feature element data represented by the second line unit is deleted from the first geographical feature element data represented by the first line unit, and the third geographical feature element data is generated.
[0027] In one embodiment, the method further comprises the steps of:
[0028] determining a first new node outside the first line element;
[0029] In response to the indication information of the position relationship,
[0030] Determine the second new node on the line element, draw a line from the first new node to the second new node, or draw a perpendicular line from the first new node to the line element or the extension line of the line element.
[0031] In one embodiment, the method further comprises the steps of:
[0032] Two new nodes are identified on the first line element;
[0033] In response to the indication information of the positional relationship, the first line unit is rotated and copied with the middle point of the two new nodes as the center of the circle to generate the second line unit.
[0034] In one embodiment, the method further comprises the steps of:
[0035] Two new nodes are identified on the first line element;
[0036] In response to the indication information of the positional relationship, a second line unit drawn parallel to the first line unit is generated between the two new node perpendicular lines.
[0037] In a second aspect, the present application also provides a line feature geographic information data processing device for implementing the line feature geographic information data processing method described in any one of the embodiments of the first aspect, comprising: a determination module for determining the coordinates of the node and the new node, and also for determining the cartographic expression data. A merging module for merging the first feature element data represented by the first line unit and the second feature element data represented by the second line unit to generate the third feature element data. A display module for displaying the feature element data.
[0038] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any embodiment of the first aspect.
[0039] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method described in any embodiment of the first aspect is implemented.
[0040] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:
[0041] The present application discloses a method and device for processing geographic information data of line features, which mainly focuses on the drawing, expression and display methods of line features (semi-scale symbols) from the perspective of surveying and mapping geographic information mapping, and makes full use of the combination of mouse and keyboard to make the drawing of lines flexible and free. From the display of symbols, it is perfectly embodied in accordance with GB / T20257.1-2017 and GB / T20258.1-2019, that is, the symbol display of each type of line feature is realized by computer.
[0042] The present invention solves the problem that when drawing a line, the mouse can be combined with multiple keyboard keys and parameter items to operate simultaneously, which greatly improves the operating efficiency. At the same time, it realizes the coexistence of straight lines, curves and arcs on one line feature graphic, and supports re-editing of the line element graphics that have been drawn, such as adding nodes, picking up and then continuing to draw, and realizes automatic drawing by tracking its node information when drawing along a complex node element, and realizes real-time rollback operation when drawing is wrong or you want to cancel the drawing without terminating the drawing, and displays the drawing effect in real time. Through the present invention, the drawing of line elements can be done at will to meet various needs. Further, the application discloses the realization of drawing line elements with multiple shortcut key combinations, the realization of automatic drawing of line elements according to the trajectory of mouse movement, the realization of drawing line elements whose linear features such as straight lines, curves and arcs are stored together in the line entity of the same feature element, the realization of drawing line elements with multiple parameter settings, and the realization of re-editing the data cluster of the already drawn line elements. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0044] Figure 1 This is a flow chart of a method for processing line feature geographic information data according to an embodiment of the present application;
[0045] Figure 2 This is a schematic diagram of node attribute settings in an embodiment of the present application;
[0046] Figure 3 This is another flow chart of a method for processing line feature geographic information data according to an embodiment of the present application;
[0047] Figure 4 Apply for drawing a schematic diagram of newly added nodes for this embodiment;
[0048] Figure 5 This is a flow chart of the third method for processing line feature geographic information data in the embodiment of the present application;
[0049] Figure 6 A schematic diagram of a fallback line drawing for an embodiment of the present application;
[0050] Figure 7 This is a flow chart of the fourth method for processing line feature geographic information data in the embodiment of the present application;
[0051] Figure 8-1 This is a schematic diagram of an online node capture drawing line according to an embodiment of the present application;
[0052] Figure 8-2 This is another schematic diagram of online node capture and drawing line in an embodiment of the present application;
[0053] Fig. 9 This is a flow chart of the fifth method for processing line feature geographic information data in the embodiment of the present application;
[0054] Fig.10 This is a schematic diagram of drawing lines by closing three points into a rectangle in the embodiment of the present application;
[0055] Fig.11 This is a flow chart of the sixth method for processing line feature geographic information data in the embodiment of the present application;
[0056] Fig.12 This is a schematic diagram of the effect of the operation point configuration of the embodiment of the present application;
[0057] Fig.13 This is a structural diagram of a line feature geographic information data processing device according to an embodiment of the present application;
[0058] Fig.14 Schematic diagram of the commercial server system for the application scenario of this application. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0060] It should be noted that the geographic information elements (National Basic Scale Map Schema GB / T 20257.1-2017) of this application are abstractions of real geographical topographic features, and are neither geographic surveying and mapping data itself nor images of original terrain. For example, an element can appear as a type (such as a lake, a building) or an entity (such as Dongting Lake, a building). In a geographic information database, it is a symbolic data representation of a specific geographic feature. An element attribute contains a name, a data type, and a value range associated with it. Elements are divided into point elements, surface elements, line elements, and composite elements according to their geometric features, and are assigned graphic codes respectively.
[0061] The line feature geographic information element involved in this application is a composite element containing multiple line features. It should be noted that the solution of this application is not to process the original geographic image information to identify the line feature geographic information features and generate line feature geographic information elements, but to create, edit, copy, store and use the symbolic data of line feature geographic information elements. By defining new nodes in the line features and then using the location and primitive type association features to form a data cluster of the line features, it is an optimization of the data structure of the geographic information database.
[0062] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0063] Figure 1 This is a flow chart of a method for processing line feature geographic information data according to an embodiment of the present application, which specifically includes steps 110 to 140.
[0064] Step 110, in response to a first instruction, determining at least two nodes; the first instruction includes first graphic expression data of node coordinates and lines between the nodes;
[0065] The node is a connection point between multiple segments of a line feature.
[0066] Furthermore, the present application may also include an operation point, which is obtained by configuring a point on a line feature. The operation point may be a node or other point.
[0067] Step 120, connecting two nodes according to the first graphic expression data of the line between the nodes to form a first line unit;
[0068] The positions of the two nodes in the topographic map are determined by the left sides of the two nodes included in the first instruction, and then the two nodes are connected to determine the first line unit.
[0069] In one embodiment, the graphic expression data of the connection between the nodes includes indication information of the line shape, and the line shape includes at least a straight line, a curve or an arc.
[0070] The type of the connection is determined according to the drawing expression data of the connection. For example, if the drawing expression of the connection is a curve, then the connection between the two nodes is a curve.
[0071] It should be noted that the cartographic expression data corresponding to different lines also include the line type attributes corresponding to the line of this type.
[0072] For example, the line type attributes of a straight line may include a solid line, a dashed line, the thickness of the straight line, the spacing between dashed line segments, and the like.
[0073] For another example, the line type attributes of a curve or arc may include curvature, curvature direction, radius, and the like.
[0074] The graphic expression data of the line between two nodes can be modified through the specific attributes of the first instruction, which is not further limited here.
[0075] In one embodiment, line units formed by multiple pairs of nodes are connected end to end to form a skeleton line, a line feature or a feature outline (ie, a first line unit).
[0076] Two nodes can determine the first line unit, but a line feature or a skeleton line can be composed of multiple line units connected end to end.
[0077] It should be noted that the line units connected end to end are regarded as the same line feature, while the line units not connected end to end may be the same line feature or different line features.
[0078] Step 130: In response to a second instruction, determine one or more new nodes on the first line unit and / or outside the first line unit; the second instruction includes coordinates of the new nodes and second graphical expression data of the new nodes;
[0079] According to the coordinates of the new node provided by the second instruction, it is determined whether the new node is on the line unit or outside the line unit, and according to the second drawing expression data of the new node, the drawing method between the new node and the line unit is determined.
[0080] Step 140: Generate a second line unit indicated by second cartographic expression data; the second cartographic expression data includes indication information of the positional relationship between the first line unit and the second line unit.
[0081] The first geographical feature element data represented by the first line unit and the second geographical feature element data represented by the second line unit are combined to generate third geographical feature element data;
[0082] The line feature drawn according to the first instruction and the line feature drawn according to the second instruction are stored as the same feature.
[0083] The third land feature element data belongs to the same land feature and is no longer divided into sub-elements, forming a complete element data cluster; that is, the expression data of all line elements constituting the third land feature element data uses a unified land feature element code.
[0084] The drawn line feature is picked up through the second instruction to continue drawing the line feature.
[0085] For example, you can use the shortcut keys F to pick and Z to switch the start and end points to redraw the existing line from the start or end point. The newly drawn line feature is stored as the same feature as the original line feature.
[0086] Each node (and new nodes) has independent properties; said properties include line style and width.
[0087] Nodes on line features contain independent attributes, at least line attributes.
[0088] The line shape attribute is an attribute that defines the shape of a line, for example, a straight line, a curve, or a polyline.
[0089] The linear attributes of the nodes can be used to drive the graphics generation code, extract the linear attributes of two or more adjacent nodes, and automatically generate at least a portion of the graphics of the linear features.
[0090] For example, two nodes form a line, and the linear attributes of the two nodes are both straight line ends, then the line between the two nodes is determined to be a straight line. A straight line graph is generated between the two nodes, for example, linear interpolation is performed based on the position attribute values of the two nodes to determine the display position of any point on the straight line graph.
[0091] For another example, if the linear attribute of any node is the middle of a curve, then the line between the node and its adjacent nodes is a curve, which can be a fitted arbitrary curve. A number of nodes are connected to each other to generate a graph of an arbitrary curve, for example, polynomial interpolation is performed based on the position attribute values of multiple nodes (as an example, this application does not limit the specific interpolation algorithm) to determine the display position of any point on the curve graph.
[0092] For another example, if the linear attributes of two nodes are arc ends and the linear attribute of the third node is the arc midpoint, then an arc can be determined by three nodes. The three nodes are connected to generate an arc, such as a circular arc, an elliptical arc, etc., and the shape-limited interpolation is performed according to the position attribute value of the node to determine the display position of any point on the arc.
[0093] The independent attributes of a node may also include width. The width indicates the width of the line feature at the node. The width attribute of a node may be default, automatically set, or manually set.
[0094] By adjusting the width attribute on the node, the width of the line feature in the display can be adjusted.
[0095] For example, if two adjacent nodes forming a line have different width attributes, the width of the line between the two nodes will be displayed as a gradient.
[0096] like Figure 2 As shown in the figure, a double-line river composed of two line elements is the main river 21 with a single-line river as a tributary 22. The width of the tributary is not suitable for surface elements, but is represented by a line graphic composed of multiple nodes connected in sequence. However, only displaying ordinary line elements is not enough to express the change in the width of the tributary. Therefore, the width attribute of the tributary gradually decreases from the confluence of the main river to the upstream node, so as to achieve the gradual thinning of the tributary in the element display. In the figure, the nodes of the tributary 22 are represented as boxes distributed along the line.
[0097] The nodes on the primitives that constitute the features can be identified in the GUI. The basic information of each node generally includes three attribute information: X coordinate, Y coordinate, and elevation, and an additional attribute information, namely the "feature point" attribute. If "feature point" is "yes", then this node is a feature point; if "feature point" is "no", then this node is not a feature point.
[0098] For example, the "feature point" attribute of a node of a line feature is manually set to "yes", and this node is used to distinguish different line features.
[0099] It should be noted that when the line feature data of the geographic information database does not have feature points, the feature points can be determined and the feature point attributes can be established in response to the operation of the human-machine interface, namely the GUI.
[0100] It should also be noted that when the line feature data has feature points and the operator does not know which node is the feature point, the computer can identify the operator's attention based on the node attribute value, so in response to the operation of the human-computer interface, the computer gives an indication of the feature point.
[0101] The feature point can also be used to identify the data cluster of the entire line feature element. When the position of the feature point is changed in response to the GUI instruction, the position of the entire line feature graphic in the GUI can be changed, or the geographical location of the entire line feature element can be changed. In response to the GUI instruction, the change amount of the attribute value of all related positions in the data cluster is the same as the change amount of the position of the feature point.
[0102] Figure 3 This is another flow chart of a method for processing line feature geographic information data according to an embodiment of the present application, which specifically includes steps: 110~120, 130-1, and 140-1.
[0103] Step 110, in response to a first instruction, determining at least two nodes; the first instruction includes first graphic expression data of node coordinates and lines between the nodes;
[0104] Step 120, connecting two nodes according to the first graphic expression data of the line between the nodes to form a first line unit;
[0105] In one embodiment, step 130 specifically includes the steps of:
[0106] Step 130-1, determining a new node outside the first line unit;
[0107] In response to a second instruction, determining a new node outside the first line unit;
[0108] The second instruction includes the coordinates of the new node and the second graphics expression data.
[0109] Step 140 specifically includes the following steps:
[0110] Step 140 - 1 : In response to the indication information of the position relationship, a new node is connected to an end node of a first line unit to determine a second line unit.
[0111] It should also be noted that the nodes described in this application can be added or deleted through instruction selection.
[0112] For example, you can add a node to the line by placing the mouse at a specified location and pressing the shortcut key E. If you place the mouse on a specified node and press the shortcut key W, you can delete the node.
[0113] like Figure 4 As shown, by adding a new node outside the first line unit as a node, and using one end node of the first line unit as one end node of the second line unit, and using the new node as the other end node to draw the second line unit, and so on, various lines are used to express complete line features, skeleton lines or feature contours.
[0114] For example, a broken line 41, a curved line 42, an arc line 43, etc. can be formed by combining line elements.
[0115] For example, two nodes are connected to form a line, and the linear attributes of the two nodes are both straight line ends, then the line between the two nodes is determined to be a straight line. A plurality of straight lines are combined to form the polyline 41 .
[0116] For another example, if the linear attribute of any node is the middle of a curve, then the line between the node and its adjacent node is a curve, and the curve may be a fitted arbitrary curve 42 .
[0117] For another example, if the linear attributes of two nodes are arc ends, and the linear attribute of the third node is arc middle, then an arc 43 can be determined by the three nodes.
[0118] For another example, in the data cluster graphic display, the line feature formed by the line units is a solid line when not selected, and a dotted line when selected, and all nodes can be seen.
[0119] When drawing irregular line features, you can also use the mouse to draw. For example, after drawing the first point with the mouse, press the shortcut key A to automatically draw the line according to the mouse movement.
[0120] That is, by pressing the A key, the second instruction is continuously given, a number of line units are drawn, and the line is automatically drawn.
[0121] Figure 5 This is a flow chart of the third method for processing line feature geographic information data according to an embodiment of the present application, which specifically includes steps: 110~120, 130-2, and 140-2.
[0122] Step 110, in response to a first instruction, determining at least two nodes; the first instruction includes first graphic expression data of node coordinates and lines between the nodes;
[0123] Step 120, connecting two nodes according to the first graphic expression data of the line between the nodes to form a first line unit;
[0124] In one embodiment, step 130 specifically includes the steps of:
[0125] Step 130-2, determining a new node on the first line unit;
[0126] In response to a second instruction, a new node is determined on the line unit; the second instruction includes coordinates of the new node and graphical expression data of the new node.
[0127] Step 140 specifically includes the following steps:
[0128] Step 140 - 2 : Delete the second geographical feature element data represented by the second line unit from the first geographical feature element data represented by the first line unit, and generate the third geographical feature element data.
[0129] Shown as erasing the first line element from one end to the new node.
[0130] like Figure 6 As shown, a new node is set on the first line unit 11, which is the fallback point 61. According to the drawing expression data of the fallback point, one end of the first line unit is selected as the target. For example, the original first line unit is drawn from one end to the other end, so the head end and the tail end are distinguished. According to whether the drawing expression data contains the head end or the tail end, the first line unit is erased from the head end or the tail end to the fallback point. Subsequently, the second line unit 12 is drawn from the fallback point to continue the first line unit.
[0131] For example, on the computer side, the shortcut key X: back one point, delete one point from the end of the current point column; Shift+X: back multiple points, delete multiple points from the end of the current point column to the point pointed by the cursor (that is, the new node given by the second command); Ctrl+T: clear and delete all points in the current point column.
[0132] Figure 7 This is a flow chart of the fourth method for processing line feature geographic information data according to an embodiment of the present application, which specifically includes steps: 110~120, 130-1, and 140-3.
[0133] Step 110, in response to a first instruction, determining at least two nodes; the first instruction includes first graphic expression data of node coordinates and lines between the nodes;
[0134] Step 120, connecting two nodes according to the first graphic expression data of the line between the nodes to form a first line unit;
[0135] In one embodiment, step 130 specifically includes the steps of:
[0136] Step 130-1, determining a first new node outside the first line unit;
[0137] In response to the second instruction, determining a first new node outside the line unit;
[0138] The second instruction includes the coordinates of the new node and the graphics expression data of the new node.
[0139] Step 140 specifically includes the following steps:
[0140] Step 140-3: In response to the indication information of the positional relationship, determine a second new node on the line unit, draw a line from the first new node to the second new node, or draw a perpendicular line from the first new node to the line unit or the extension line of the line unit.
[0141] For example, Figure 8-1 As shown, the second instruction only includes capturing the first line unit, determining the second new node on the first line unit, capturing the second new node, and connecting the first new node 81 and the second new node 82 to form a line 83 .
[0142] For example, Figure 8-2 As shown, a second new node 84 is determined on the first line element 11, an auxiliary point 85 of the first new node is taken from the first new node parallel to the line element at a position directly opposite to the second new node, and a perpendicular line 86 is made from the auxiliary point to the second new node.
[0143] For another example, a first new node is set outside the line, a second new node is defined on the line, or the second new node is automatically captured on the line.
[0144] For example, the second instruction includes capturing the line unit with a perpendicular foot, and drawing a perpendicular line from the first new node to the direction of the line unit, and the foot of the perpendicular line is the second new node that is automatically captured.
[0145] Furthermore, since the length of the line unit is limited, the perpendicular line drawn from the first new node to the line unit may fall on the first line unit or an extension line of the first line unit.
[0146] Fig. 9 This is a flow chart of the fifth method for processing line feature geographic information data according to an embodiment of the present application, which specifically includes steps: 110~120, 130-3, and 140-4.
[0147] Step 110, in response to a first instruction, determining at least two nodes; the first instruction includes first graphic expression data of node coordinates and lines between the nodes;
[0148] Step 120, connecting two nodes according to the first graphic expression data of the line between the nodes to form a first line unit;
[0149] For example, in one embodiment, step 130 specifically includes the steps of:
[0150] Step 130-3, determining two new nodes on the first line unit;
[0151] In response to the second instruction, determining at least two new nodes on the skeleton line, the line feature or the feature outline;
[0152] The second instruction includes the coordinates of the new node and the graphics expression data of the new node.
[0153] Step 140 specifically includes the following steps:
[0154] Step 140 - 4 : In response to the indication information of the positional relationship, the first line unit is rotated and copied with the middle point of the two new nodes as the center of the circle to generate a second line unit.
[0155] Determine a line connecting adjacent new nodes as the central axis, and flip and copy the surface composed of the new nodes along the central axis to form a shape that is symmetrical along the central axis.
[0156] For example, Fig.10 As shown, three new nodes are closed to form a triangle. With the midpoint of the hypotenuse 101 of the triangle as the center of the circle, the first line unit is rotated and copied to generate two right-angled sides 102 and 103, and then a second line unit is generated. For example, the copied triangle is rotated 180° and combined with the original triangle to form a rectangle. The second line unit includes two copied right-angled sides 102' and 103'.
[0157] For another example, two new nodes can determine a sector-shaped surface or a semicircular surface. Using the straight line connecting the two new nodes as the axis, the sector-shaped surface or the semicircular surface can be flipped and copied into a circle or an ellipse.
[0158] For another example, in another embodiment, step 130 may further include the steps of:
[0159] Two new nodes are identified on the first line element;
[0160] In response to the second instruction, two new nodes are determined on the skeleton line, the line feature or the feature outline;
[0161] Two new nodes are determined on the skeleton line, the line feature or the feature outline, and a line between the two new nodes is further determined.
[0162] In response to the indication information of the positional relationship, a second line unit drawn parallel to the first line unit is generated between the two new node perpendicular lines.
[0163] By generating the second line unit from the first line unit, it is ensured that the second line unit has the same shape as the first line unit.
[0164] By further adding cartographic expression data to the second line unit, the second line unit can be used as a center line to form a surface primitive, and other primitives can also be formed between the second line unit and the first line unit, which is not further limited here.
[0165] For example, the set feature is drawn along the first line unit between the perpendicular lines of the two new nodes.
[0166] For example, there is a green belt on the side of a road. To display the green belt on a topographic map, it is necessary to determine the coordinates of the head and tail ends of the green belt through the data cluster of the green belt, so as to determine the positional relationship between the green belt and the road, and thus determine two points on the road, namely the head and tail ends where the road is adjacent to the green belt.
[0167] Draw a green belt along the second line element between the two new nodes.
[0168] It should be noted that drawing the set features also requires the features' cartographic expression data, for example, the width of a green belt. When tracing the line drawing operation, the width of the green belt automatically generated along the line between two new nodes is displayed according to the green belt's cartographic expression data.
[0169] Fig.11 This is a flow chart of the sixth method for processing line feature geographic information data according to an embodiment of the present application, which specifically includes steps: 110~140, 210~220.
[0170] Step 110, in response to a first instruction, determining at least two nodes; the first instruction includes first graphic expression data of node coordinates and lines between the nodes;
[0171] Step 120, connecting two nodes according to the first graphic expression data of the line between the nodes to form a first line unit;
[0172] Step 130: In response to a second instruction, determine one or more new nodes on the first line unit and / or outside the first line unit; the second instruction includes coordinates of the new nodes and second graphical expression data of the new nodes;
[0173] Step 140: Generate a second line unit indicated by second cartographic expression data; the second cartographic expression data includes indication information of the positional relationship between the first line unit and the second line unit.
[0174] In one embodiment, the method further comprises the steps of:
[0175] Step 210, generating one or more operating points on the line unit in response to the GUI instruction;
[0176] Step 220, generating operation point position data and line attributes between the operation points in the ground feature element data;
[0177] When displaying the graphics of the ground feature elements, the primitive features between the operation points are displayed according to the line type attributes.
[0178] The graphic element features between the operation points are displayed with different features; the graphic element features at least include line type attributes.
[0179] The line type attribute is an attribute that defines the display type of a line, such as a solid line, a dashed line, or a hollow line.
[0180] For example, the setting of operation points in the case of multiple object coverage, automatic identification during display, and automatic generation of operation points.
[0181] The operation point can be set manually, or the system can identify the coverage of the object and automatically determine the position coordinates of the operation point on the covered linear object.
[0182] When drawing a graphic data cluster, even if the objects covered by the line objects are not drawn, the primitive features between the determined operation points still change.
[0183] like Fig.12 As shown, there is a section of viaduct 122 passing above the ground road 121. On the map plane, the contour lines of the ground road and the viaduct are described as line feature data and displayed as solid lines. The viaduct covers a part of the road surface of the ground road. The place where the viaduct overlaps with the ground road is set as the operation point 123 (point 2 and point 3 in the figure), or the overlap between the viaduct and the road surface is automatically set as the operation point after the system recognizes it. The line between the operation points has different graphic features from the contour lines of other positions of the ground road, such as Fig.12 The settings are shown as dashed lines.
[0184] Line feature geographic information data can contain both nodes with independent attributes and operation points. For example, the width of a river is gradually changing, and part of it is covered by other features or the ground to become a dark river, and the dark river part is represented by a dotted line. In this case, in addition to the nodes that can control the width attribute, the river also contains operation points that represent the intersection of the river and the features or ground covering the river.
[0185] Fig.13 The present invention is a structural diagram of a line feature geographic information data processing device according to an embodiment of the present invention. The present invention also provides a line feature geographic information data processing device, which is used to implement the line feature geographic information data processing method according to any one of the embodiments of the first aspect, comprising:
[0186] A determination module 131, used to determine the coordinates of the nodes and the new nodes, and also used to determine the cartographic expression data;
[0187] The merging module 132 is used to merge the first geographical feature element data represented by the first line unit and the second geographical feature element data represented by the second line unit to generate third geographical feature element data.
[0188] The display module 133 is used to display the ground feature data.
[0189] Furthermore, it also includes an acquisition module 134, which is used to generate a first instruction and a second instruction.
[0190] In one of the embodiments, the determination module further comprises a line primitive determination unit for determining the type of the graphical representation data of the lines between the nodes.
[0191] In one of the embodiments, the determination module further comprises a line primitive connection unit, which is used to form a skeleton line, a line feature or a feature outline by connecting line elements formed by multiple pairs of nodes end to end.
[0192] In one embodiment, the determination module further includes a line element connection unit, which is used to determine a second line unit by determining a new node outside the first line unit and connecting the new node as a node to one end node of the first line unit.
[0193] In one of the embodiments, the determination module further comprises a line primitive erasing unit, which is used to determine a new node on the first line unit; and erase the skeleton line, line feature or feature outline from one end to the new node.
[0194] In one embodiment, the determination module further includes a line perpendicular capture unit, which is used to determine a first new node outside the first line unit, determine a second new node on the line unit, draw a line from the first new node to the second new node, or draw a perpendicular line from the first new node to the line unit or the extension line of the line unit.
[0195] In one of the embodiments, the determination module further includes a rotation unit, which is used to determine two new nodes on the first line unit; and rotate and copy the first line unit to generate a second line unit with the middle point of the two new nodes as the center of the circle.
[0196] In one of the embodiments, the determination module further includes a following unit, which is used to determine two new nodes on the first line unit and generate a second line unit drawn parallel to the first line unit between the two new node perpendicular lines.
[0197] In one of the embodiments, a geographic information database / result map database 135 is also included, and the geographic information database / result map database is used to store the ground object data before and after the merger in the target area.
[0198] It should be understood that the above-mentioned specific related contents are only used for illustrative purposes and should not impose any limitation on the present application.
[0199] The specific method for implementing the functions of the above-mentioned modules is as described in the various method embodiments of the first aspect of the present application, and will not be repeated here.
[0200] Fig.14 Schematic diagram of the commercial server system for the application scenario of this application.
[0201] An embodiment of the present application also proposes a geographic information data processing system for implementing the method described in any embodiment of the present application, including: an original geographic information database 141, a data processor 142, a GUI operation interface 143, an application terminal 144, and at least one result map data set 145.
[0202] The original geographic information database is used to store geographic information entity data.
[0203] The GUI operation interface and / or application terminal are used to input setting conditions. Trigger the acquisition module, determination module, merging module or display module. It is also used to access the achievement data set and acquire data according to the set application scope (spatial scope and attribute scope). The data processor responds to the instructions of the GUI to determine at least two nodes; connects the two nodes according to the first cartographic expression data of the line between the nodes to form a first line unit; responds to the GUI instructions, determines one or more new nodes on the first line unit and / or outside the first line unit; generates a second line unit indicated by the second cartographic expression data; the second cartographic expression data contains indication information of the positional relationship between the first line unit and the second line unit. In response to the instructions of the GUI, the first geographical feature element data represented by the first line unit and the second geographical feature element data represented by the second line unit are merged to generate third geographical feature element data; the third geographical feature element data belongs to the same geographical feature to form a complete geographical feature element cluster; each node and new node has independent attributes; the attributes include line shape and width.
[0204] The achievement map dataset is used to store geographic information related data.
[0205] It should be understood that the above-mentioned specific related contents are only used for illustrative purposes and should not impose any limitation on the present application.
[0206] The specific method for implementing the functions of the above-mentioned modules is as described in the various method embodiments of the first aspect of the present application, and will not be repeated here.
[0207] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0208] Therefore, the present application also proposes a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method described in any embodiment of the present application is implemented.
[0209] Furthermore, the present application also proposes an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in any embodiment of the present application when executing the computer program.
[0210] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0211] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0212] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0213] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. The memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0214] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0215] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for processing line feature geographic information data, wherein the cartographic expression data of the connection between nodes includes linear indication information, characterized in that: Contains steps: In response to a first instruction, at least two nodes are determined; the first instruction includes first graphic expression data of node coordinates and lines between the nodes; Connecting two nodes to form a first line unit according to first graphic expression data of a line between the nodes; In response to a second instruction, one or more new nodes are determined on the first line unit and / or outside the first line unit; the second instruction includes new node coordinates and second graphics expression data; Generate a second line unit indicated by second cartographic expression data; the second cartographic expression data includes information indicating the positional relationship between the first line unit and the second line unit; The first geographical feature element data represented by the first line unit and the second geographical feature element data represented by the second line unit are combined to generate third geographical feature element data; The third feature element data belongs to the same line feature, forming a complete feature element cluster; Each node and new node has independent attributes; the attributes include width, which indicates the width of the line feature at the node. If the width attributes of two adjacent nodes are different, the width of the line between the two nodes will be displayed as a gradient.
2. The method for processing line feature geographic information data according to claim 1, characterized in that: Also includes the steps: generating one or more operating points on the line unit in response to the GUI command; Generating operation point position data and line type attributes between the operation points in the ground feature data; When displaying the graphics of the ground feature elements, the primitive features between the operation points are displayed according to the line type attributes.
3. The method for processing line feature geographic information data according to claim 1, characterized in that: The properties include line style.
4. The method for processing line feature geographic information data according to claim 1, characterized in that: The line elements formed by multiple pairs of nodes are connected end to end to form a skeleton line h or a line feature.
5. The method for processing line feature geographic information data according to claim 1, characterized in that: Also includes the steps: Determine new nodes outside the first line of cells; In response to the indication information of the positional relationship, the new node is connected to an end node of the first line unit to determine the second line unit.
6. The method for processing line feature geographic information data according to claim 1, characterized in that: Also includes the steps: Determining a new node on the first line element; Erase the line segment from one end to the new node; The second geographical feature element data represented by the second line unit is deleted from the first geographical feature element data represented by the first line unit, and the third geographical feature element data is generated.
7. The method for processing line feature geographic information data according to claim 1, characterized in that: Also includes the steps: determining a first new node outside the first line element; In response to the indication information of the position relationship, A second new node is determined on the first line element, and a line is drawn from the first new node to the second new node, or a perpendicular line is drawn from the first new node to the first line element or an extension line of the first line element.
8. The method for processing line feature geographic information data according to claim 1, characterized in that: Also includes the steps: Two new nodes are identified on the first line element; In response to the indication information of the positional relationship, the first line unit is rotated and copied with the middle point of the two new nodes as the center of the circle to generate the second line unit.
9. The method for processing line feature geographic information data according to claim 1, characterized in that: Also includes the steps: Two new nodes are identified on the first line element; In response to the indication information of the positional relationship, a second line unit drawn parallel to the first line unit is generated between the two new node perpendicular lines.
10. A line feature geographic information data processing device, used to implement the line feature geographic information data processing method according to any one of claims 1 to 9, comprising: A determination module, used for determining the coordinates of nodes and new nodes, and also for determining cartographic expression data; A merging module, used for merging the first geographical feature element data represented by the first line unit and the second geographical feature element data represented by the second line unit to generate the third geographical feature element data; The display module is used to display the data of land features.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
12. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 9 is implemented.
