CN100386723C - GIS universal symbol system based on virtual machine and construction method thereof - Google Patents

GIS universal symbol system based on virtual machine and construction method thereof Download PDF

Info

Publication number
CN100386723C
CN100386723C CNB2006100188730A CN200610018873A CN100386723C CN 100386723 C CN100386723 C CN 100386723C CN B2006100188730 A CNB2006100188730 A CN B2006100188730A CN 200610018873 A CN200610018873 A CN 200610018873A CN 100386723 C CN100386723 C CN 100386723C
Authority
CN
China
Prior art keywords
symbol
virtual machine
gis
platform
symbolic library
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.)
Expired - Fee Related
Application number
CNB2006100188730A
Other languages
Chinese (zh)
Other versions
CN1838073A (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.)
Wuhan University WHU
Original Assignee
Wuhan University WHU
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 Wuhan University WHU filed Critical Wuhan University WHU
Priority to CNB2006100188730A priority Critical patent/CN100386723C/en
Publication of CN1838073A publication Critical patent/CN1838073A/en
Application granted granted Critical
Publication of CN100386723C publication Critical patent/CN100386723C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a GIS universal symbol system based on a virtual machine, which comprises a symbol language, a symbol compiler, symbol integrated development environment and a symbol virtual machine, and a GIS is a geographical information system. The present invention also relates to a method for building a GIS universal symbol based on the virtual machine, the method shields the particular difference of GIS platforms by utilizing the symbol virtual machine and provides a uniform interface for the realization of a symbol library, and the symbol library can be universal on different GIS platforms. The present invention has the advantage that the particular difference of the GIS platforms is shielded by utilizing the symbol virtual machine, the uniform interface is provided for the realization of the symbol library, and therefore, the same symbol library can be universal on different GIS platforms.

Description

