A method and device for displaying point-shaped ground feature symbols

Through the combination of dynamic control code and static description data, the element data is retrieved and point symbols are displayed in combination with preset rules. This solves the problem of flexibility in the expression of multiple element combinations and the flexibility of positioning points, and achieves diversified symbol expressions and styles. change.

CN118229828BActive Publication Date: 2024-10-01BEIJING SUNWAY TECH CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410643180.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-10-01
Estimated Expiration
2044-05-23

AI Technical Summary

Technical Problem

The existing technology makes it difficult to realize the combination of multiple graphic elements to express point-like feature symbols, and the positioning point expression of point symbols is not flexible enough to meet the diverse symbol needs.

Method used

By obtaining the data cluster of the point symbol, including dynamic control code and static description data, the dynamic control code retrieves the primitive data in the primitive group and displays the point symbol in combination with the preset rules, including determining the coordinate point, vector direction and label point position. , realizing the expression of multiple styles and positioning methods of point symbols.

Benefits of technology

It realizes the expression of point symbols in various combinations to meet diverse symbol needs. The position of the point symbols is expressed according to any rules and supports a variety of symbol styles and color changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118229828B_ABST
    Figure CN118229828B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for displaying point-like feature element symbols, which solves the problem of combining multiple graphic elements into point-like feature symbols and displaying them. The method for displaying point-like feature element symbols includes: obtaining a data cluster of a point symbol; determining a first coordinate point; the first coordinate point is the display position of the point symbol; the dynamic control code calls at least a part of the graphic element data in the graphic element group, displays the at least a part of the graphic element data, and forms the graphic of the point symbol. The present application realizes that a point symbol can be expressed by a combination of multiple graphic elements and text annotations, that is, a point actually displays multiple symbol styles; and realizes that the positioning point position of a point symbol is expressed according to any regular position of the symbol.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of computer data processing and geographic information database, and in particular to a method and device for displaying point-shaped land feature symbols. Background Art

[0002] There are many symbol styles for point features (symbols not based on scale). In order to unify the symbols, the size is specified, including width, height, and location of the anchor point. Point symbols are also composed of multiple graphics elements. After comparative analysis, there are regularities to follow. From the perspective of the placement direction of the symbol, it is divided into direction points and default direction points (with preset directions, for example, due north), and the direction is the angle of the point, which can be a radian value or a degree, minute, and second value. From the perspective of the expression effect of the point, it can be divided into annotated points and unannotated points (only the point symbol itself), and the annotated content can be text, a number, or a fraction of a combination of a numerator and a denominator.

[0003] Each point symbol is required to have a positioning point, that is, the coordinate origin (0,0) of the point symbol itself, that is, the horizontal and vertical coordinate values ​​are all 0. The description of the symbol itself, such as the embedded points, lines, surface elements and text, can all be calculated according to the relative position, relative length, relative offset and relative angle rules based on this origin coordinate. This rule is recognized by the computer and the graphics are displayed. Each type of land feature is regarded as a code, and the code is distinguished by attributes, including but not limited to layer name, color, line width, etc., which can not only display a variety of multi-color point-shaped land feature symbols to meet the symbol requirements of the national standard diagram, but also change the symbol color scheme according to actual production needs. According to the symbols of point land features, three types of point symbols are listed, which we can simply call default direction points (fake stone mountains, water tower points), directional points (square rainwater grates, flow direction arrows), and annotable points (higher points, general elevation points, dam top elevation points, triangulation points).

[0004] How to realize the combination of multiple ways to express point features is the problem that needs to be solved at present. Summary of the invention

[0005] The present application proposes a method and device for displaying point-like land feature symbols, which solves the problem of combining multiple graphic elements into point-like land feature symbols and displaying them.

[0006] In a first aspect, an embodiment of the present application provides a method for displaying point-shaped land feature symbols, including:

[0007] Acquire a data cluster of a point symbol; the data cluster includes a dynamic control code and static description data; the static description data includes an attribute value and a graphic element group; the dynamic control code is used to display a graphic element according to the static description data;

[0008] The primitive group includes at least one of the following primitive data: point primitive, line primitive, surface primitive, and text annotation;

[0009] Determine a first coordinate point; the first coordinate point is the display position of the point symbol;

[0010] The dynamic control code retrieves at least a portion of the graphic element data in the graphic element group, displays the at least a portion of the graphic element data, and forms the graphic of the point symbol.

[0011] In one of the embodiments, the point symbol is displayed in a preset direction.

[0012] In one embodiment, the method further comprises the steps of:

[0013] A second coordinate point is determined; a vector between the second coordinate point and the first coordinate point is used to determine a display direction of the point symbol.

[0014] In one of the embodiments, in response to the graphic element group including a text annotation, the method further comprises the steps of:

[0015] Determine at least one annotation point;

[0016] Displays text annotation at the location of the annotation point.

[0017] In one embodiment, in response to the text in the data cluster being marked as a score, determining the score line specifically comprises the steps of:

[0018] Determine the minimum circumscribed rectangle of the numerator character and denominator character graphics of the text annotation;

