A full-space geographic entity symbolization method based on JSON system

Through the JSON form, the symbolic library is organized, and the symbolic method is designed to solve the sharing and interoperability problems caused by the differences in symbol models in the GIS system, realizing efficient management of geographical entity symbols and cross-platform sharing.

CN113760284BActive Publication Date: 2025-08-19SHANGHAI MAPPING INST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110894652.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-05
Publication Date
2025-08-19
Estimated Expiration
2041-08-05

AI Technical Summary

Technical Problem

Due to the differences and enclosed symbols of existing GIS systems, it is difficult to achieve the sharing and interoperability of symbols in all spatial geographic entities, and cannot meet the needs of customized construction.

Method used

The symbol library content is organized in JSON form, and a new symbolization method is designed, including symbol design, management and parsing modules, supporting lightweight data exchange across platforms and programming languages, and realizing the customization and sharing of geographical entity symbols through JSON structure.

Benefits of technology

It realizes efficient management and rapid parsing of symbol libraries, supports interoperability between multiple platforms and multiple languages, and improves the sharing and customized design capabilities of geographical entity symbols.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113760284B_ABST
    Figure CN113760284B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for symbolizing full-space geographic entities based on a JSON system, which belongs to the field of construction of a new basic surveying and mapping system. In particular, the method involves a symbolization method for full-space geographic entities based on a JSON system. The geographic entities are divided into three modules: a symbol design module, a symbol management module, and a parsing module. The steps also include the symbol design of geographic entity point primitives, the symbol design of geographic entity line primitives, and the symbol design of geographic entity surface primitives. The symbol library content is organized in the form of JSON, which has a clear structure, strong scalability, and fast parsing speed. It can be used across multiple programming languages and system platforms, which is conducive to industry sharing and interoperability. According to the geographic entity concept model and expression rules, the JSON structure is combined and adjusted, and the symbols of the geographic entities can be customized and designed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical field:

[0002] The present invention relates to the field of new basic surveying and mapping system construction, and in particular to a full-space geographic entity symbolization method based on a JSON system. Background technology:

[0004] With the transformation of the surveying and mapping geographic information industry and the construction of a new basic surveying and mapping system, it is necessary to study full-space multi-granularity geographic entity symbols; symbols are the basis of geographic information visualization. Most mature GIS systems, such as ArcGIS, MapInfo, SuperMap, etc., will have a symbol editing module. However, due to the differences and closures between different symbol models, symbol systems are difficult to share and interoperate.

[0005] The real world is composed of different categories of geographical entities. The existence of geographical entities is inseparable from other geographical entities, so the relationship between various geographical entities is its important attribute; different geographical entities have different behavioral methods; the division of geographical entities is generally artificial and is determined by people based on the needs of their own research problems.

[0006] Traditional general graphic standards only provide the overall symbolization effect, but do not disclose the symbol construction method. They are difficult to adapt to the needs of customized construction of symbols for full-space geographic entities, and require self-defined set of symbol rules for construction. At present, we have defined a set of symbol customization rules ourselves, which is conducive to adapting to industry cooperation and exchange in geographic entities and promoting the sharing and interoperability of geographic entity symbols. Summary of the invention:

[0008] To solve the above technical problems, a new symbol library and symbolization rules are developed for the definition of full-space geographic entities; the symbol library content is organized in JSON format, which has a clear structure, strong scalability, fast parsing speed, and can be used across multiple programming languages ​​and system platforms, facilitating industry sharing and interoperability; based on the geographic entity conceptual model and expression rules, a new symbolization method for full-space geographic entities is designed.

[0009] The technical solution adopted to realize the above invention is:

[0010] A full-space geographic entity symbolization method based on the JSON system. The geographic entity is divided into three modules: symbol design module, symbol management module, and parsing module.

[0011] The symbol design module designs symbol styles based on full-space geographic entities;

[0012] The symbol management module can efficiently manage and update symbol library files and organize the symbol library contents in JSON format;

