CN110781324A - Symbol library based on three-dimensional plotting system - Google Patents

Symbol library based on three-dimensional plotting system Download PDF

Info

Publication number
CN110781324A
CN110781324A CN201910820101.6A CN201910820101A CN110781324A CN 110781324 A CN110781324 A CN 110781324A CN 201910820101 A CN201910820101 A CN 201910820101A CN 110781324 A CN110781324 A CN 110781324A
Authority
CN
China
Prior art keywords
symbol
primitive
library
description
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910820101.6A
Other languages
Chinese (zh)
Other versions
CN110781324B (en
Inventor
李佳航
付琨
廉海明
王毅
俞信
林清钊
彭熊清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Research Institute Institute Of Electronics Chinese Academy Of Sciences
Original Assignee
Suzhou Research Institute Institute Of Electronics Chinese Academy Of Sciences
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Research Institute Institute Of Electronics Chinese Academy Of Sciences filed Critical Suzhou Research Institute Institute Of Electronics Chinese Academy Of Sciences
Priority to CN201910820101.6A priority Critical patent/CN110781324B/en
Publication of CN110781324A publication Critical patent/CN110781324A/en
Application granted granted Critical
Publication of CN110781324B publication Critical patent/CN110781324B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a symbol library based on a three-dimensional map system, which comprises a symbol description unit and a symbol generation unit, wherein the symbol description unit comprises a symbol information library, a control point description instruction set and a primitive description instruction set; the symbol generation unit comprises a basic operation module, a basic primitive algorithm library, a vertex generator and a vertex rendering module. The invention separates the symbol generation algorithm from the symbol description, can conveniently construct the user-defined symbol according to the symbol description specification, and reduces the complexity of creating the user-defined symbol.

Description

Symbol library based on three-dimensional plotting system
Technical Field
The invention relates to a plotting technology, in particular to a symbol library based on a three-dimensional plotting system.
Background
The three-dimensional map system is used as an important component of a geographic information system and is widely applied to various professional fields. In the last two decades, three-dimensional mapping systems have made breakthrough progress in the aspects of label normalization, vectorized drawing, automatic mapping and the like, which is not supported by a symbol library.
In a three-dimensional plotting system, symbols can be divided into point symbols and line symbols. The point symbol is a regular symbol with unchanged basic shape and proportional relation of each part, and has a positioning point for accurately positioning the map position. A line symbol belongs to an irregular symbol whose basic shape changes as the control point changes. Complex line symbols usually need a plurality of control points to meet the drawing requirements, if the control points all depend on input, the complexity of interactive operation is inevitably increased, so an algorithm for intelligently generating the control points by using a few points is the key for drawing the complex line symbols.
The current three-dimensional plotting system usually customizes a corresponding generating algorithm according to each symbol recorded in a symbol library, and professional personnel are required to perform targeted processing every time a symbol is added, so that the realization difficulty of the symbol library is high, the development period is long, and the expansibility is poor. How to simply and efficiently realize the dynamic expansion of the symbol library becomes one of the problems to be solved by each three-dimensional plotting system.
Disclosure of Invention
The invention aims to provide a symbol library based on a three-dimensional plotting system.
The technical solution for realizing the purpose of the invention is as follows: a symbol library based on a three-dimensional plotting system comprises a symbol description unit and a symbol generation unit, wherein:
the symbol description unit comprises a symbol information base, a control point description instruction set and a primitive description instruction set, wherein the symbol information base is used for storing symbol information, and the symbol information comprises a unique identifier ID (identity), a symbol name, a symbol type, an initial attribute and an instruction set index of a symbol; the control point description instruction set is used for storing a generation instruction of a symbolic control point; the primitive description instruction set is used for storing a composition instruction of a symbol primitive;
the symbol generating unit comprises a basic operation module, a basic primitive algorithm library, a vertex generator and a vertex rendering module, wherein the basic operation module is used for providing a data structure and a basic operation function which are commonly used in a three-dimensional space; the basic primitive algorithm library is used for generating interpolation points of basic geometric primitives; the vertex generator is used for reading the symbol information from the symbol information base to calculate a vertex and calling a basic primitive algorithm base to convert the primitive description into continuous interpolation points; and the vertex rendering module is used for receiving the symbol initial attribute and the interpolation point set transmitted by the vertex generator and calling a graph development kit to finish graph rendering.
Compared with the prior art, the invention has the remarkable advantages that: 1) the invention separates the symbol generation algorithm from the symbol description, can conveniently construct the user-defined symbol according to the symbol description specification, and reduces the complexity of creating the user-defined symbol; 2) the invention can conveniently and dynamically expand the symbol library and support the addition of user-defined symbols.
Drawings
FIG. 1 is a schematic diagram of the structure of a symbol library according to the present invention.
FIG. 2 is a flow chart of the creation of custom symbols in the present invention.
Detailed Description
The invention is further illustrated by the following examples in conjunction with the accompanying drawings.
As shown in fig. 1, the symbol library of the present invention includes a symbol description unit and a symbol generation unit, where the symbol description unit includes a symbol information library, a control point description instruction set, and a primitive description instruction set; the symbol generating unit comprises a basic operation module, a basic primitive algorithm library, a vertex generator and a vertex rendering module, wherein:
the symbol information repository may employ a mainstream database to store symbol information including a unique identification ID of a symbol, a symbol name, a symbol type, an initial attribute, and an instruction set index. The symbol type comprises a point symbol and a line symbol, and the instruction set index is used for indexing to a control point description instruction set and a primitive description instruction set corresponding to the symbol.
A control point description instruction set is a set of descriptive instructions that give the control point of the symbolThe method is provided. The descriptive instruction, typically a text defined in xml format or a scripting language using custom rules, is provided with corresponding parsing functions by a vertex generator. For point symbols, the instruction set receives an external coordinate value P, returning a control point coordinate value O, where P ═ O. For line symbols, the instruction set receives an external set of coordinates P 0,P 1...P i(i≥0)Returning to the control point coordinate set O 0,O 1...O j(j≥0)And the control point coordinate set is calculated by an external coordinate set.
Like the control point description instruction set, the primitive description instruction set is also a set of descriptive instructions for giving the primitive descriptions that make up the symbols. For point symbols, the instruction set gives a set of primitive parameter sets param under a local coordinate system 0,param 1...param n(n≥0)Parameter param iThe control point set V of the ith graphic element forming the symbol under the local coordinate system is given 0,V 1...V m(m≥0)And a primitive type T. For a line symbol, the instruction set gives a set of primitive descriptions desc in three-dimensional geographic space 0,desc 1...desc r(r≥0)Description of desc iGiven a set of primitive control points O p,…O q(p≥0,q≤j,p≤q)And primitive type T, where O p,…O q(p≥0,q≤j,p≤q)Is a set of control points O 0,O 1...O j(j≥0)A subset of (a).
The basic operation module provides a data structure and a basic operation function which are commonly used in a three-dimensional space for a basic primitive algorithm library. Wherein the data structures include points, vectors, matrices, and the like; the basic operation functions include coordinate conversion, vector operation, matrix operation, length calculation, area calculation, and the like.
The base primitive algorithm library is used for generating interpolation points of the base geometric primitives. The base primitives include points, polylines, circles, ellipses, bezier curves, spline curves, and the like.
The vertex generator is an intermediate module which is connected with the symbol description unit, the basic primitive algorithm library and the vertex rendering module. Vertex generator headThe symbol information Info is read from the symbol information base and then the vertex calculation is performed. For point symbols, a vertex generator analyzes the description instruction to obtain a control point O and a group of primitive descriptions desc under a local coordinate system 0,desc 1...desc r(r≥0). For line symbols, the vertex generator can directly obtain a group of primitive descriptions desc under the three-dimensional geographic space by analyzing the description instruction 0,desc 1...desc r(r≥0). Finally, the vertex generator calls a basic primitive algorithm library to describe the primitives into desc iConversion to successive interpolation points GPs iTo obtain GPs 0,GPs 1...GPs r(r≥0)
And the vertex rendering module calls a graph development kit used by the three-dimensional plotting system to complete graph rendering, wherein the commonly used graph development kit comprises osg, osgEarth and the like. The vertex rendering module receives the symbol initial attribute Attrs and the interpolation point set GPs transmitted by the vertex generator 0,GPs 1...GPs r(r≥0)The complete symbol is then rendered on the screen.
In order to realize the expansion function of the symbol library, the symbol library also comprises a symbol library expansion module which provides a visual interactive interface comprising a professional mode and a simple mode, as shown in fig. 2.
The professional mode allows a user to directly import a symbol file in a standard format through a file selector and supports batch import.
The compact mode provides a lead module and a preview module. The guide module comprises a standard format specification, a basic primitive description instruction comparison table and a simple symbol example. The preview module comprises a symbol editor and a preview canvas, the symbol editor provides a storage function to import the user-defined symbols, the preview canvas collects a user click coordinate set SPs by monitoring mouse events, and the SPs are used for generating symbol control points. The user can complete the creation of the custom symbol on the symbol editor, then initiate the preview, and view the symbol effects by mouse interaction with the preview canvas.
The symbol library extension module further comprises a feasibility verification module which conducts feasibility verification before symbol import. If abnormity occurs in the verification, giving an error prompt; if the verification is passed, import is started.
Examples
In order to verify the effectiveness of the scheme of the invention, a simulation experiment is carried out, taking a point symbol 'port' as an example, and a specific process from receiving user input to finishing rendering of a symbol library is completely explained.
Step 1, a user initiates a request to a symbol library through a unique identifier 10200 of a point symbol 'harbor', a three-dimensional mapping system obtains geographic coordinates GeoP ═ 122 and 22 clicked by the user by monitoring a mouse event, and the symbol identifier and the clicked coordinates are transmitted into a vertex generator as parameters.
And 2, the vertex generator queries the symbol information base according to the unique identifier of the symbol to obtain basic information such as the symbol type, the initial attribute, the instruction set index and the like.
Step 3, the vertex generator obtains a control point description instruction and a primitive description instruction through the instruction set index, analyzes the control point description instruction to obtain a point symbol control point GeoP *(GeoP *GeoP). Analyzing the graphic element description instruction of the 'harbor' symbol to obtain a graphic element set Graph under a local coordinate system 0,…,Graph 2The "harbor" symbol is composed of three primitives, which are: line segment, circular arc. Under the local coordinate system, the two end points of the first line segment are (2,6.6) and (-2, 6.6); the two end points of the second line segment are (0,8.2) and (0, 0); the center point of the circular arc and the two end points of the circular arc are (0,4), (-4,4) and (4, 4). The vertex generator transmits the primitive type and the primitive control point of each primitive into a basic primitive algorithm library to obtain GraphPs 0,…,GraphPs 2Wherein GraphPs i(0. ltoreq. i.ltoreq.2) is a set of consecutive interpolation points.
And 4, the vertex generator transmits the symbol control points, the symbol interpolation points and the symbol initial attributes into a vertex rendering module, and the vertex rendering module maps the point symbols under the local coordinate system to the point symbol control points under the three-dimensional geographic space and completes symbol rendering.