[0019] A score line is determined; the relationship between the length of the score line and the width of the minimum circumscribed rectangle meets a preset rule.

[0020] In one of the embodiments, the preset rule for displaying the point symbol includes the color expression of the graphic element in the point symbol;

[0021] The point symbol graphic is changed by changing the preset rules.

[0022] In one embodiment, determining the marking point further comprises the steps of:

[0023] Modify the position of the annotation point;

[0024] Refresh the display position of the text annotation.

[0025] In a second aspect, the embodiment of the present application further provides a device for displaying point-shaped land feature element symbols, using the method for displaying point-shaped land feature element symbols described in any one of the embodiments of the first aspect, comprising: an acquisition module for acquiring a data cluster of a point symbol; a determination module for determining a first coordinate point; and a display module for dynamically controlling a code to retrieve at least a portion of the graphic element data in a graphic element group, displaying the at least a portion of the graphic element data, and forming a graphic of the point symbol.

[0026] 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.

[0027] 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.

[0028] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:

[0029] The present application realizes that a point symbol can be expressed by a combination of multiple graphic elements and text annotations, that is, a point actually displays multiple symbol styles; and realizes that the positioning point position of a point symbol is expressed according to any regular position of the symbol. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] 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:

[0031] Figure 1 This is a flow chart of a method for displaying point-shaped land feature symbols according to an embodiment of the present application;

[0032] Figure 2-1 This is an example diagram of the default direction point symbol of the fake rock mountain in the embodiment of the present application;

[0033] Figure 2-2 This is an example diagram of the default direction point symbol of the water tower in the embodiment of the present application;

[0034] Figure 3-1 This is an example diagram of a square rain grate with directional point symbols according to an embodiment of the present application;

[0035] Figure 3-2 This is an example diagram of a direction point symbol of a flow arrow in an embodiment of the present application;

[0036] Figure 4 It is a flowchart showing the text annotation in the data cluster of the embodiment of the present application;

[0037] Figure 5 This is an example diagram of the text annotation of the embodiment of the present application;

[0038] Figure 6 Determine the score line display flow chart for the embodiment of the present application;

[0039] Figure 7 This is a schematic diagram of editing the symbol parameters of the land feature elements in the embodiment of the present application;

[0040] Figure 8 This is a schematic diagram showing the score line of the embodiment of the present application;

[0041] Fig. 9 This is an example diagram of text annotation after movement in an embodiment of the present application;

[0042] Fig.10 This is a structural diagram of a point-shaped ground feature symbol display device according to an embodiment of the present application;

[0043] Fig.11 A schematic diagram of a commercial server system for the application scenario of an embodiment of the present application. DETAILED DESCRIPTION

[0044] 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.

[0045] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0046] It should be noted that the geographical features of this application (National Basic Scale Map Schema GB / T 20257.1-2017) are an abstraction of the actual geographical topographic features. They are neither the geographical surveying and mapping data themselves nor the images of the 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 the geographic information database, it is a symbolic data representation of a specific geographical feature. A symbol attribute contains a name, a data type, and a value range associated with it. Elements are divided into point symbols, surface symbols, line symbols, and composite symbols according to their geometric characteristics, and are assigned graphic codes respectively.

[0047] The symbolic feature elements involved in this application are composite symbols containing multiple primitives. It should be noted that the solution of this application is not to process the original geographic image information to identify the information characteristics of the point feature element symbols, but to create and generate point feature element symbols. The processing method of further editing, copying, storing, and using, by defining coordinate points in the map, and then using the associated characteristics of the coordinate point positions and primitive types to form a data cluster of point feature element symbols, is an optimization of the data structure of the geographic information database.

[0048] The present application realizes that a point symbol can be expressed by combining multiple ways such as point primitives, line primitives, curve primitives, arc primitives, surface primitives, text annotations, etc., that is, one point can actually display multiple symbol styles.

[0049] Figure 1 This is a flow chart of a method for displaying point-shaped land feature symbols according to an embodiment of the present application, including steps 110 to 130.

[0050] Step 110, obtaining a data cluster of a point symbol; the data cluster includes a dynamic control code and static description data; the static description data includes an attribute value and a primitive group; the dynamic control code is used to display a primitive according to the static description data;

[0051] The point symbol refers to a point-distributed land feature symbol. The symbol of a land feature is displayed in a graphic form, and the graphic of a land feature is located at a set position point.

[0052] The data cluster is data belonging to a feature code and describing the feature. The feature data cluster structure includes associated dynamic control codes and static description data. The static description data includes various attribute values ​​and graphic element group information. The dynamic control code is used to drive the display module, and the display module compiles the dynamic control code into executable commands. The dynamic control code is expressed according to a set syntax and can be edited and input through the GUI, which includes control program codes that act on the display. When the feature data cluster is called, the editing module reads the graphic element group information in the data cluster, and after the graphic element group information is edited by the GUI, a new dynamic control code can be generated.