[0013] The parsing module can be used for symbolic parsing on multiple platforms, organizes the symbol library through JSON, realizes lightweight data exchange, and can be used across multiple programming languages and system platforms.

[0014] Geographic entity point primitive symbol design scheme: basic elements include point, polyline, arc, and circle; the file format is JSON; the organizational structure is the entity point primitive symbol organizational structure, and the child nodes have 311 point symbol descriptions, including geographic entity point primitive codes and geographic entity point primitive symbol descriptions.

[0015] Customization steps include: 1) Starting with 0: refers to a dot; syntax: 0 + space + a coordinate pair (coordinates are organized with commas and separated by spaces); 2) Starting with 1: refers to a broken line; syntax: 1 + space + multiple coordinate pairs (coordinates are organized with commas and separated by spaces); 3) Starting with 3: refers to an arc; syntax: 3 + space + multiple coordinate pairs (coordinates are organized with commas and separated by spaces); 4) Starting with 4: refers to a circle; syntax: 4 + space + multiple coordinate pairs (coordinates are organized with commas and separated by spaces).

[0016] Design principles of geographic entity line element symbols: basic elements include real part, imaginary part, solid line, and point; the file format is JSON;

[0017] Organizational structure, the parent node is named SHSMISymbols-Line, and the child nodes have 56 line symbol descriptions, including geographic entity line feature code FeatureCode, line type LineType, line width LineWidth, imaginary part and real part size DottedDescribe;

[0018] Customized solution steps:

[0019] Includes 1) Simple Line Symbols (L): solid lines of various widths and colors (layer definition);

[0020] Includes 2) Complex Linear Symbols (LC): insert graphics elements continuously and evenly according to a certain rule, draw lines and text: Nested Lines: +n [, code [, layer name [, color [, line width]]]] or: -n [, code [, layer name [, color [, line width]]]] (real part, imaginary part);

[0021] Design principles for geographic surface feature symbols: Basic elements include points, polylines, arcs, and circles; the file format is JSON; the organizational structure is shown in the figure (Geographic Surface Feature Symbol Organization Structure). The parent node is named SHSMISymbols-area, which has 16 surface symbol description child nodes. Each node includes the surface feature code FeatureCode, the surface feature type AreaType, the surface feature range line width LineWidth, the surface feature range line type RangeLineType, and the surface fill pattern symbol style FilledPattern.

[0022] Customization steps include: 1) Basic class: refers to filling areas with various colors; 2) Nested class (filling single point features); 3) Filling lines; 4) Boundary coding; 5) Defining skeleton lines; 6) Filling uniform points.

[0023] The principle of geographic entity symbol parsing is to read and parse the description content of each geographic entity symbol in the JSON file, including the basic element shape, line width, and line type content, record all the basic elements corresponding to each geographic entity symbol, calculate the insertion point coordinates of each element based on the coordinate information of the geographic entity, and then call OpenGL to draw it on the screen; geographic entity (geo-entity): an independent natural or artificial feature with a spatial location and common attributes in the real world; geometric primitive: a geometric object that represents a single, connected element with common attributes in space; geographic entities are identifiable and can be identified by unique identifiers.

[0024] Compared with the existing technology, the invention has the following beneficial technical effects:

[0025] 1. The symbol library content is organized in JSON format, which has a clear structure, strong scalability, fast parsing speed, and can be used across multiple programming languages and system platforms, which is conducive to industry sharing and interoperability;

[0026] 2. According to the conceptual model and expression rules of geographic entities, the JSON structure is combined and adjusted to customize the symbols of geographic entities. Description of the drawings:

[0028] Figure 1 The geographical entity point graphic element symbol design diagram of the present invention;

[0029] Figure 2 It is the geographical entity line element design diagram of the present invention;

[0030] Figure 3 Creating a line symbol style and creating a surface symbol style diagram for the present invention;

[0031] Figure 4 This is a schematic diagram of the full-space geographic entity symbol parsing principle of the JSON system of the present invention;

[0032] Figure 5 This is a flowchart of the JSON system full-space geographic entity symbolization method of the present invention; Specific implementation method:

[0034] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0035] like Figure 1-5 As shown, the present invention provides a method for symbolizing full-space geographic entities based on the JSON system: the geographic entity is divided into three modules: including a symbol design module, a symbol management module, and a parsing module;

[0036] The symbol design module designs symbol styles according to the full-space geographic entity, with a simple and convenient design method and strong scalability;

[0037] The symbol management module can efficiently manage and update symbol library files, organize the symbol library content in JSON format, and has a clear structure, which is convenient for query and maintenance;

[0038] The parsing module can be used for symbolic parsing on multiple platforms, organizes the symbol library through JSON, realizes lightweight data exchange, can be used across multiple programming languages and system platforms, and has a simple JSON structure and fast parsing speed, which has great advantages in actual use.

[0039] The file format is JSON, which has a concise and clear hierarchical structure; it is easy to parse and generate; the organizational structure;

[0040] The design principle of geographic entity point primitive symbols is further described: basic elements include points, polylines, arcs, and circles; the file format is JSON; the parent node is named SHSMISymbols, and the child nodes have 311 point symbol descriptions, including geographic entity point primitive codes FeatureCode and geographic entity point primitive symbol descriptions SymbolDescription;

[0041] Customization steps include: 1) Starting with 0: refers to a dot; syntax: 0 + space + a coordinate pair (coordinates are organized with commas and separated by spaces);

[0042] Including 2) Starting with 1: polyline; Syntax: 1 + space + multiple coordinate pairs (coordinates are organized by commas and separated by spaces);

[0043] Including 3) Starting with 3: Arc; Syntax: 3 + space + multiple coordinate pairs (coordinates are organized with commas and separated by spaces);

[0044] Including 4) Starting with 4: circle; syntax: 4 + space + multiple coordinate pairs (coordinates are organized with commas and separated by spaces);

[0045] The design principle of geographic entity line primitive symbols is further described: basic elements include real part, imaginary part, solid line, and point; the file format is JSON; the organizational structure, the parent node is named SHSMISymbols-Line, and the child nodes have 56 line symbol descriptions, including geographic entity line primitive feature code FeatureCode, line type LineType, line width LineWidth, imaginary part and real part size DottedDescribe;

[0046] Customization steps include: (1) Simple line symbols (L): refers to solid lines of various widths and colors (layer definition); 2) Complex line symbols (LC): insert graphics elements continuously and evenly according to a certain rule, draw lines and text: Nested lines: +n [, code [, layer name [, color [, line width]]]] or: -n [, code [, layer name [, color [, line width]]]] (real part, imaginary part).

[0047] The design principles of geographic entity area primitive symbols are further described: basic elements include points, polylines, arcs, and circles; the file format is JSON; the organizational structure, the parent node is named SHSMISymbols-area, and there are 16 area symbol description child nodes, each node includes the area primitive feature code FeatureCode, area feature type AreaType, area feature range line width LineWidth, area feature range line type RangeLineType, and area fill pattern symbol style FilledPattern;

[0048] Customization steps include: 1) Basic class: refers to filling various colored areas; 2) Nested class (filling single point features); 3) Filling lines; 4) Boundary coding; 5) Defining skeleton lines; 6) Filling uniform points;

[0049] The principle of geographic entity symbol parsing is to read the description of each geographic entity symbol in the JSON file and parse it, including the basic element shape, line width, line type, etc., record all the basic elements corresponding to each geographic entity symbol, calculate the insertion point coordinates of each element based on the coordinate information of the geographic entity, and then call OpenGL to draw on the screen.

[0050] Geographic entity: an independent natural or artificial feature in the real world with a spatial location and common attributes; geometric primitive: a geometric object that represents a single, connected element with common attributes in space; geographic entities are identifiable and can be identified by a unique identifier.

[0051] The implementation process of a full-space geographic entity symbolization method based on the JSON system includes the following steps:

[0052] Step 1. Create a dot notation style JSON;

[0053] Step 2. Create line symbol style JSON;

[0054] Step 3: Create a polygon symbol style JSON.

