[go: up one dir, main page]

CN101799932A - Dot-form map symbol model based on path and sharing method based on model - Google Patents

Dot-form map symbol model based on path and sharing method based on model Download PDF

Info

Publication number
CN101799932A
CN101799932A CN201019026032A CN201019026032A CN101799932A CN 101799932 A CN101799932 A CN 101799932A CN 201019026032 A CN201019026032 A CN 201019026032A CN 201019026032 A CN201019026032 A CN 201019026032A CN 101799932 A CN101799932 A CN 101799932A
Authority
CN
China
Prior art keywords
point
symbol
map symbol
point map
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
CN201019026032A
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 CN201019026032A priority Critical patent/CN101799932A/en
Publication of CN101799932A publication Critical patent/CN101799932A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

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

Figure 201019026032

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

Figure 201019026032

Description

Based on the dot-form 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 dot-form 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 dot-form 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 dot-form map symbol model based on the path is provided, as the shared basis of the point symbol between GIS, CAD, professional graphics software at existing dot-form map symbol.Another goal of the invention of the present invention provides a kind of shared method of dot-form map symbol, at same symbolic library, uses for different CAD and GIS platform respectively, realizes sharing and play up fast dot-form map symbol.
The present invention for a technical scheme that solves its technical matters employing is:
Based on the dot-form map symbol model (hereinafter to be referred as VGE point symbol model) in path, this model is made up of dot-form map symbol data model and dot-form map symbol renderer.
Described dot-form map symbol data model comprises point symbol, and point symbol comprises vector point symbol, grid point symbol and chart point symbol; The vector point symbol is made of path, stroke and filling, and wherein, stroke has write down path indexing and stroke correlation parameter, as color, texture, width, vertical misalignment and drawing order etc.; Filling has been write down path indexing and has been filled correlation parameter, as the point symbol of color, pattern, texture, filling, the line symbol of filling etc.
Described dot-form 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 dot-form map symbol based on VGE point symbol model is shared method, comprises point symbol data sharing method and function sharing method.
Described data sharing method comprises dot-form map symbol assimilation and dot-form map symbol XML exchange.Described dot-form map symbol assimilation is based on VGE point symbol model, assimilates dot-form map symbol in present main flow CAD, the GIS software platform.Described dot-form map symbol XML exchange is that the point symbol data based on the VGE symbolic model are carried out the symbol exchange, shared by the XML form, comprises point symbol data that import the commutative form of XML and the point symbol data that derive the commutative form of XML.
Described function sharing method comprises dot-form map symbol monitoring and dot-form map symbol replacement, can be divided into dual mode: a kind of in operating system during the corresponding GIS running software of monitoring point symbol play up the drawing for order that calls, and it is replaced with the instruction of playing up of VGE dot-form map symbol; Another kind is that mode with com is with the VGE dot-form map symbol and play up and extend on the corresponding GIS platform.
Advantage of the present invention is: the dot-form map symbol data are separated with playing up, and aspect symbol data, can assimilate the point symbol of making in main flow CAD, GIS, the professional graphics software, support the design of complicated point symbol, cartoon characters, support texture to fill; Aspect symbol plays up, can and play up the VGE point symbol and extend on the corresponding GIS software platform, thereby realize that the point symbol between GIS, CAD, professional graphics software shares, realize " use more in a storehouse " of Spot Map Symbol Base.
Description of drawings
Fig. 1 embodiment of the invention 1 dot-form map symbol data model formula synoptic diagram
Fig. 2 embodiment of the invention 2 is shared the method synoptic diagram based on the dot-form map symbol in path
Embodiment
Below in conjunction with drawings and Examples the present invention is described in further details.
Embodiment 1
VGE point symbol model provided by the invention, model are played up the two large divisions by dot-form map symbol data model and map symbol and are formed.Wherein:
As shown in Figure 1, dot-form map symbol data model: point symbol comprises vector point symbol, grid point symbol and chart point symbol.The vector point symbol is made of path, stroke, filling, and wherein, stroke is made of section, and section is divided into four kinds in straight line, arc, bezier, SPL.Stroke has write down path indexing and stroke correlation parameter, as color, texture, width, vertical misalignment and drawing order etc.; Filling has been write down path indexing and has been filled correlation parameter, as the point symbol of color, pattern, texture, filling, the line symbol of filling etc.
We have defined a PointSymbol class, and following functions are provided:
①GetArraySize(int?*?size)
Be used for obtaining complete all members' of dot-form map symbol memory size, parameter s ize is the memory address of dot-form map symbol size.
②GetArray(BYTE?*?buffer)
Be used for obtaining complete all members' of dot-form map symbol internal memory record, parameter b uffer is the memory address of dot-form map symbol content.
③GetFillCount(int?*?c)
Be used for obtaining the number of complete all fillings of dot-form map symbol, parameter c is the memory address of filling a number variable in the dot-form map symbol.
④GetFill(int?ID)
Be used for obtaining the full detail (color, texture, fill pattern, interval etc.) of complete certain filling of dot-form map symbol, parameter I D is the unique identifying number of filling in the dot-form map symbol.
⑤GetFillOutline(Stroke?*?s)
Be used for obtaining the profile information (color, texture, fill pattern, interval etc.) of complete certain filling of dot-form map symbol, parameter s is the memory address of filling profile in the dot-form map symbol.
⑥GetStrokeCount(int?*?c)
Be used for obtaining the number of all strokes of complete dot-form 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 dot-form map symbol, parameter I D is the unique identifying number of stroke in the dot-form map symbol.
Dot-form 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.Dot-form map symbol is played up the ProcessOnePoint function of corresponding VGE symbol in playing up, and calls ProcessStroke, ProcessFill function, and function 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.
②ProcessFill(Fill?*?f)
Be used on virtual canvas object an enclosed areas being filled with certain pad parameter (color, texture, at interval, angle, pattern etc.).Parameter f is quoting of a filled object.
Embodiment 2
As shown in Figure 2, the present invention also provides a kind of dot-form map symbol based on VGE point symbol model to share method, comprises point symbol data sharing and function sharing method.Data sharing method can be divided into dot-form map symbol assimilation and dot-form map symbol XML exchange, and the function sharing method comprises that point symbol is monitored and the point symbol monitoring is replaced.
Share method based on the dot-form map symbol of VGE point symbol model and specifically adopt following steps:
Step 1, based on the VGE dot-form map symbol model, the point symbol that designs among the CAD, GIS software platform of assimilation main flow, point symbol file importing that will already present other form (as * .dxf, * .style).
Step 2, the XML Switching Module by the VGE point symbol import the point symbol data of the commutative form of XML, and as the point symbol among the SLD (filling symbol), the function that provides is:
LoadFromFile(string?file)
Be used for being written into symbol data to internal memory from outside Spot Map Symbol Base file, parameter f ile is the pathname of outside Spot Map Symbol Base.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 point symbol model and high-quality map symbol render engine are extended in the GIS software platform of application.
Step 4, point 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 point symbol.
Step 5, the XML Switching Module by the VGE point symbol are output as the commutative form of XML with the VGE point symbol that designs, and share for dot-form map symbol, and the function that provides is:
SaveToFile(string?file)
Be used for the symbolic library behind the edit-modify is saved in outside Spot Map Symbol Base file, parameter f ile is the pathname of outside Spot Map Symbol Base.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 point map symbol model, characterized in that the model is composed of a point map symbol data model and a point map symbol renderer. 2.根据权利要求1所述的点状地图符号模型,其特征是,所述点状地图符号数据模型包括点状符号,点状符号包括矢量点状符号、栅格点状符号以及图表点状符号;矢量点状符号由路径、笔划和填充构成,笔划由段构成,段分为直线、弧、bezier、样条曲线四种。2. The point map symbol model according to claim 1, wherein the point map symbol data model includes point symbols, and point symbols include vector point symbols, grid point symbols, and graph point symbols. Symbols; vector point symbols are composed of path, stroke and fill, strokes are composed of segments, and segments are divided into four types: straight lines, arcs, bezier curves, and spline curves. 3.根据权利要求1所述的点状地图符号模型,其特征是,所述点状地图符号渲染器由笔划处理器、填充处理器以及路径变换三个接口组成。3. The point map symbol model according to claim 1, wherein the point map symbol renderer is composed of three interfaces: stroke processor, fill processor and path transformation. 4.基于VGE点状符号模型的点状地图符号共享方法,其特征是,该方法包括点状符号数据共享方法与功能共享方法。4. A point map symbol sharing method based on the VGE point symbol model, characterized in that the method includes a point symbol data sharing method and a function sharing method. 5.根据权利要求4所述的点状地图符号共享方法,其特征是,所述数据共享方法包括点状地图符号同化和点状地图符号XML交换。5. The point map symbol sharing method according to claim 4, wherein the data sharing method comprises point map symbol assimilation and point map symbol XML exchange. 6.根据权利要求4所述的点状地图符号共享方法,其特征是,所述功能共享方法包括点状地图符号监测和点状地图符号替换。6. The point map symbol sharing method according to claim 4, wherein the function sharing method comprises point map symbol monitoring and point map symbol replacement. 7.根据权利要求5所述的点状地图符号共享方法,其特征是,所述点状地图符号同化是基于VGE点状符号模型同化目前主流CAD、GIS软件平台中点状地图符号。7. The point map symbol sharing method according to claim 5, wherein said point map symbol assimilation is based on VGE point symbol model assimilation of point map symbols in current mainstream CAD and GIS software platforms. 8.根据权利要求5所述的点状地图符号共享方法,其特征是,所述点状地图符号XML交换是将基于VGE符号模型的点状符号数据通过XML格式进行符号交换、共享,包括导入XML可交换格式的点状符号数据和导出XML可交换格式的点状符号数据。8. The point-shaped map symbol sharing method according to claim 5, wherein, the point-shaped map symbol XML exchange is to exchange and share the point-shaped symbol data based on the VGE symbol model through XML format, including importing Point symbol data in XML interchangeable format and export point symbol data in XML interchangeable format. 9.根据权利要求6所述的点状地图符号共享方法,其特征是,所述功能共享方法具体包括:在操作系统中监测对应GIS软件运行时点状符号渲染调用的绘图指令,并将其替换为VGE点状地图符号的渲染指令。9. The point map symbol sharing method according to claim 6, characterized in that, the function sharing method specifically comprises: monitoring the drawing instruction called by the point map symbol rendering when the corresponding GIS software is running in the operating system, and Replaced with rendering directives for VGE point map symbols. 10.根据权利要求6所述的点状地图符号共享方法,其特征是,所述功能共享方法具体包括:以com的方式将VGE点状地图符号及其渲染扩充到对应的GIS平台上。10. The point map symbol sharing method according to claim 6, wherein the function sharing method specifically comprises: extending the VGE point map symbol and its rendering to the corresponding GIS platform in the form of com.
CN201019026032A 2010-02-03 2010-02-03 Dot-form map symbol model based on path and sharing method based on model Pending CN101799932A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201019026032A CN101799932A (en) 2010-02-03 2010-02-03 Dot-form map symbol model based on path and sharing method based on model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201019026032A CN101799932A (en) 2010-02-03 2010-02-03 Dot-form map symbol model based on path and sharing method based on model

Publications (1)

Publication Number Publication Date
CN101799932A true CN101799932A (en) 2010-08-11

Family

ID=42595604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201019026032A Pending CN101799932A (en) 2010-02-03 2010-02-03 Dot-form map symbol model based on path and sharing method based on model

Country Status (1)

Country Link
CN (1) CN101799932A (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
CN103077549B (en) A kind of real-time large-scale terrain the Visual Implementation method based on kd tree
CN105956165B (en) A kind of big file storage organization method of the tile type of three-dimensional modeling data
CN107145655A (en) The method for setting up the grid equipment vector graphical element sign mould comprising topology information
CN101159065A (en) Computer Automatic Drawing Method of Complicated Map Symbols
CN102681945B (en) Method for implementing embedded type pointer virtual instrument
CN111354061B (en) Method and device for simulating snowing scene in GIS system based on graphics
WO2009082946A1 (en) Vector graphics acceleration method and multimedia player
CN102890829A (en) Method for rendering terrain based on graphic processing unit (GPU)
CN101819684A (en) Spatial acceleration structure for virtual three-dimensional scene of animated film and creation and update method thereof
CN103606184A (en) Device based on two-dimensional and three-dimensional integrated vector render engine
CN106709978A (en) Unity 3D based Tujia brocade virtual design system
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
CN111339599A (en) Conversion method from BIM model to GIS model
CN101770655B (en) Method for simplifying large-scale virtual dynamic group
TW201447812A (en) Stencil-then-cover path rendering with shared edges
CN101169871A (en) HLOD preprocessing method for real-time rendering of large-scale static scenes
CN112799669B (en) Method and device for generating application program interface layout code and electronic equipment
CN101799933B (en) Conversion method of TrueType symbol and spotted map symbol based on path
CN108830929A (en) Multi-resolution Terrain pyramid model generation method and system based on database
CN101799932A (en) Dot-form map symbol model based on path and sharing method based on model
CN102708169B (en) Geographical space data storage method based on SWF (Small Web Format) file extension

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: 20100811