Claims (10)

1. A symbol library based on a three-dimensional plotting system is characterized by comprising a symbol description unit and a symbol generation unit, wherein:
the symbol description unit comprises a symbol information base, a control point description instruction set and a primitive description instruction set, wherein the symbol information base is used for storing symbol information, and the symbol information comprises a unique identifier ID (identity), a symbol name, a symbol type, an initial attribute and an instruction set index of a symbol; the control point description instruction set is used for storing a generation instruction of a symbolic control point; the primitive description instruction set is used for storing a composition instruction of a symbol primitive;
the symbol generating unit comprises a basic operation module, a basic primitive algorithm library, a vertex generator and a vertex rendering module, wherein the basic operation module is used for providing a data structure and a basic operation function which are commonly used in a three-dimensional space; the basic primitive algorithm library is used for generating interpolation points of basic geometric primitives; the vertex generator is used for reading the symbol information from the symbol information base to calculate a vertex and calling a basic primitive algorithm base to convert the primitive description into continuous interpolation points; and the vertex rendering module is used for receiving the symbol initial attribute and the interpolation point set transmitted by the vertex generator and calling a graph development kit to finish graph rendering.
2. The symbol library of claim 1, wherein the symbol information library, symbol types include point symbols and line symbols, and the instruction set index is used to index to the control point description instruction set and the primitive description instruction set corresponding to the symbol.
3. The three-dimensional plot system based symbol library of claim 1, wherein the control points describe a command set that receives an external coordinate value P for a point symbol, returning a control point coordinate value O, where P ═ O;
for line symbols, the instruction set receives an external set of coordinates P 0,P 1...P i(i≥0)Returning to the control point coordinate set O 0,O 1...O j(j≥0)The control point coordinates are calculated from external coordinates.
4. The three-dimensional plot system-based symbol library of claim 1, wherein the primitive describes an instruction set that gives a set of primitive parameter sets param in a local coordinate system for point symbols 0,param 1…param n(n≥0)Parameter param iThe control point set V of the ith graphic element forming the symbol under the local coordinate system is given 0,V 1…V m(m≥0)And a primitive type T;
for a line symbol, the instruction set gives a set of primitive descriptions desc in three-dimensional geographic space 0,desc 1…desc r(r≥0)Description of desc iGiven a set of primitive control points O p,...O q(p≥0,q≤j,p≤q)And primitive type T, where O p,...O q(p≥0,q≤j,p≤q)Is a set of control points O 0,O 1...O j(j≥0)A subset of (a).
5. The symbol library based on the three-dimensional plotting system of claim 1, wherein the basic operation module, the data structure comprises points, vectors and matrixes; the basic operation function comprises coordinate conversion, vector operation, matrix operation, length calculation and area calculation.
6. The three-dimensional plotting system-based symbol library of claim 1, wherein the basic primitive algorithm library and the basic geometric primitives comprise points, polylines, circles, ellipses, Bezier curves and spline curves.
7. The three-dimensional plot system-based symbol library of claim 1, wherein said vertex generator, for point symbols, resolves the description command to obtain a control point O and a primitive description desc under a set of local coordinate systems 0,desc 1...desc r(r≥0)
For line symbols, a vertex generator analyzes a description instruction to directly obtain a group of primitive descriptions des in a three-dimensional geographic spacec 0,desc 1...desc r(r≥0)
8. The three-dimensional plot system-based symbol library of claim 1, wherein the vertex rendering module, the invoked graphics development kit comprises osg and osgEarth.
9. The three-dimensional plot system-based symbol library of claim 1, further comprising a symbol library extension module for providing a visual interactive interface for symbol library extension, comprising a professional mode and a compact mode, wherein:
the professional mode allows a user to directly import symbol files in a standard format through a file selector and supports batch import;
the simple mode is used for providing a guide module and a preview module, the guide module comprises a standard format specification, a basic primitive description instruction comparison table and a simple symbol example, the preview module comprises a symbol editor and a preview canvas, the symbol editor is used for providing making and storing functions to import custom symbols, the preview canvas collects a user click coordinate set SPs by monitoring mouse events and generates a symbol control point for viewing.
10. The symbol library based on the three-dimensional plotting system of claim 9, wherein the symbol library extension module further comprises a feasibility check module for performing feasibility check before symbol import and giving an error prompt if an abnormality occurs in the check; if the verification is passed, import is started.
CN201910820101.6A 2019-08-31 2019-08-31 Symbol library based on three-dimensional plotting system Active CN110781324B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910820101.6A CN110781324B (en) 2019-08-31 2019-08-31 Symbol library based on three-dimensional plotting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910820101.6A CN110781324B (en) 2019-08-31 2019-08-31 Symbol library based on three-dimensional plotting system