[0053] For example, the data cluster includes dynamic control code and static description data under a feature identifier, wherein the static description data includes a primitive group embedded in the feature and the attribute value of each primitive in the primitive group. The dynamic control code generates or evolves display graphics corresponding to the static description data in response to the static description data or GUI instructions. The primitive group includes at least one of the following primitive data: point primitive, line primitive, surface primitive, text annotation. The attribute value of the primitive may include: data representing the identifier, position, scale, color, etc. of the primitive.

[0054] Each geographical feature has independent static description data and dynamic control code.

[0055] The dynamic control code contains instruction information for configuring or activating the static description data. The configuration is to select, set or modify the type, quantity and attribute value of the graphic element group in the static description data; the activation is to drive the display of several graphic element group data in the static description data. In other words, the display is performed according to the type, quantity and attribute value of the graphic element group selected in the static description data.

[0056] Preferably, the dynamic control code may also include instruction information for supplementing the static description data, wherein the supplementation refers to supplementing the types, quantities and attribute values ​​of the primitive groups that are not in the static description data.

[0057] Preferably, the dynamic control code may also include instruction information for replacing the static description data, wherein the replacement refers to replacing the type, quantity and attribute value of at least a part of the primitive groups in the static description data.

[0058] Preferably, the dynamic control code may also include indication information of the combination mode of each graphic element in the display graphic of the land feature element. When the symbol of the land feature element is composed of several graphic elements in the graphic element group, different combinations may present different symbol styles.

[0059] Preferably, the dynamic control code may also include indication information of the display effect of each graphic element in the display graph of the land feature element. The indication information of the display effect is used to supplement or replace the attribute data of the display effect of the graphic element in the static description data.

[0060] Preferably, the dynamic control code may also include a program code for displaying the graphics (ie, symbols) of the land feature elements according to the above-mentioned indication information, which is used to drive a display program running module that can recognize the code, namely, a display module.

[0061] It should be noted that the data stored in the dynamic control code has a higher priority than the static description data. The data of the primitive can be stored in the static description data or in the dynamic control data. For example, if the data of the same primitive contains attribute data in both the dynamic control code and the static description data, and there is a conflict between the two, the attribute data in the dynamic control code will be used to display the graphics.

[0062] In an embodiment of the present application, the static description data or dynamic control code of the data cluster is displayed through an editing module, and at least a part of the data cluster is edited. At this time, in response to the GUI, the static description data is changed, or the various indication information or display program code in the dynamic control code is changed. The data cluster of the point symbol contains associated dynamic control codes and static description data, wherein the static description data contains various attribute values ​​and a group of graphic elements that can be used to construct a point symbol display graphic; the dynamic control code is used to drive the display module, and the display module compiles the dynamic control code into executable commands. The graphic element group of a point symbol can be composed of one graphic element or multiple graphic elements. For example, the graphic element group of a point symbol is composed of one type of graphic element, and there may be multiple types of one type of graphic element.

[0063] Step 120, determining a first coordinate point; the first coordinate point is the display position of the point symbol;

[0064] A coordinate point (ie, the first coordinate point) is determined through a GUI instruction, and the point symbol is displayed according to the coordinates of the coordinate point.

[0065] The data of the first coordinate point may be stored in static description data or in dynamic control code.

[0066] The first coordinate point stored in the dynamic control code has a higher priority than the first coordinate point stored in the static description data. The data of the first coordinate is the dynamic control code, the attribute value can be edited and changed, and the attribute value of the static description data can or cannot be edited and changed.

[0067] For example, Figure 2-1 As shown, from top to bottom are the symbolic display of the fake rock mountain, the symbolic display after being selected, and the entity display effect of the positioning point.

[0068] For example, Figure 2-2 As shown, from top to bottom are the symbolic display of the water tower, the symbolic display after being selected, and the physical display effect of the positioning point.

[0069] It should also be noted that the symbolic display refers to the dynamic control code calling at least a part of the graphic element data in the graphic element group, displaying the at least a part of the graphic element data, and forming the display graphic of the symbol.

[0070] The symbolic display after being selected means that when the land feature is selected in the GUI instruction, the display graphic is expressed in the form of a dotted line.

[0071] The positioning point, namely the first coordinate point, is the display position of the point symbol. The entity display effect according to the positioning point refers to displaying the display position of the point symbol in the form of a point graphic element.

[0072] Step 130: The dynamic control code retrieves at least a portion of the primitive data in the primitive group, displays the at least a portion of the primitive data, and forms a graphic of the point symbol.

[0073] The at least a part mentioned above refers to part or all of the image metadata.

[0074] When displaying the at least a portion of the metadata, the metadata in the static description data is configured and / or supplemented corresponding to the instruction information in the dynamic control code described in step 110, thereby activating the corresponding metadata.

[0075] When the feature data cluster is called, the editing module reads the primitive group information in the data cluster, and after the primitive group information is edited in the GUI, a new dynamic control code can be generated.

[0076] The preset rules are display rules for different graphic element data in the point symbol, for example, the display direction of the graphic element in the point symbol, the positional relationship between the graphic element and the coordinate point of the point symbol, and the display effect of the graphic element such as color.

[0077] It should be noted that if Figure 2-1 and Figure 2-2 As shown, the positions of the positioning points 21 and 22 (ie, the first coordinate points) of the point symbol in the figure are not at the exact center of the point symbol, nor at the center of the bottom edge of the point symbol.

[0078] Step 130A: In one embodiment, in step 130, the point symbol is displayed in a preset direction. This embodiment enables convenient drawing of points with directions and points with default directions.

[0079] Preferably, if the point symbol is a point of a default direction, only the first coordinate point needs to be determined, and the point symbol will be displayed in the preset direction.

[0080] The preset direction indication information may be static description data or a dynamic control code, and the preset direction indication information in the dynamic control code has a higher priority than the preset direction indication information in the static description data.

[0081] The indication information of the preset direction may be data of an attribute value in a dynamic control code, which is editable or changeable, or may be an attribute value in static description data, which is configured to be editable or non-editable as required.

[0082] Further preferably, the preset direction is a default display direction of the point symbol without GUI instructions.

[0083] Further preferably, the graphic elements constituting the point symbol have different shapes and different preset directions.

[0084] To further understand the meaning of the display direction, for example, the display graphic of a point symbol is a circle, and its display graphic is non-directional, so there is no need to define a preset direction.

[0085] For another example, the display graphic of the point symbol is an arrow, and the display graphic is directional, so there is a preset direction, and the preset direction can be the direction pointed by the arrow or the direction opposite to the direction pointed by the arrow.

[0086] For example, if the shape of the point symbol is a rectangle and its display graphic is directional, there is a preset direction. For example, the preset direction determines the direction pointed by the length direction or the width direction of the rectangle.

[0087] After the terminal is running, the symbols of different ground features generated by the display module are stored in the form of data clusters of point symbols, and the graphic evolution of the generated ground feature symbols is realized through the evolution of dynamic control codes. By embedding a variety of graphic elements in the point symbols, the instruction information or display program code in the dynamic control code is edited, and the dynamic control code is driven by the static description data to display.

[0088] For example, the dynamic control code confirms the directionality of the point symbol pattern itself, and through preset rules, the east-west, south-north, and south-north orientations of the map are matched with the directionality of the point symbol pattern, and the point symbol is displayed on the map according to the determined display direction.

[0089] Step 130B: In one embodiment, in step 130, the vector direction passing through the first coordinate point is determined as the display direction of the point symbol. At this time, the position point of the point symbol is a directional point.

[0090] For example, the second coordinate point is determined; the vector between the second coordinate point and the first coordinate point is used to determine the display direction of the point symbol.

[0091] The GUI instruction for determining the second coordinate point can be to determine a point as the second coordinate point by clicking the mouse at any position other than the first coordinate point, or to determine the first coordinate point by hovering the mouse outside the first coordinate point after determining the first coordinate point, and determining a vector with the hovering position as the second coordinate point and the first coordinate point.

[0092] There are two determined coordinate points, the first coordinate point is the point symbol display position, and the second coordinate point is used to determine the display direction of the point symbol.

[0093] A point with a direction determines its location when drawing the first point (coordinate point), and determines its direction when drawing the second point. It is actually still a node point, and the second point is only used to determine the direction.

[0094] The directional point is a point symbol with direction but no label.

[0095] For example, Figure 3-1 As shown, from top to bottom are the symbolic display of the square rain grate, the symbolic display after being selected, and the entity display effect according to the positioning point. It can be seen that the positioning point of the square rain grate is at the center of the symbol.

[0096] For example, Figure 3-2 As shown, from top to bottom are the symbolic display of the flow arrow, the symbolic display after being selected, and the entity display effect according to the positioning point. It can be seen that the positioning point of the flow arrow is at the tail of the arrow symbol.

[0097] It can be seen from FIG. 2 and FIG. 3 that the first coordinate point of the point symbol is used to locate the position of the point symbol, but the positional relationship between the graphic element in the point symbol and the first coordinate point is determined according to a preset rule.

[0098] It should be noted that the symbolic display, the symbolic display after being selected, and the entity display according to the positioning point in FIG. 2 and FIG. 3 can be converted to each other through GUI command operations.

[0099] The positioning point position of a point symbol is expressed according to any regular position of the symbol, such as the center of the symbol, the center of the lower edge, the center of the upper edge, etc., which can fully comply with the provisions of standards such as GB / T-20257.1 (2, 3).

[0100] Step 130C: In one embodiment of the present application, in step 130, the point symbol graphic is changed by changing a preset rule.

[0101] For example, the preset rule for displaying the point symbol includes the color expression of the graphic element in the point symbol;

[0102] The preset rules of color include the color expression of the attribute value of the graphic element in the static description data. It can also include the color expression of the attribute value of the graphic element in the dynamic control code. The priority of the dynamic control code is higher than that of the static description data. The attribute value of the dynamic control code can be edited, and the attribute value of the static description data can be edited or not.

[0103] For example, when the dynamic control code driven by the static description data runs in the first terminal according to the control string edited by the set syntax, the static description data can be edited. By editing the static description data, the color of the primitive in the map display point symbol is modified. However, when running in the second terminal, the static description data cannot be edited. At this time, by editing the dynamic control code, the color of the primitive in the map display point symbol is modified.

[0104] For another example, the preset rule for displaying the point symbol includes the positional relationship of the graphic elements in the point symbol;

[0105] The preset rules of positional relationship include the positional relationship expression of the primitive attribute values ​​in the static description data. It can also include the positional relationship expression of the primitive attribute values ​​in the dynamic control code. The priority of the dynamic control code is higher than that of the static description data. The attribute values ​​of the dynamic control code can be edited, and the attribute values ​​of the static description data can be edited or not.

[0106] For example, when the dynamic control code driven by the static description data runs in the first terminal according to the control string edited by the set syntax, the static description data can be edited. By editing the static description data, the positional relationship between the primitive and the positioning point in the map display point symbol is modified. However, when running in the second terminal, the static description data cannot be edited. At this time, by editing the dynamic control code, the positional relationship between the primitive and the positioning point in the map display point symbol is modified.

[0107] Change the graphic style of the symbol by changing the position relationship of the graphic elements.

[0108] For example, both the pound symbol and the square symbol contain four line primitives, but the positional relationship between each line primitive and the anchor point is different, making the styles of the two symbols different.

[0109] Regarding changes to the default rules:

[0110] The above-mentioned preset rules include the expression of the preset graphic element group in the static description data, and also include the graphic element group selected in the dynamic control code. The priority of the dynamic control code is higher than the static description data. The attribute value of the dynamic control code is editable, and the attribute value of the static description data is also editable and / or non-editable.

[0111] For example, when the control string edited according to the set syntax in the dynamic control code driven by the static description data runs in the first terminal, the static description data at this time can be edited. By editing the static description data, the preset rules of the map display point symbol are modified.

[0112] For another example, when the second terminal is running, the static description data cannot be edited, and the preset rules are changed by editing the dynamic control code.

[0113] For example, when creating a point symbol, the original symbol is generated, the editing process of static description data, and the data cluster of the point symbol can be edited arbitrarily to form different symbols. Another example is that the control string edited according to the set syntax will display different symbols after running in the terminal.

[0114] Figure 4 This is a flowchart of text annotation display in a data cluster according to an embodiment of the present application, including steps 210 to 230.

[0115] Step 210, obtaining a data cluster of a point symbol;

[0116] For example, the data cluster includes a dynamic control code and static description data under a feature identifier, wherein the static description data includes a primitive group embedded in the feature and an attribute value of each primitive in the primitive group.

[0117] Specifically, for example, the graphic element group includes point graphic elements, line graphic elements, surface graphic elements, and text annotations, which are used to construct specific graphic elements for displaying annotation information, such as leader lines, fraction lines, identifiers, triangles, and prompts.

[0118] For example, the attribute value of the primitive may include data representing the identity, position, scale, color, etc. of the primitive for constructing annotation information.

[0119] In order to implement the text annotation of this embodiment, the static description data includes: attribute information of annotation points, text annotations and fraction lines. The primitive group includes: primitives of text annotations and fraction lines.

[0120] The dynamic control code generates or evolves display graphics corresponding to the static description data by responding to the static description data or GUI instructions.

[0121] In one embodiment of the present application, at least a portion of the primitive data in the primitive group retrieved by the dynamic control code includes text annotations.

[0122] The dynamic control code includes:

[0123] Instruction information for configuring or activating static description data, instruction information for supplementing static description data, instruction information for replacing static description data, instruction information for combining the various graphic elements in the display graphics of the said geographical features, instruction information for the display effects of the various graphic elements in the display graphics of the said geographical features, and program code for displaying the graphics (i.e., symbols) of the said geographical features according to the above instruction information.

[0124] In order to implement the text annotation of this embodiment, the dynamic control code includes instruction information for configuring, activating, supplementing, replacing, combining and displaying annotation points, text annotations and score lines, and also includes program code for displaying text annotation symbols.

[0125] Step 220: determine a first coordinate point; the first coordinate point is the display position of the point symbol, and determine at least one annotation point related to the first coordinate point;

[0126] Determine at least one annotation point;

[0127] The point symbol may have multiple marking points, such as relative height, elevation point, dam top elevation point, and triangulation point, to express different symbol requirements.

[0128] Determining the marking point further comprises the steps of:

[0129] Modify the position of the annotation point;

[0130] The position of the marking point may include a preset position in the static description data, and may also include a position selected in the dynamic control code.

[0131] The priority of dynamic control code is higher than that of static description data. Therefore, if the position of the annotation point in the dynamic control code is edited, the position selected by the dynamic control code will be used instead of the preset position or the position selected by the static description data.

[0132] The attribute values ​​of the dynamic control code are editable, and the attribute values ​​of the static description data are editable or uneditable.

[0133] For example, when the dynamic control code driven by the static description data runs in the first terminal according to the control string edited by the set syntax, the static description data of the annotation point position can be edited. When running in the second terminal, the static description data of the annotation point position cannot be edited. At this time, the dynamic control code can be edited to modify the display rules and change the position of the annotation point.