GIS universal symbol system and construction method thereof based on virtual machine
Technical field
The present invention relates to message area, particularly a kind of GIS universal symbol system and construction method thereof based on virtual machine.
Background technology
At present, various Geographic Information System (GIS) software platform on the market has all been realized map symbol separately, but these map symbols do not have versatility just at specific platform design, and the symbol at a kind of platform design can not use on another kind of platform often.And design a cover symbol is a job of wasting time and energy very much, thereby is badly in need of a kind of general notation.
Summary of the invention
Technical matters to be solved by this invention is: a kind of GIS universal symbol system and construction method thereof based on virtual machine is provided, and it is applicable to the computer software relevant with GIS and electronic chart.
The present invention solves its technical matters and adopts following technical scheme:
GIS universal symbol system based on virtual machine provided by the invention, it comprises symbol compiler, glossary of symbols IDE and symbol virtual machine, GIS is a geography information.
The invention provides a kind of method that makes up the Geographic Information System general symbol(s) based on virtual machine, that is: utilize the symbol virtual machine to shield the difference of concrete GIS platform, for the realization of symbolic library provides unified interface, realize symbolic library method in common on different GIS platforms.
Advantage of the present invention is: shielded the otherness of concrete GIS platform by the symbol virtual machine, for the implementor of symbolic library provides unified interface, thereby realized same symbolic library general on different GIS platforms.
Embodiment
Provided by the invention based on virtual machine structure GIS system of universal symbol, it comprises symbol compiler, glossary of symbols IDE and symbol virtual machine.Wherein:
Symbol compiler: being compiled into the object code that can on the symbol virtual machine, move by being specifically designed to the source program that the programming language of writing symbol writes, this object code is exactly to have realized general symbolic library on the GIS platform of symbol virtual machine at all, describe for convenient, below will " be specifically designed to the programming language of writing symbol " and abbreviate vmSymbol as.
Glossary of symbols IDE: the integrated programming environment that is meant vmSymbol, comprise editing machine, compiler, grammer color separation instrument with source program editing function, location of mistake instrument and patterned symbol preview instrument, the user can directly carry out the preview of symbolic library editor, compiling, debug and symbol in this integration environment, and generates final symbolic library.
Symbol virtual machine: when the GIS platform software need carry out symbolism to map, it just gives the task of symbolism the symbol virtual machine at this GIS platform, the symbol virtual machine then carries out the symbolism of map datum by the instruction in the DO symbol storehouse, so just shielded the otherness of concrete GIS platform by the symbol virtual machine, for the implementor of symbolic library provides unified interface, thereby realized same symbolic library general on different GIS platforms, for example: can (comprise MapObject at ArcGIS, ArcObject, ArcEngine), 2.0 3 GIS Platform Implementation of GeoStar and CMICS the symbol virtual machine.ArcGIS is the GIS Software Development Platform of ESRI (the Environmental Systems Research Institute Inc of U.S. environment system research institute) exploitation, GeoStar is the GIS software platform of Wuhan military very lucky information engineering technology difficult to understand company limited exploitation, and CMICS is the urban managing information acquiring system platform of the common exploitation of the military very lucky information engineering technology company limited difficult to understand in Wuhan University and Wuhan.
The present invention also provides the method that makes up the Geographic Information System general symbol(s) based on virtual machine, that is: utilize the symbol virtual machine to shield the difference of concrete GIS platform, for the realization of symbolic library provides unified interface, realize symbolic library method in common on different GIS platforms, this method adopts the following step
(1) in the glossary of symbols IDE, carry out the writing of symbolic library source program, compile, debugging and preview, and generate symbolic library.
(2) GIS software loads the symbolism virtual machine at this GIS platform in initialization procedure.
(3) required symbolic library is also loaded in symbol virtual machine initialization oneself as required.
(4) when GIS software need carry out symbolism to data, it delivered the symbol virtual machine with data, is gone the task of DO symbolization by virtual machine.
(5) the symbol virtual machine carries out symbolism by the symbolic instruction in the DO symbol storehouse to data.
The invention will be further described below in conjunction with the enforcement of general symbol(s) in the Wuhan urban grid management system.
Have two places to use electronic chart in the urban grid management system of Wuhan: one is the information management system of moving on PC, and it carries out map with MapObject and shows; Another is the information acquisition system that operates on the Smartphone (smart mobile phone), and it carries out map with the embedding generalized information system (CMICS 2.0) of our independent development and shows.They all use the same symbolic library of making based on the notation of virtual machine that map datum is carried out symbolism, and have reached consistent effect; Different is, a usefulness be symbol virtual machine at MapObject, a usefulness be symbol virtual machine at CMICS 2.0.During concrete enforcement, in the glossary of symbols IDE, carry out earlier writing of symbolic library source program, and compiling generates needed symbolic library; Load symbolic library at the different virtual machine of different platform invokes then and carry out symbolism.
For virtual machine, the virtual machine of different GIS platforms is different, but the core of all virtual machines is identical, its core is exactly to take out corresponding instruction and carry out one by one from symbolic library, and different is each concrete GIS platform may be different to the implementation of the method for calling of virtual machine and drawing for order.Therefore, we can realize a public core virtual machine earlier, and its function is exactly to load symbolic library and can carry out wherein instruction, and core virtual machine provides following 5 function interfaces, are expressed as follows with the form of C language:
①int?getSymbolCount(int?type)
// be used for obtaining the number of symbolic library symbol, wherein type can equal 0,1,2 respectively expression obtain the number of point, line, surface symbol.
②bool?getSymbolName(int?type,int?index,char?name[],int?length)
// being used to obtain the title of symbol, type is a Symbol Type, and index is the index of the symbol in the symbolic library, and name deposits the name of the symbol that returns, and length is the length of name.
③bool?drawMarkerSymbol(int?index,int?x,int?y,int?size,COLOR?lineColor,COLOR?fillColor,int?lineWidth,float?angle)
// being used to paint point symbol, index is the index of point symbol, x, y is the position of point symbol, and size is the size of point symbol, and lineColor and fillColor are respectively the line and the fill color of symbol point, lineWidth is the width of line, and angle is the angle of point symbol rotation.
④bool?drawLineSymbol(int?index,POINT?points[],int?count,COLOR?color,intlineWidth)
// being used for the line drawing symbol, index is the index of line symbol, and points is the coordinate of line symbol, and count is the number of coordinate, and color is the color of line, lineWidth is a live width.
⑤bool?drawFillSymbol(int?index,POINT?points[],int?partCounts[],int?numParts,COLOR?lineColor,COLOR?fillColor,int?lineWidth)
// be used to paint the face symbol, index is the index of face symbol, points is the coordinate of face symbol, partCounts and numParts further make an explanation to coordinate, be used for illustrating that this face symbol is made up of several parts, what points are every part have, and lineColor and fillColor are respectively line and fill color, and lineWidth is a live width.
All all realize symbolism to map datum by these 5 function interfaces that call core virtual machine at the virtual machine of concrete GIS platform; The virtual machine then left at concrete GIS platform as call back function when carrying out drawing for order (as moveto, lineto, polygon etc.) of core virtual machine goes to realize in addition.Therefore when the virtual machine of realizing at concrete GIS platform, solve two problems, the one, how to call core virtual machine, the 2nd, how to realize the call back function of drawing for order.
Embodiment in conjunction with two virtual machines in the Wuhan urban grid management system is described further again:
Embodiment 1:
The enforcement of MapObject symbol virtual machine: when realizing the symbol virtual machine of MapObject, since MapObject allow the user by COM from define symbol, as long as we realize a com component that meets MapObject symbol interface, call core virtual machine in this com component the inside, just solve problem how to call core virtual machine.
For the call back function of realizing drawing for order,,, we just can realize these call back functions on the HDC of Windows as long as calling the GDI function of Windows because MapObject draws.
Embodiment 2:
The enforcement of CMICS 2.0 symbol virtual machines: because CMICS 2.0 is independent developments, its symbolism work is exactly directly to call core virtual machine to realize, thereby just very directly perceived to how calling core virtual machine; For drawing for order also is that the GDI that calls Windows realizes.
The foregoing description is limitation of the present invention not, and it is only for reference, is used for further understanding of the present invention.

Claims (3)

1. a GIS universal symbol system is characterized in that making up the GIS system of universal symbol based on virtual machine, comprises symbol compiler, glossary of symbols IDE and symbol virtual machine, and GIS is a Geographic Information System,
Symbol compiler: being compiled into the object code that can on the symbol virtual machine, move by being specifically designed to the source program that the programming language of writing symbol writes, this object code is exactly to have realized general symbolic library on the GIS platform of symbol virtual machine at all, describe for convenient, below will " be specifically designed to the programming language of writing symbol " and abbreviate vmSymbol as
Glossary of symbols IDE: the integrated programming environment that is meant vmSymbol, comprise editing machine, compiler, grammer color separation instrument with source program editing function, location of mistake instrument and patterned symbol preview instrument, the user can directly carry out the preview of symbolic library editor, compiling, debug and symbol in this integration environment, and generate final symbolic library
Symbol virtual machine: when the GIS platform software need carry out symbolism to map, it just gives the task of symbolism the symbol virtual machine at this GIS platform, the symbol virtual machine then carries out the symbolism of map datum by the instruction in the DO symbol storehouse, so just shielded the otherness of concrete GIS platform by the symbol virtual machine, for the implementor of symbolic library provides unified interface, thereby realized same symbolic library general on different GIS platforms.
2. GIS universal symbol system according to claim 1 is characterized in that at ArcGIS, GeoStar and 2.0 3 GIS Platform Implementation of CMICS symbol virtual machine; Wherein, ArcGIS is the GIS Software Development Platform of U.S. environment system research institute exploitation, GeoStar is the GIS software platform of Wuhan military very lucky information engineering technology difficult to understand company limited exploitation, and CMICS is the urban managing information acquiring system platform of the common exploitation of the military very lucky information engineering technology company limited difficult to understand in Wuhan University and Wuhan.
3. the construction method of a GIS universal symbol system, it is characterized in that a kind of method that makes up the Geographic Information System general symbol(s) based on virtual machine, that is: utilize the symbol virtual machine to shield the difference of concrete GIS platform, for the realization of symbolic library provides unified interface, realize symbolic library method in common on different GIS platforms, this method adopts the following step
(1) in the glossary of symbols IDE, carry out the writing of symbolic library source program, compile, debugging and preview, and generate symbolic library,
(2) GIS software loads the symbol virtual machine at this GIS platform in initialization procedure,
(3) required symbolic library is also loaded in symbol virtual machine initialization oneself as required,
(4) when GIS software need carry out symbolism to data, it delivered the symbol virtual machine with data, went the task of DO symbolization by virtual machine,
(5) the symbol virtual machine carries out symbolism by the symbolic instruction in the DO symbol storehouse to data.
CNB2006100188730A 2006-04-25 2006-04-25 GIS universal symbol system based on virtual machine and construction method thereof Expired - Fee Related CN100386723C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100188730A CN100386723C (en) 2006-04-25 2006-04-25 GIS universal symbol system based on virtual machine and construction method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100188730A CN100386723C (en) 2006-04-25 2006-04-25 GIS universal symbol system based on virtual machine and construction method thereof

Publications (2)

Publication Number Publication Date
CN1838073A CN1838073A (en) 2006-09-27
CN100386723C true CN100386723C (en) 2008-05-07

Family

ID=37015480

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100188730A Expired - Fee Related CN100386723C (en) 2006-04-25 2006-04-25 GIS universal symbol system based on virtual machine and construction method thereof

Country Status (1)

Country Link
CN (1) CN100386723C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402529A (en) * 2010-09-13 2012-04-04 方正国际软件有限公司 Map plotting control method and device
CN106201444A (en) * 2015-04-29 2016-12-07 南京南瑞继保电气有限公司 A kind of generic Extensible programmed symbol modeling method
CN106384560B (en) * 2016-09-12 2017-12-15 湖南新航动力信息科技有限公司 icon processing method and system based on map
CN106568377B (en) * 2016-11-07 2019-07-23 武汉大学 Tectonic geodetic survey drawing methods and system based on ArcEngine
CN109931933B (en) * 2017-12-15 2022-10-28 中航(成都)无人机系统股份有限公司 Task planning and navigation drawing method based on GIS platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6104410A (en) * 1997-01-17 2000-08-15 Shui-Ying Wong Method and apparatus for displaying stacked symbols to create a multi-dimensional view
JP2003099792A (en) * 2001-09-20 2003-04-04 Hitachi Information Systems Ltd Graphic symbol formation method for geographical information system, graphic symbol formation program, and geographic information system
CN1480892A (en) * 2002-10-10 2004-03-10 中国地质调查局发展研究中心 Method for filling digit on map utilized in regional geological survey

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6104410A (en) * 1997-01-17 2000-08-15 Shui-Ying Wong Method and apparatus for displaying stacked symbols to create a multi-dimensional view
JP2003099792A (en) * 2001-09-20 2003-04-04 Hitachi Information Systems Ltd Graphic symbol formation method for geographical information system, graphic symbol formation program, and geographic information system
CN1480892A (en) * 2002-10-10 2004-03-10 中国地质调查局发展研究中心 Method for filling digit on map utilized in regional geological survey

Non-Patent Citations (8)

* Cited by examiner, † Cited by third party
Title
地理信息系统中一种全面的符号管理方案. 王永乾,田原,刘宇.测绘学院学报,第18卷第1期. 2001
地理信息系统中一种全面的符号管理方案. 王永乾,田原,刘宇.测绘学院学报,第18卷第1期. 2001 *
基于.NET 的GIS 地图符号库的设计和实现. 毋丽红,邓曙光.工程地球物理学报,第2卷第6期. 2005
基于.NET 的GIS 地图符号库的设计和实现. 毋丽红,邓曙光.工程地球物理学报,第2卷第6期. 2005 *
基于MSDT引擎的地图符号互操作的研究与应用. 杨建军,17-51,南京师范大学硕士学位论文. 2004
基于MSDT引擎的地图符号互操作的研究与应用. 杨建军,17-51,南京师范大学硕士学位论文. 2004 *
基于通用一体化符号编辑器的符号共享模式研究. 陶陶,闾国年,李艳娜.地理与地理信息科学,第21卷第4期. 2005
基于通用一体化符号编辑器的符号共享模式研究. 陶陶,闾国年,李艳娜.地理与地理信息科学,第21卷第4期. 2005 *

Also Published As

Publication number Publication date
CN1838073A (en) 2006-09-27

Similar Documents

Publication Publication Date Title
CN100386723C (en) GIS universal symbol system based on virtual machine and construction method thereof
Charkaoui et al. Cross-platform mobile development approaches
CN102622476B (en) CAD (Computer Aided Design) drawing integration system for field of building amount of computation
Panas et al. Communicating software architecture using a unified single-view visualization
CN106777302B (en) Method and device for converting space geographic coordinates
CN109196476B (en) Seamless high performance interoperability between different types of graphs sharing a garbage collector
CN102096593A (en) Flex technology-based Web end service flow graphical editing framework system and method
CN102156639B (en) Method for realizing embedded spectrum-analyzer display interface based on Java
CN103092759A (en) Code dynamic property parser in embedded environment
CN105701854A (en) 3D rendering method and device and engine
CN102710833B (en) Mobile phone test case and automatic generation method thereof
CN104407852A (en) Code isolation-based construction method for embedded software and calling method for embedded software
CN102750177A (en) Script realization method using compiler
CN102779036B (en) For the Software tool of automatic technology
CN102446164A (en) Analytic method, device and operation system of report formula
CN110990018B (en) Compiling method and compiling system of embedded system
CN100492317C (en) Method for automatically adapting to different operation environment and executing system debugging for computer
Akin et al. Object-oriented Fortran 90 P-adaptive finite element method
CN106598701A (en) Geographic information system standard symbolic system based on virtual machine and creation method thereof
CN104461905A (en) Method and system for debugging intelligent card virtual machine, API bank and upper layer application at same time
CN108845791B (en) Application program code development processing method and device, readable storage medium and terminal
CN105183491A (en) Cross-platform desktop GIS and starting method thereof
CN101593257B (en) System and method for protecting software based on.Net virtual machine
CN102402478A (en) Software testing method and device
CN105335149A (en) Implementation method of environmentally-friendly monitoring equipment system and graphical configuration platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080507

Termination date: 20160425