[go: up one dir, main page]

CN101807305A - Path-based Linear Map Symbol Model and Sharing Method Based on the Model - Google Patents

Path-based Linear Map Symbol Model and Sharing Method Based on the Model Download PDF

Info

Publication number
CN101807305A
CN101807305A CN201019026030A CN201019026030A CN101807305A CN 101807305 A CN101807305 A CN 101807305A CN 201019026030 A CN201019026030 A CN 201019026030A CN 201019026030 A CN201019026030 A CN 201019026030A CN 101807305 A CN101807305 A CN 101807305A
Authority
CN
China
Prior art keywords
symbol
linear map
map symbol
linear
model
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.)
Pending
Application number
CN201019026030A
Other languages
Chinese (zh)
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.)
Nanjing Normal University
Original Assignee
Nanjing Normal University
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 Nanjing Normal University filed Critical Nanjing Normal University
Priority to CN201019026030A priority Critical patent/CN101807305A/en
Publication of CN101807305A publication Critical patent/CN101807305A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Instructional Devices (AREA)

Abstract

本发明提供了基于路径的线状地图符号模型,该模型包括线状地图符号数据模型与线状地图符号渲染两部分。本发明还提供了基于该模型的线状地图符号共享方法,分为数据共享与功能共享,包括线状地图符号同化、线状地图符号XML交换、线状符号监测与替换。本发明的优点是:线状地图符号数据与线状地图符号渲染分离,可以同化目前CAD、GIS以及专业图形软件制作的线状符号;支持复杂线状符号、卡通符号的设计,支持纹理填充;可以将基于路径的线状符号及其渲染扩充到对应的GIS软件平台之上。从而实现了GIS、CAD、专业图形软件间的线状符号共享,为地图符号库的“一库多用”提供了一条途径。

Figure 201019026030

The invention provides a path-based linear map symbol model, which includes two parts: a linear map symbol data model and a linear map symbol rendering. The invention also provides a linear map symbol sharing method based on the model, which is divided into data sharing and function sharing, including linear map symbol assimilation, linear map symbol XML exchange, linear symbol monitoring and replacement. The advantages of the present invention are: the linear map symbol data is separated from the linear map symbol rendering, and can assimilate the linear symbols produced by current CAD, GIS and professional graphics software; it supports the design of complex linear symbols and cartoon symbols, and supports texture filling; The path-based line symbol and its rendering can be extended to the corresponding GIS software platform. Thus, the sharing of linear symbols among GIS, CAD, and professional graphics software is realized, and a way for "one library with multiple uses" of the map symbol library is provided.

Figure 201019026030

Description