[0134] contrast Figure 5 and Fig. 9 It can be seen that the position of the text annotation has changed, and the annotation point can be dragged to modify the display position of the text annotation.

[0135] For example, the position of the annotation point can be modified by dragging the annotation point through the GUI command.

[0136] Refresh the display position of the text annotation.

[0137] The text annotation will be generated at the new annotation point location.

[0138] Or when dragging, the text annotation will be dragged to the new position along with the annotation point.

[0139] In response to the text in the data cluster being marked as a score, determining the score line specifically comprises the following steps:

[0140] Step 610, determining the minimum circumscribed rectangle of the numerator character and denominator character graphics of the text annotation;

[0141] Step 620: determine a score line; the relationship between the length of the score line and the width of the minimum circumscribed rectangle complies with a preset rule.

[0142] The preset rules are display rules for different graphic element information in point symbols.

[0143] Furthermore, the preset rules also include display rules for scores in text annotations; the display rules for scores include display rules for score lines.

[0144] like Figure 6 As shown, the preset rule of the score line can be static description data or dynamic control code, and the priority of the dynamic control code is higher than the static description data.

[0145] Data is a dynamic property value that can be edited and changed, while static property values ​​may or may not be edited and changed.

[0146] Step 230: The dynamic control code retrieves at least a portion of the primitive data in the primitive group, displays the at least a portion of the primitive data, forms a graphic of the point symbol, and displays a text annotation at the position of the annotation point.

[0147] Displays text annotation at the location of the annotation point.

[0148] For example, Figure 5 As shown in the figure, the marked point symbols are: relative height point 51, general elevation point 52, dam top elevation point 53, triangulation point 54. Symbolized display (top). Symbolized display after selection (middle), and the display effect of the marked point entity (bottom).

[0149] It should be noted that the symbolic display refers to the display graphics dynamically controlled by the land features.

[0150] The symbolic display after being selected means that when the land feature is selected, the display graphic is expressed in the form of a dotted line.

[0151] The display effect according to the anchor point entity refers to displaying the display position of the point symbol in the form of a point graphic element.

[0152] In special cases, the graphic of a point symbol degenerates into a positioning point plus a text annotation at the location of the annotation point.

[0153] Furthermore, the display direction of the text annotation is determined according to whether the point symbol is a point with a direction or a point with a default direction.

[0154] Furthermore, regarding the display rules of fraction lines, for example, the symbolic display of triangular points, such as Figure 5 In the rightmost figure, after the elevation value of the triangulation point changes, the denominator of the text annotation will shorten or lengthen. As the denominator shortens or lengthens, the length direction of the minimum circumscribed rectangle of the numerator and denominator characters will shorten or lengthen. Therefore, the fraction line will automatically shorten and lengthen as the elevation value changes.

[0155] like Figure 7 As shown, the preset rules are determined according to the parameters described by the symbols in the figure.

[0156] Taking the display of fraction lines as an example, the parameters described by the symbols in the figure are:

[0157] G,110102101 0.000,0.000

[0158] &T,1990001, <n>8.500,2.000

[0159] &T,1990002,<ZZZZ.ZZZ> 8.500,-2.000

[0160] &1,110102103 [0,3,0.5,0.5,0.0] [1,2,0.5,-0.5,0.0]

[0161] The four points of the minimum circumscribed rectangle 82 of the text annotation are set as 0, 1, 2, and 3. The preset rule of the identifier "0, 3, 0.5, 0.5, 0.0" in the above parameters is: 0, 3, 0.5, which means that one end of the score line 81 is set at 0.5 between points 0 and 3, that is, at the center. The last 0.5 represents the left or right offset of this end of the score line on the line connecting 0 and 3. A positive number means it is offset to the left, and a negative number means it is offset to the right. Therefore, the 0.5 here means that the end of the score line is 0.5 units to the left of the line connecting 0 and 3. The last 0.0 mark represents the up and down offset of the number line, a positive number means it is offset upward, and a negative number means it is offset downward.

[0162] In the above parameters, "1,2,0.5,-0.5,0.0" refers to the positional relationship between the line connecting points 1 and 2 and the other end of the score line. The reading is the same as above and will not be repeated here.

[0163] The 0.0 here means there is no up or down offset. The final score line is as follows Figure 8 shown.

[0164] It should be noted that the minimum enclosing rectangle in the figure is shown for ease of understanding and there is actually no actual figure.

[0165] It should also be noted that the parameters described by the symbols in the figure are dynamic control codes of the point symbols. By editing the parameters, the display rules of the graphic elements in the point symbols can be modified.

[0166] Fig.10 A point-shaped land feature element symbol display device provided in an embodiment of the present application, using the point-shaped land feature element symbol display method described in any one of the embodiments of the first aspect, comprises:

[0167] The geographic information database / result map database 100 is used to store the data of the point symbol in the target area and the static description data and dynamic control code of the first coordinate point.

[0168] The acquisition module 101 is used to acquire a data cluster of a point symbol.

[0169] The determination module 102 includes a first determination unit configured to determine a first coordinate point.

[0170] The display module 103 includes a first display unit, which is used to dynamically control the code to retrieve at least a part of the graphic element data in the graphic element group, display the at least a part of the graphic element data, and form the graphic of the point symbol.

[0171] In one of the embodiments, the determination module includes a second determination unit, configured to determine a vector formed with the first coordinate point.

[0172] In one of the embodiments, the determination module includes a third determination unit for determining the marking point;

[0173] The display module includes a second display unit, which is used to display text annotations at the positions of the annotation points.

[0174] In one embodiment, the display module includes a fraction line display unit for displaying a fraction line by determining the minimum circumscribed rectangle of the numerator and denominator characters of the text annotation; determining a fraction line; the fraction line is located between the numerator and denominator of the text annotation, and its relationship with the minimum circumscribed rectangle complies with a preset rule.

[0175] In one of the embodiments, the display module includes a style display unit, which is used to display the preset rules of the point symbol at the coordinate point including the color expression of the graphic element in the point symbol; and is also used to change the style of the point symbol by changing the preset rules.

[0176] In one of the embodiments, the determination module includes a fourth determination unit, which is used to modify the position of the annotation point in response to the GUI instruction; and refresh the display position of the text annotation.

[0177] The device further comprises an editing module (not shown in the figure) for reading the primitive group information in the data cluster, and generating new dynamic control codes after the primitive group information is edited by the GUI.

[0178] Specifically, the static description data and / or the dynamic control data are modified to change at least a part of the graphic element data in the graphic element group, thereby changing the graphics forming the point symbol.

[0179] like Figure 7 As shown, the editing module includes coding feature description and symbol description, and the coding feature description specifically includes: name, line type, EpsCE code, layer, line width, purpose, coding, color, additional information, symbol type, object type, remarks, alias, thickness, coding control information. It also includes instructions such as scattering, filtering and reverse.

[0180] The symbol description receives the input control string as a GUI instruction through the interactive window, and modifies the dynamic control code by editing the symbol description in the interactive window, thereby realizing the editing and modification of the point symbol graphic.

[0181] Fig.11 The present application also provides a system for processing geographic information data, which is used to implement the method described in any one of the embodiments of the present application, including: an original geographic information database 111, a data processor 112, a GUI operation interface 113, an application terminal 114, and at least one result map database 115.

[0182] The original geographic information database is used to store geographic information entity data.

[0183] The GUI operation interface and / or application terminal are used to input setting conditions. Trigger the acquisition module, determination module, editing module or display module. It is also used to access the achievement data set according to the set application scope (spatial scope and attribute scope) to obtain data. Through the GUI operation interface, GUI instructions are received to determine the position coordinates of the coordinate point, and the display position of the symbol is determined by this coordinate. The data processor, in response to the GUI instruction, obtains the data cluster of the point symbol; determines the first coordinate point; the dynamic control code calls at least a part of the graphic element data in the graphic element group, displays the at least a part of the graphic element data, and forms the graphic of the point symbol.

[0184] The achievement map dataset is used to store geographic information related data.

[0185] Generate geographic information database feature templates through GUI operation interface and / or application terminal:

[0186] The feature element template is an original data cluster used to generate various features of the original geographic information database, including multiple primitives. Static description data is created, the static description data includes attribute values ​​and primitive groups, and the primitive groups include primitives constituting the template.

[0187] For example, Figure 2-1 The feature template of the fake rock mountain (left) shown contains at least two surface elements (forming two triangles, one large and one small), and two line elements (vertical lines set in the middle of the two surface elements).

[0188] The attribute values ​​are attributes of the graphic elements constituting the template, for example, size parameters of the graphic elements, the color of the graphic elements, the positional relationship between the graphic elements and the coordinate points, and the like.

[0189] The feature template may also include location information of the primitives, for example, Figure 2-1 As shown, two isosceles triangles are placed side by side, with the bases of the triangles on the same straight line. A line is drawn from the vertex of each triangle to the midpoint of the base.

[0190] It should be noted that a feature template can be used to evolve into a data cluster of multiple features. The more features that can be evolved, the more primitive information it contains. It is understandable that a general feature template can be designed to evolve into all types of features. Alternatively, in order to reduce the amount of data in a feature template, multiple feature templates can be designed, each of which is applicable to a certain range of features, or a specific feature data cluster is selected to form a feature template of a geographic information database.

[0191] You can generate, obtain or edit a specific coded feature template. For example, the feature template of the geographic information database is coded as X.

[0192] Through the GUI operation interface and / or application terminal, the editing process of the original geographic information database can also be realized, and the static description data and dynamic control code can be edited and modified to form a data cluster of a specific geographic feature.

[0193] For example, modify the attribute value in the static description data or modify the dynamic control code to modify the size, color, and positional relationship of at least one graphic element in the graphic element group with respect to the coordinate point, thereby changing the geographical features of the original geographic information database.

[0194] For another example, the static description data feature coding field of the feature element coding is Y, and the dynamic control code coding field of the feature element is Z.

[0195] The specific feature identification can be expressed as CODE(X,Y,Z), that is, the CODE value is the code of a feature element corresponding to (X,Y,Z), and (Y,Z) constitutes the data cluster of the feature element or the indication information (identification or pointer) of the data cluster.

[0196] The original geographic information system database feature application process can also be realized through the GUI operation interface and / or application terminal. To distinguish it from the feature editing process, the static description data cannot be edited at this time, but the dynamic control code can be edited. That is to say, the process is limited in the editing module to enable or disable the update function of the static description data to respond to the GUI, so as to protect the feature template or a specific edited feature.

[0197] For example, when calling a feature data cluster, the static description data can be edited. When the control code is run in the terminal according to the control string edited by the set syntax, the static description data cannot be edited, and only the dynamic control data can be edited. It can be understood that different dynamic control codes can be applied to different features, or to different display states of the same feature, to support a variety of engineering applications.

[0198] For another example, when the original geographic information database retrieves the feature data cluster from the application data set, the static description data of the data cluster is triggered. When the static description data is working, the control string edited according to the set syntax in the dynamic control code driven by the static description data corresponds to the corresponding engineering management software, and the engineering management software runs in the application terminal. After running, the static description data and dynamic control code of the data cluster are edited and stored in the result map database.

[0199] It should be noted that by editing the static description data and dynamic control code of the data cluster and thereby modifying the attributes of the features, new features are formed.

[0200] For example, by editing the static description data and dynamic control code of the data cluster, the preset direction of the point symbol is modified to form a land feature with different display directions. If the preset direction of the point symbol is not modified, the direction in the original geographic information database is used as the preset direction.

[0201] For example, by editing the static description data and dynamic control code of the data cluster, a marking point is determined to determine the display position of the text markup.

[0202] For example, by editing the static description data and dynamic control code of the data cluster, the display of the score line can be determined.

[0203] For example, by editing the static description data and dynamic control code of the data cluster, the color expression of the graphic element data in the point symbol is determined;

[0204] For example, by editing the static description data and dynamic control code of the data cluster, the graphic changes of the graphic element data in the point symbol are determined.

[0205] For example, by editing the static description data and dynamic control code of the data cluster, the position of the annotation point can be modified and the display position of the text annotation can be refreshed.

[0206] 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.

[0207] 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.

[0208] 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.

[0209] 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.

[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 The steps for the functions specified in one or more boxes.

[0213] Furthermore, the present application also proposes an electronic device (or computing 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.

[0214] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium. Computer-readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0215] It should also be noted that the terms "comprises", "includes" 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 includes other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity or device including the element. "At least one" in this application includes one or more.

[0216] 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.< / n>

Claims

1. A method for displaying point-shaped ground feature symbols. It is characterized in that include: Acquire a data cluster of a point symbol; the data cluster is data belonging to a feature code and describing the feature, including a dynamic control code and static description data; the static description data includes attribute values ​​and a primitive group; the dynamic control code is used to display the primitive according to the static description data; The primitive group includes at least one of the following primitive data: point primitive, line primitive, surface primitive, and text annotation; Determine a first coordinate point; the first coordinate point is the display position of the point symbol; The dynamic control code retrieves at least a portion of the graphic element data in the graphic element group, displays the at least a portion of the graphic element data, and forms a graphic of the point symbol; The preset rules for displaying the point symbol include the color expression and / or positional relationship expression of the graphic element attribute value in the static description data or the dynamic control code; the dynamic control code has a higher priority than the static description data, and if the attribute data of the two conflict, the attribute data in the dynamic control code is used to display the graphics.

2. The method for displaying point-shaped land feature symbols according to claim 1, It is characterized in that The point symbol is displayed in a preset direction.

3. The method for displaying point-shaped land feature symbols according to claim 1, It is characterized in that Also includes the steps: Determine the direction of the vector passing through the first coordinate point as the display direction of the point symbol.

4. The method for displaying point-shaped land feature symbols according to claim 1, It is characterized in that In response to the element group containing text annotations, the method further comprises the steps of: Determine at least one annotation point; Displays text annotation at the location of the annotation point.

5. The method for displaying point-shaped land feature symbols according to claim 1, It is characterized in that In response to the text in the data cluster being marked as a score, determining the score line specifically comprises the following steps: Determine the minimum circumscribed rectangle of the numerator character and denominator character graphics of the text annotation; A score line is determined; the relationship between the length of the score line and the width of the minimum circumscribed rectangle meets a preset rule.

6. The method for displaying point-shaped land feature symbols according to claim 1, It is characterized in that The point symbol is displayed, and the point symbol graphic is changed by changing the preset rule.

7. The method for displaying point-shaped land feature symbols according to claim 4, It is characterized in that Determining the marking points also includes the following steps: Modify the position of the annotation point; Refresh the display position of the text annotation.

8. A device for displaying point-shaped ground feature symbols, It is characterized in that The method for displaying point-shaped land feature symbols according to any one of claims 1 to 7 comprises: An acquisition module is used to acquire data clusters of point symbols; A determination module, used for determining a first coordinate point; The display module is used for dynamically controlling the code to retrieve at least a part of the graphic element data in the graphic element group, displaying the at least a part of the graphic element data, and forming the graphic of the point symbol.

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

10. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.