Publications (2)

Publication Number Publication Date
CN110781324A true CN110781324A (en) 2020-02-11
CN110781324B CN110781324B (en) 2022-07-19

Family

ID=69383340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910820101.6A Active CN110781324B (en) 2019-08-31 2019-08-31 Symbol library based on three-dimensional plotting system

Country Status (1)

Country Link
CN (1) CN110781324B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8274524B1 (en) * 2011-09-28 2012-09-25 Google Inc. Map rendering using interpolation of style parameters across zoom levels
CN106844519A (en) * 2016-12-29 2017-06-13 中国科学院电子学研究所苏州研究院 Remote sensing special topic product method for visualizing based on three-dimensional digital earth
CN107145655A (en) * 2017-04-25 2017-09-08 南京南瑞集团公司 The method for setting up the grid equipment vector graphical element sign mould comprising topology information
CN108665516A (en) * 2018-04-20 2018-10-16 中国人民解放军92859部队 The conversion method of S-52 lines symbol and SVG symbols in electronic nautical chart
WO2018198950A1 (en) * 2017-04-28 2018-11-01 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Transmission device, transmission method, reception device, and reception method
CN108733442A (en) * 2017-04-18 2018-11-02 西安融成科技有限公司 A kind of electronic chart escape character structure system based on vector symbol description language
CN109685901A (en) * 2018-12-10 2019-04-26 西北工业大学 A kind of military symbol mark and draw in dynamic arrow mark method for drafting
US10303907B1 (en) * 2017-11-29 2019-05-28 Dell Products L.P. Decoding parts with encoded geometry for retrieving passively represented information

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8274524B1 (en) * 2011-09-28 2012-09-25 Google Inc. Map rendering using interpolation of style parameters across zoom levels
CN106844519A (en) * 2016-12-29 2017-06-13 中国科学院电子学研究所苏州研究院 Remote sensing special topic product method for visualizing based on three-dimensional digital earth
CN108733442A (en) * 2017-04-18 2018-11-02 西安融成科技有限公司 A kind of electronic chart escape character structure system based on vector symbol description language
CN107145655A (en) * 2017-04-25 2017-09-08 南京南瑞集团公司 The method for setting up the grid equipment vector graphical element sign mould comprising topology information
WO2018198950A1 (en) * 2017-04-28 2018-11-01 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Transmission device, transmission method, reception device, and reception method
US10303907B1 (en) * 2017-11-29 2019-05-28 Dell Products L.P. Decoding parts with encoded geometry for retrieving passively represented information
CN108665516A (en) * 2018-04-20 2018-10-16 中国人民解放军92859部队 The conversion method of S-52 lines symbol and SVG symbols in electronic nautical chart
CN109685901A (en) * 2018-12-10 2019-04-26 西北工业大学 A kind of military symbol mark and draw in dynamic arrow mark method for drafting

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WEI YJ: "Design on Geographical Muti-Scale 3D Symbol Library", 《ADVANCED MATERIALS RESEARCH》 *
朱声荣: "地质二维矢量点符号的自动三维建模", 《测绘科学》 *