Based on the linear map symbol model in path and based on the shared method of this model
Technical field
The present invention relates to Geographic Information System (GIS), computer-aided design (CAD) (CAD), computer mapping (CAC), fields such as navigation map, cell phone map, electronic chart are particularly based on the linear map symbol model in path and based on the shared method of this model.
Background technology
Map symbol is the visual main tool of spatial data, and its left brain by pictorial stimulus people pictograph, understanding produces imago, transmits the information such as feature, the regularity of distribution of geographical entity.Map symbol and symbolic library are one of gordian techniquies of GIS, map making and all kinds of electronic chart softwares.But because the difference and the symbolic information of symbol data model, storage mode and drafting strategy are different with the spatial data interrelational form between the different system, symbolic information is not shared synchronously when causing geodata to be shared; During interoperability of system, symbolic information is lost, is out of shape.In order to realize sharing of dot-form map symbol, people have attempted sign form conversion, TrueType font, symbol corresponding tables, multi-platform several different methods such as play up.But, because the difference of different system on map symbol data model, mode of composition root causes these methods all can not fundamentally solve the problem that map symbol is shared.Styled Layer Descriptor (SLD) standard that OGC formulates is attempted the data model of schematic symbol uniformly, and still, " SLD " primitive types is single, is not approved widely.
For addressing the above problem, need a kind of new method, can assimilate the GIS of current main-stream, the linear map symbol in the CAD software, share same symbolic library.
Summary of the invention
The objective of the invention is to share the defective that the aspect exists, the linear map symbol model based on the path is provided, as the shared basis of the line symbol between GIS, CAD, professional graphics software at existing linear map symbol.Another goal of the invention of the present invention provides a kind of shared method of linear map symbol, at same symbolic library, uses for different CAD and GIS platform respectively, realizes sharing and play up fast linear map symbol.
The present invention for a technical scheme that solves its technical matters employing is:
Based on the linear map symbol model (hereinafter to be referred as VGE line symbol model) in path, this model is made up of linear map symbol data model and linear map symbol renderer.
Described linear map symbol data model is made of stroke and decoration; Described stroke comprises path and index thereof, and stroke can be provided with attributes such as color, texture, width, vertical misalignment and drawing order, and simultaneously, stroke comprises the configuration mode of line, and the actual situation pattern and the lateral excursion of line can be set in the configuration mode; Described decoration is meant the online top point symbol of configuration, comprises attributes such as configuration rule and configuration parameter.In addition, complicated line symbol can utilize script that it is designed by interface, also can be converted into area symbol by profile transformation.
Described linear map symbol renderer is made up of stroke process device, filling processor and three interfaces of path conversion.
The technical scheme that realizes another goal of the invention of the present invention is: the linear map symbol based on VGE line symbol model is shared method, comprises line symbol data sharing method and function sharing method.
Described data sharing method comprises linear map symbol assimilation and linear map symbol XML exchange.Described linear map symbol assimilation is based on VGE line symbol model, assimilates linear map symbol in present main flow CAD, the GIS software platform.Described linear map symbol XML exchange is that the line symbol data based on the VGE symbolic model are carried out the symbol exchange, shared by the XML form, comprises line symbol data that import the commutative form of XML and the line symbol data that derive the commutative form of XML.
Described function sharing method comprises linear map symbol monitoring and linear map symbol replacement, can be divided into dual mode: a kind of in operating system during the corresponding GIS running software of monitoring line symbol play up the drawing for order that calls, and it is replaced with the instruction of playing up of VGE linear map symbol; Another kind is that mode with com is with the VGE linear map symbol and play up and extend on the corresponding GIS platform.
Advantage of the present invention is: the linear map symbol data are separated with playing up, and aspect symbol data, can assimilate the line symbol of making in main flow CAD, GIS, the professional graphics software, support the design of complicated line symbol, cartoon characters, support texture to fill; Aspect symbol plays up, can and play up the VGE line symbol and extend on the corresponding GIS software platform, thereby realize that the line symbol between GIS, CAD, professional graphics software shares, realize " use more in a storehouse " in linear map symbol storehouse.
Description of drawings
Fig. 1 embodiment of the invention 1 linear map symbol data model formula synoptic diagram
Fig. 2 embodiment of the invention 2 is shared the method synoptic diagram based on the linear map symbol in path
Embodiment
Below in conjunction with drawings and Examples the present invention is described in further details.
Embodiment 1
VGE line symbol model provided by the invention, model are played up the two large divisions by linear map symbol data model and map symbol and are formed.Wherein:
As shown in Figure 1, constitute by stroke and decoration.Stroke comprises path and index thereof, and stroke can be provided with attributes such as color, texture, width, vertical misalignment and drawing order, and simultaneously, stroke comprises the configuration mode of line, and the actual situation pattern and the lateral excursion of line can be set in the configuration mode; Decoration is meant the online top point symbol of configuration, comprises attributes such as configuration rule and configuration parameter.In addition, complicated line symbol can utilize script that it is designed by interface, also can be converted into area symbol by profile transformation.We define a LineSymbol class, and following functions are provided:
①GetArraySize(int?*?size)
Be used for obtaining complete all members' of linear map symbol memory size, parameter s ize is the memory address of linear map symbol size.
②GetArray(BYTE?*?buffer)
Be used for obtaining complete all members' of linear map symbol internal memory record, parameter b uffer is the memory address of linear map symbol content.
③GetStrokeCount(int?*?c)
Be used for obtaining the number of all strokes of complete linear map symbol, parameter c is the memory address of a stroke number variable in the linear map symbol.
④GetStroke(int?ID)
Be used for obtaining the full detail (color, texture, width, side-play amount, actual situation pattern etc.) of complete certain stroke of linear map symbol, parameter I D is the unique identifying number of stroke in the linear map symbol.
⑤GetDecorationCount(int?*?d)
Be used for obtaining the number of all decorations of complete linear map symbol, parameter d is to decorate the memory address of a number variable in the linear map symbol.
⑥GetDecoration(int?ID)
Be used for obtaining the full detail of complete certain decoration of linear map symbol, parameter I D is the unique identifying number of decorating in the linear map symbol.
⑦GetTransCount(int?*?d)
Be used for obtaining the number of complete all profile transformations of linear map symbol, parameter d is the memory address of a profile transformation number variable in the linear map symbol.
⑧GetTrans(int?ID)
Be used for obtaining the full detail of complete certain profile variations of linear map symbol, parameter I D is the unique identifying number of profile transformation in the linear map symbol.
Linear map symbol is played up: the VGE symbol is played up by stroke process device, filling processor and three interfaces of path conversion and is formed.Linear map symbol is played up the ProcessOnePolyline function of corresponding VGE symbol in playing up, and it calls the ProcessStroke function, and is as follows:
ProcessStroke(Stroke?*?s)
Be used on virtual canvas object, drawing a stroke with certain stroke parameter (color, texture, width, actual situation pattern etc.).Parameter s is quoting of a stroke object.
Embodiment 2
As shown in Figure 2, the present invention also provides a kind of linear map symbol based on VGE line symbol model to share method, comprises line symbol data sharing method and function sharing method.Data sharing can be divided into linear map symbol assimilation, linear map symbol XML exchange, and function sharing refers to the line symbol monitoring and replaces.
This method specifically adopts following steps to realize:
Step 1, based on VGE linear map symbol model, the line symbol that designs among the CAD, GIS software platform of assimilation main flow, line symbol file importing that will already present other form (as * .dxf, * .style).
Step 2, the XML Switching Module by the VGE line symbol import the line symbol data of the commutative form of XML, and as the line symbol among the SLD, the function that provides is:
LoadFromFile(string?file)
Be written into symbol data in internal memory from outside wire map symbols bank file, parameter f ile is the pathname of outside wire map symbols bank.File type can be the symbol Interchange Format of XML form, also can be self-defining storage inside form.
Step 3, utilize the com mode that VGE line symbol model and high-quality map symbol render engine are extended in the GIS software platform of application.
Step 4, line symbol is played up the drawing for order that calls during monitoring GIS running software in operating system, and it is replaced with the instruction of playing up of VGE line symbol.
Step 5, the XML Switching Module by the VGE line symbol are output as the commutative form of XML with the VGE line symbol that designs, and share for linear map symbol, and the function that provides is:
SaveToFile(string?file)
Symbolic library behind the edit-modify is saved in the outside wire map symbols bank file, and parameter f ile is the pathname of outside wire map symbols bank.File type can be the symbol Interchange Format of XML form, also can be self-defining storage inside form.

Claims (10)

1.基于路径的线状地图符号模型,其特征是,该模型由线状地图符号数据模型与线状地图符号渲染器组成。1. A path-based linear map symbol model, characterized in that the model is composed of a linear map symbol data model and a linear map symbol renderer. 2.根据权利要求1所述的线状地图符号模型,其特征是,所述线状地图符号数据模型由笔划与装饰构成;所述笔划包括路径及其索引,笔划用于设置色彩、纹理、宽度、纵向偏移以及绘制顺序属性;同时,笔划包括线的配置模式,在配置模式中设置线的虚实模式以及横向偏移;装饰是指配置在线上面的点状符号,包括配置规则及配置参数属性。2. The linear map symbol model according to claim 1, wherein the linear map symbol data model is composed of strokes and decorations; the strokes include paths and indexes thereof, and the strokes are used to set colors, textures, Width, vertical offset, and drawing order attributes; at the same time, the stroke includes the configuration mode of the line, and the virtual and real mode of the line and the horizontal offset are set in the configuration mode; decoration refers to the point symbols configured on the line, including configuration rules and configuration parameters Attributes. 3.根据权利要求1所述的线状地图符号模型,其特征是,所述线状地图符号渲染器由笔划处理器、填充处理器以及路径变换三个接口组成。3. The linear map symbol model according to claim 1, wherein the linear map symbol renderer is composed of three interfaces: a stroke processor, a fill processor and a path transformation. 4.基于VGE线状符号模型的线状地图符号共享方法,其特征是,该方法包括线状符号数据共享方法与功能共享方法。4. A linear map symbol sharing method based on the VGE linear symbol model, characterized in that the method includes a linear symbol data sharing method and a function sharing method. 5.根据权利要求1所述的线状地图符号共享方法,其特征是,所述数据共享方法包括线状地图符号同化和线状地图符号XML交换。5. The linear map symbol sharing method according to claim 1, wherein the data sharing method comprises linear map symbol assimilation and linear map symbol XML exchange. 6.根据权利要求1所述的线状地图符号共享方法,其特征是,所述功能共享方法包括线状地图符号监测和线状地图符号替换。6. The linear map symbol sharing method according to claim 1, wherein the function sharing method comprises linear map symbol monitoring and linear map symbol replacement. 7.根据权利要求5所述的线状地图符号共享方法,其特征是,所述线状地图符号同化是基于VGE线状符号模型同化目前主流CAD、GIS软件平台中线状地图符号。7. The linear map symbol sharing method according to claim 5, wherein said linear map symbol assimilation is based on the VGE linear symbol model assimilating linear map symbols in current mainstream CAD and GIS software platforms. 8.根据权利要求5所述的线状地图符号共享方法,其特征是,所述线状地图符号XML交换是将基于VGE符号模型的线状符号数据通过XML格式进行符号交换、共享,包括导入XML可交换格式的线状符号数据和导出XML可交换格式的线状符号数据。8. The linear map symbol sharing method according to claim 5, wherein the linear map symbol XML exchange is to exchange and share the linear symbol data based on the VGE symbol model through the XML format, including importing Line symbol data in XML interchangeable format and export line symbol data in XML interchangeable format. 9.根据权利要求6所述的线状地图符号共享方法,其特征是,所述功能共享方法具体包括:在操作系统中监测对应GIS软件运行时线状符号渲染调用的绘图指令,并将其替换为VGE线状地图符号的渲染指令。9. The linear map symbol sharing method according to claim 6, characterized in that, the function sharing method specifically comprises: monitoring the drawing instruction called by the linear symbol rendering when the corresponding GIS software is running in the operating system, and Replaced with rendering directives for VGE line map symbols. 10.根据权利要求6所述的线状地图符号共享方法,其特征是,所述功能共享方法具体包括:以com的方式将VGE线状地图符号及其渲染扩充到对应的GIS平台上。10. The linear map symbol sharing method according to claim 6, wherein the function sharing method specifically comprises: extending the VGE linear map symbol and its rendering to the corresponding GIS platform in the form of com.
CN201019026030A 2010-02-03 2010-02-03 Path-based Linear Map Symbol Model and Sharing Method Based on the Model Pending CN101807305A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201019026030A CN101807305A (en) 2010-02-03 2010-02-03 Path-based Linear Map Symbol Model and Sharing Method Based on the Model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201019026030A CN101807305A (en) 2010-02-03 2010-02-03 Path-based Linear Map Symbol Model and Sharing Method Based on the Model

Publications (1)

Publication Number Publication Date
CN101807305A true CN101807305A (en) 2010-08-18

Family

ID=42609087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201019026030A Pending CN101807305A (en) 2010-02-03 2010-02-03 Path-based Linear Map Symbol Model and Sharing Method Based on the Model

Country Status (1)

Country Link
CN (1) CN101807305A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102254334A (en) * 2011-06-15 2011-11-23 武汉大学 Method for sharing service of map symbolization network based on DCOM (distributing component object model) technology

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102254334A (en) * 2011-06-15 2011-11-23 武汉大学 Method for sharing service of map symbolization network based on DCOM (distributing component object model) technology

Similar Documents

Publication Publication Date Title
CN110489499B (en) On-line intelligent thematic map compiling method
CN103208225B (en) A kind of tile map method for making and system
CN109636887B (en) A two-dimensional electronic technical drawing format conversion and vectorization interactive system
CN102609256B (en) A kind of Dynamic Graph table generating method based on webpage
CN103180881B (en) Complex scene sense of reality fast drawing method on the Internet
CN106528174B (en) Flash rendering method and rendering engine based on cocos2dx
CN102890829A (en) Method for rendering terrain based on graphic processing unit (GPU)
CN107145655A (en) The method for setting up the grid equipment vector graphical element sign mould comprising topology information
CN104851118B (en) The shared CorelDraw point symbol methods of ArcGIS
CN103606184A (en) Device based on two-dimensional and three-dimensional integrated vector render engine
CN101819684A (en) Spatial acceleration structure for virtual three-dimensional scene of animated film and creation and update method thereof
CN108197555B (en) Real-time face fusion method based on face tracking
CN103218846A (en) Ink painting simulation method of three-dimensional tree model
CN101789030A (en) Virtual geographical environment (VGE) symbolic model and map symbol sharing system and method based on same
CN101782400A (en) Planar map symbol model based on path and sharing method based on same
CN101770655B (en) Method for simplifying large-scale virtual dynamic group
CN112799669B (en) Method and device for generating application program interface layout code and electronic equipment
CN114119821A (en) Hair rendering method, device and device for virtual object
CN112365598A (en) Method, device and terminal for converting oblique photography data into three-dimensional data
CN109636894A (en) A kind of dynamic 3 D thermal calculation method and system based on pixel rasterizing
CN103021025B (en) Utilize the method for generating pattern of computer program
CN101799933B (en) Conversion method of TrueType symbol and spotted map symbol based on path
CN103473984A (en) Template-based dynamic map obtaining method in network environment
CN101807305A (en) Path-based Linear Map Symbol Model and Sharing Method Based on the Model
CN110489069A (en) A kind of LED array animation rendering display control method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20100818