[0055] The implementation method of step 1 includes the following steps:

[0056] Step 1: Based on the code name of the currently created geographic entity point primitive, determine whether there is a related point primitive symbol. If so, use the existing symbol description. If not, create a new point primitive symbol.

[0057] Step 2: Save the updated JSON file.

[0058] The implementation method of step 2 includes the following steps:

[0059] Step 1: Based on the code name of the currently created geographic entity line element, determine whether there is a related line element symbol. If so, use the existing symbol description. If not, create a new line element symbol.

[0060] Step 2: Save the updated JSON file.

[0061] The implementation method of step 3 includes the following steps:

[0062] Step 1: Based on the code name of the currently created geographic entity surface element, determine whether there is a related surface element symbol. If so, use the existing symbol description. If not, create a new surface element symbol.

[0063] Step 2: Save the updated JSON file.

[0064] In summary, the JSON has a concise and clear hierarchical structure; is easy to parse and generate; and improves transmission efficiency. The JSON structure is combined and adjusted according to the geographic entity conceptual model and expression rules, and the symbols of geographic entities can be customized and designed.

[0065] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions in the specification only illustrate the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention will have various changes and improvements, and these changes and improvements will fall within the scope of protection required by the present invention. The scope of protection required by the present invention is defined by the attached claims and their equivalents.

Claims

1. A method for symbolizing full-space geographic entities based on the JSON system, characterized in that It includes a symbol design module, a symbol management module, and a parsing module, and the steps also include geographic entity point graphic element symbol design, geographic entity line graphic element symbol design, and geographic entity surface graphic element symbol design; The geographical entity point symbol design; basic elements include point, polyline, arc, circle; The file format is JSON; The steps for designing the symbol of geographic entity point include: 1) 0 at the beginning: refers to the dot; Syntax: 0+space+a coordinate pair (coordinates are organized with commas and separated by spaces); including 2) starting with 1: polyline; Syntax: 1+space+multiple coordinate pairs (coordinates are organized with commas and separated by spaces); including 3) starting with 3: arc; Syntax: 3+space+multiple coordinate pairs (coordinates are organized with commas and separated by spaces); including 4) starting with 4: circle; Syntax: 4+space+multiple coordinate pairs (coordinates are organized with commas and separated by spaces)"; Geographic entity line symbol design: basic elements include real part, imaginary part, solid line, and point; the file format is JSON; Steps for designing and customizing geographic entity line element symbols: Includes 1) Simple Line Symbols (L): solid lines of various widths and colors (layer definition); Including 2) Complex Linear Symbols (LC): inserting graphics elements continuously and evenly according to a certain rule, drawing lines and text: nesting Line: +n[ ,code[ ,layer name[ ,color[ ,line width]]]] or: -n[ ,code[ ,layer name[ ,color[ ,line width]]]] (real part, imaginary part); Geographic entity symbol design: basic elements include point, polyline, arc, and circle; the file format is JSON; The design of geographic entity surface symbol includes the following steps: basic class, nested class, filling connection line, boundary coding, defining skeleton line, filling uniform points; Geographic entity symbol parsing principle: read the description of each geographic entity symbol in the JSON file, parse it, and then call OpenGL to draw it on the screen.

2. A method for symbolizing full-space geographic entities based on a JSON system according to claim 1; characterized in that The symbol design module designs symbol styles based on full-space geographic entities.

3. A method for symbolizing full-space geographic entities based on a JSON system according to claim 1; characterized in that The symbol management module can manage and update symbol library files and organize the symbol library contents in JSON format.

4. A method for symbolizing full-space geographic entities based on a JSON system according to claim 1; characterized in that The parsing module can be used for symbolic parsing on multiple platforms, organizes the symbol library through JSON, realizes lightweight data exchange, and can be used across multiple programming languages and system platforms.

Citation Information

Patent Citations

  • An efficient organization and management method of massive spatio-temporal data

    CN109144966A

  • Open type ocean geographic information symbol construction system and implementation method thereof

    CN110968737A