Also Published As

Publication number Publication date
CN110781324B (en) 2022-07-19

Similar Documents

Publication Publication Date Title
CN105843945A (en) Report generation method and system
JP2017201547A (en) Automatic report generation method
CN111221522A (en) Automatic code generation method of front-end and back-end separation architecture for government intensive application development
JP3038521B2 (en) Product drawing creation device
CN111078094B (en) Distributed machine learning visualization device
CN110909439A (en) AR-based assembly method and device and terminal
CN108108194A (en) User interface edit methods and user interface editing machine
CN111162520A (en) Power grid mapping method and system
CN113569308A (en) Safety monitoring forward three-dimensional design symbolization drawing method based on 3DE platform
CN108089858A (en) A kind of method and device for creating visualization interface
KR101252050B1 (en) System and method for converting cad file, and computer readable recording medium having program to implement the method
CN110781324B (en) Symbol library based on three-dimensional plotting system
CN109815288A (en) A kind of data visualization method and system
CN114626833A (en) Construction standard process supervision method, device, equipment and medium
JP3488041B2 (en) Deformation map data compression method, deformation map data compression device, and recording medium storing deformation map data compression program
US20230109414A1 (en) Process Graphics Generator for a Zoomable Diagram Representing an Industrial Process Plant
CN112417061B (en) Three-dimensional dynamic plotting display method based on time drive
CN115049804B (en) Editing method, device, equipment and medium for virtual scene
CN108334564B (en) Multi-theme chart display method based on space object
CN103092818A (en) Thumbnail generation system of report table and thumbnail generation method
CN116540983A (en) Logic configuration design method, device and platform
JPH01262149A (en) Document output device having dot-character font forming function
CN117786026A (en) Situation plotting method and system for two-dimensional map
CN115658720A (en) Method and system for processing custom report
CN115730106A (en) Vector data processing method based on XML configuration

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant