CN101751683A - Figure element dot symbol and dot map symbol exchange method based on path - Google Patents

Figure element dot symbol and dot map symbol exchange method based on path Download PDF

Info

Publication number
CN101751683A
CN101751683A CN201019026026A CN201019026026A CN101751683A CN 101751683 A CN101751683 A CN 101751683A CN 201019026026 A CN201019026026 A CN 201019026026A CN 201019026026 A CN201019026026 A CN 201019026026A CN 101751683 A CN101751683 A CN 101751683A
Authority
CN
China
Prior art keywords
symbol
dot
path
pel
map
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
CN201019026026A
Other languages
Chinese (zh)
Other versions
CN101751683B (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.)
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 CN2010190260262A priority Critical patent/CN101751683B/en
Publication of CN101751683A publication Critical patent/CN101751683A/en
Application granted granted Critical
Publication of CN101751683B publication Critical patent/CN101751683B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a figure element dot symbol and a dot map symbol exchange method based on a path; and the method comprises that the figure element dot symbol is converted into the dot map symbol based on the path, and the dot map symbol based on the path is converted into the figure element dot symbol. The conversion of the figure element dot symbol into the dot map symbol based on the path means to interpret the figure element dot symbol, and then classify the figure element dot symbol data according to a geometric shape, and finally map an actual figure element dot symbol object into the dot map symbol based on the path. The conversion of the dot map symbol based on the path to the figure element dot symbol means to interpret the dot map symbol based on the path, and then classify the dot map symbol based on the path according to a geometric shape, and finally map the dot map symbol based on the path into the figure element dot symbol.

Description

Pel method point symbol with based on the dot-form map symbol switching method in path
Technical field
The present invention relates to geography information and share the field, be specifically related to a kind of pel method point symbol and dot-form map symbol switching method based on the path.
Background technology
Geography information is shared and is meant that with hardware technologies such as computing machine and spatial data infrastructures be support, under soft environments such as standard, policy, law are supported, geography information is used jointly.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.
Existing geography information technology of sharing is seldom considered sharing of map symbols information, even relate to, effect is also unsatisfactory, because each Geographic Information System (GIS) software platform all has Symbol Design and the drafting module that oneself seals, realizes that the technology of sharing difficulty of map symbols information is bigger.In addition, spatial data and map symbol data all have two relatively independent unit always in GIS operating system, so seldom consider sharing of map symbols information when communal space data.Often need make many cover symbols to same geographic object in the actual drawing work, seriously reduce the efficient of drawing, cause the dialect problem of map symbol at various GIS platform.
For addressing the above problem, need and geoanalysis and drawing function will be combined, its most important thing is the shared of symbol data between the two, therefore need a kind of new method, can assimilate the symbol in current main-stream CAD, the GIS software, share same symbolic library, reduce the unnecessary duplication of labour, improve drawing efficiency.
Dot-form map symbol data model based on the path, it is a kind of dot-form map symbol data model based on the path, on the basis of drawing traditional C AD and GIS symbolic model, used for reference the pattern description mechanism in PostScript language, SVG standard, the Flash technology, as shown in Figure 1, symbolic library comprises symbol and template, and symbol is the set of finite path (Path), the path is made of section, and section can comprise straight line, arc, Bezier curve and SPL four classes.Wherein, straight line comprises straight-line segment and broken line, and arc comprises circle, ellipse, circular arc, elliptic arc, and the Bezier curve comprises secondary and three bezier curve, SPL adopts non-homogeneous B spline curve (nurbs curve), and this curve is the unique method for expressing of free type curve in the STEP standard.Template is meant a kind of symbol construction mode, and common rectangle in the map symbol, star-like, regular polygon etc. all can be defined as the template that makes up Path.Simultaneously, new symbolic construction adopts FlyWeight (enjoying unit) pattern to solve " decoupling zero and " problem of Path and Stroke, Fill operation, makes same Path to be operated by a plurality of Stroke and Fill and quote.Therefore, possess the general graphical descriptive power based on the dot-form map symbol structure in path, and taken into account the composition characteristics of map symbol, can assimilate the map symbol of present main flow.
Name is called " based on the GIS universal symbol system and the construction method thereof of virtual machine ", application number is 200610018873.0, publication number is the patent of CN1838073A, name is called " point; line; the integrated cultural symbol of face formation method ", application number is 200710021392.X, publication number CN101075244A, " computer automatic drafting method of complicated map symbol ", application number is 200710053790.X, publication number is the patent of CN101159065, name is called " a kind of system and method for adaptive electronic map symbolic ", application number is 200810239848.4, publication number is that the patented claim of CN101458819 all discloses the method that map symbol makes up, but they all do not relate to TrueType symbol and VGE point symbol switching method.
Summary of the invention
The object of the invention is to overcome existing map symbol and shares the defective that the aspect exists, solve point symbol isomery problem in the map, on dot-form map symbol data model basis based on the path, pel method point symbol and dot-form map symbol (abbreviating the VGE dot-form map symbol as) switching method based on the path are proposed, provide pel method point symbol and based on the two-way mapping between the dot-form map symbol in path, realize dot-form map symbol assimilation, share.
The technical scheme that realizes the object of the invention is: pel method point symbol and dot-form map symbol switching method, this method based on the path comprise pel method point symbol to based on the dot-form map symbol conversion in path and based on the dot-form map symbol in path to pel method point symbol conversion two parts.
Wherein: described pel method point symbol comprises following step to the dot-form map symbol conversion based on the path:
The interpretation of step 1 pel method point symbol: the pel method point symbol file to the needs assimilation is discerned, and differentiates its figure block format, based on the data model of this form, reads pel method point symbol data;
Step 2 pel method point symbol classification: pel method point symbol is classified, the point symbol in the data is classified according to primitive geometries;
Step 3 pel method point symbol is to based on the mapping of the dot-form map symbol in path: on the dot-form map symbol data model basis based on the path, be dot-form map symbol based on the path with sorted pel dot-form map symbol data map.
Described step 2 specifically is meant: pel method point symbol mostly comprises pels such as rectangle, rhombus, circle, circular arc, ellipse, elliptic arc, polygon, and rectangle, rhombus, polygon are divided into a class, and circle, circular arc, ellipse, elliptic arc are divided into another kind of.
Described step 3 specifically is meant: rectangle, rhombus, polygon are mapped as MoveTo, LineTo, and circle, circular arc, ellipse, elliptic arc are ArcTo.
Described dot-form map symbol based on the path comprises following step to the conversion of pel method point symbol:
Step I is based on the dot-form map symbol interpretation in path: the dot-form map symbol file based on the path is discerned, differentiate its sign form, according to dot-form map symbol data model based on the path, with the map symbol data load in the symbol file in internal memory;
Step II is classified based on the dot-form map symbol in path: the dot-form map symbol data based on the path that will be loaded in the internal memory are classified according to geometric configuration;
Step II I shines upon to pel method point symbol based on the dot-form map symbol in path: sorted map symbol data map is the data in the pel method point symbol with step 2.
Described step I specifically is meant, according to dot-form map symbol data model based on the path, i.e. symbolic library, symbol, path, summit, stroke and six layers of structure of filling, with the map symbol data load in the symbol file in internal memory.
Described Step II is meant that specifically will tear open based on the arc in the dot-form map symbol in path is three parts: circle, circular arc, ellipse and elliptic arc, and Bezier curve and SPL are classified as a class, and straight line becomes class separately.
Described Step II I specifically is meant, straight line (MoveTo, LineTo) is mapped as broken line in the pel method point symbol, circle in the arc (ArcTo), circular arc, ellipse and elliptic arc are mapped as circle, circular arc, ellipse, the elliptic arc in the pel method point symbol respectively, Bezier curve (CurveTo) need be broken up with SPL (BsplineTo), is mapped as the broken line in the pel method point symbol.
The present invention can assimilate the dot-form map symbol (as the SuperMap point symbol) that makes up based on the pel method to the dot-form map symbol based on the path, and can will be converted to pel method point symbol based on the dot-form map symbol in path, share to realize dot-form map symbol.
The present invention not only can exchange the map symbol in the pel method point symbol, and can ordinary symbol (figure) wherein be exchanged, as furniture, plant etc.Possess the general graphical descriptive power, and taken into account the composition characteristics of map symbol.
Description of drawings
Fig. 1 the present invention is based on the dot-form map symbol data model synoptic diagram in path
Fig. 2 pel method of the present invention point symbol with based on the dot-form map symbol in path assimilation route synoptic diagram
SuperMap symbol pel is mapped as the dot-form map symbol path synoptic diagram based on the path in Fig. 3 embodiment of the invention
Dot-form map symbol path based on the path in Fig. 4 embodiment of the invention is mapped as SuperMap symbol pel synoptic diagram
Embodiment
Below in conjunction with drawings and Examples the present invention is described in further details.
The present invention proposes pel method point symbol and dot-form map symbol switching method based on the path on the dot-form map symbol data model basis based on the path, provide pel method point symbol to based on the dot-form map symbol forward in path and oppositely mapping.Supplied a new technology path for sharing based on the dot-form map symbol in path and GIS dot-form map symbol, the formalization that helps promoting cartographic convention and knowledge is expressed, and helps eliminating the ambiguity of bringing because of symbol data model isomery in the cartographic semiology.
Embodiment 1
As shown in Figure 2, pel method point symbol with based on the dot-form map symbol switching method in path, this method comprise pel method point symbol to based on the dot-form map symbol conversion in path and based on the dot-form map symbol in path to pel method point symbol conversion two parts.
Pel method point symbol comprises following step to the dot-form map symbol conversion based on the path:
Step 1, the interpretation of pel method point symbol;
Step 2, the classification of pel method point symbol;
Step 3, pel method point symbol are to the dot-form map symbol mapping based on the path.
This example is an operating system environment with Windows XP SP3, and Visual Studio 2008 SP1 are development environment, and C++ is a development language, and SuperMap2008 is the GIS platform.
Concrete implementation step is as follows:
The interpretation of step 1 pel method dot-form map symbol is meant at first to be discerned the symbol file based on pel method structure of needs assimilation, differentiates its sign form.The SuperMap symbol is to make up to form on the basis of pel method, i.e. symbolic library-symbol-Tu meta schema.Therefore, this example adopts SuperMap2008 dot-form map symbol object as an example.Can store the vector dot-form map symbol with two kinds of file layouts among the SuperMap, be respectively * .sym, * .smi form.The sym formatted file is a SuperMap symbolic library file, is binary format.The smi formatted file is the map vector symbol swap file form that SuperMap uses, and is used for the exchange of vector dot-form map symbol, is text formatting.It is instance data that this example adopts the symbol file of smi form.Dot-form map symbol data model according to SuperMap reads symbol data from * .smi file.
The classification of step 2 pel method dot-form map symbol is on step 2 basis, and pel method point symbol (SuperMap dot-form map symbol) data are classified, the point symbol in the data is classified according to primitive geometries.As the point symbol among the SuperMap is to be formed by several combination of strokes, stroke is the set of element figure, and the stroke object comprises point, broken line, camber line, fan type, arc, polygon, ellipse, rectangle, round rectangle, pentagram, regular hexagon, rhombus etc.Element figure is divided into broken line, segmental arc, ellipse, rectangle, round rectangle etc.According to the geometric configuration of these pels, they are divided into several classes, broken line, rectangle are divided into a class, and segmental arc, ellipse are divided into a class, and round rectangle is broken and is broken line and arc.
Step 3 pel method point symbol is meant on VGE dot-form map symbol data model basis to the mapping of VGE point symbol, is the VGE point symbol with sorted pel method dot-form map symbol data map.Shown in Fig. 2,3, respectively sorted graphics primitive object in the step 2 is mapped as the path in the VGE point symbol, mapping method is as follows:
1. broken line:
The broken line pel has write down Origin And Destination coordinate in the straight line, it is mapped as path MoveTo (starting point), LineTo (terminal point) in the VGE point symbol.
2. segmental arc:
The upper left corner, lower right corner point coordinate and circular arc starting point, the terminating point coordinate of boundary rectangle have been write down in the segmental arc pel, at first calculate central point, the left and right sides focal coordinates of segmental arc correspondence (ellipse) circle, in the VGE point symbol, it is mapped as path A rcTo (starting point, terminating point) then, two reference mark are respectively left and right sides focus, if arc is a circular arc, then two reference mark overlap and are the center of circle.
3. oval:
The upper left corner, the lower right corner point coordinate of boundary rectangle have been write down in the oval pel, calculate oval left and right sides focal coordinates at first respectively, in the VGE point symbol, it is mapped as path A rcTo (starting point, terminal point) then, two reference mark are respectively two focuses about ellipse, because oval closed, so oval Origin And Destination is same point.
4. rectangle:
Write down the coordinate of the upper left corner, bottom right angle point in the rectangle pel, calculated the coordinate of the lower left corner, upper right angle point at first respectively, in the VGE point symbol, it has been mapped as path MoveTo, LineTo (four angle points) then.
5. round rectangle:
Write down the coordinate of the upper left corner, bottom right angle point in the round rectangle pel, among the SuperMap, the circular arc degree of round rectangle generates automatically, be 2/3rds of minimum edge.At first,, round rectangle torn open be four arcs and four sections straight lines, calculate arc section, the starting point of straight-line segment, terminating point, then, in the VGE point symbol, respectively arc section, straight-line segment are mapped as path A rcTo, MoveTo, LineTo according to these parameters.
The VGE point symbol comprises following steps to the conversion of pel method point symbol:
Step 1, the interpretation of VGE point symbol
Step 2, the classification of VGE point symbol
Step 3, VGE point symbol shine upon to pel method point symbol
The interpretation of step 1VGE point symbol is meant to be discerned VGE point symbol file, differentiate its sign form, based on VGE dot-form map symbol data model is symbolic library-symbol---path-summit-stroke-six layers of structure of filling, with the map symbol data load in the symbol file in internal memory.
The classification of step 2VGE point symbol is meant classifies the VGE dot-form map symbol data that are loaded in the internal memory according to geometric configuration, it is three parts that arc in the VGE point symbol path is torn open: circle, circular arc, ellipse and elliptic arc, Bezier curve and SPL are classified as a class, and straight line becomes class separately.
Step 3VGE point symbol is meant that to pel method point symbol mapping with step 2 sorted map symbol data map is the data in the pel method point symbol, all the VGE point symbol is converted to the symbol among the SuperMap in this example, each path (Path) is mapped as one or more pels: straight line (MoveTo, LineTo) is mapped as broken line or the polygon pel in the SuperMap symbol; Circle in the arc (ArcTo), circular arc, ellipse and elliptic arc are mapped as segmental arc, oval pel respectively; Owing to do not have Bezier (CurveTo) and SPL (BSplineTo) in the SuperMap symbol, so Bezier and SPL are segmented, they are broken up be end to end straight-line segment, be mapped as the broken line pel.
Mapping method is as follows:
1. straight line (MoveTo, LineTo)
Straight line record starting point, terminal point coordinate, it is mapped as the broken line pel.If the path is closed and filling, then be mapped as the polygon pel.
2. arc (ArcTo)
Arc has write down the coordinate at starting point, terminating point and two reference mark in the VGE point symbol path, therefore, when mapping, judge whether starting point equates with terminating point, whether two reference mark are same point, arc is divided into circle, circular arc, ellipse, elliptic arc, wherein, will justify, Elliptic Mappings is oval pel, circular arc, elliptic arc are mapped as the segmental arc pel.
3. Bezier (CurveTo)
Bezier has write down node and reference mark coordinate in the VGE point symbol path, to Bezier segmentation (from the certain step-length pointwise coordinates computed point of pressing of curve until terminal point), break up and be end to end straight-line segment, be mapped as the broken line pel, if Bezier is closed and filling, then be mapped as the polygon pel.
4. SPL (BSplineTo)
SPL has write down point and the reference mark coordinate on the node place curve in the VGE point symbol path, therefore can instead ask knot vector, exponent number.To Nurbs curve segmentation (from the certain step-length pointwise coordinates computed point of pressing of curve until terminal point), break up and be end to end straight-line segment, be mapped as the broken line pel, if SPL is closed and filling, then be mapped as the polygon pel.
The present invention to the harmless mapping of VGE point symbol, helps pel method dot-form map symbol to realize " use more in a storehouse ", for map symbol exchanges, shares the feasible approach that provides.

Claims (8)

  1. Pel method point symbol with based on the dot-form map symbol switching method in path, it is characterized in that this method comprises that pel method point symbol is to changing two parts based on the dot-form map symbol conversion in path with based on the dot-form map symbol in path to pel method point symbol.
  2. 2. map symbol switching method according to claim 1 is characterized in that, described pel method point symbol comprises following step to the dot-form map symbol conversion based on the path:
    The interpretation of step 1 pel method point symbol: the pel method point symbol file to the needs assimilation is discerned, and differentiates its figure block format, based on the data model of this form, reads pel method point symbol data;
    Step 2 pel method point symbol classification: pel method point symbol is classified, the point symbol in the data is classified according to primitive geometries;
    Step 3 pel method point symbol is to based on the mapping of the dot-form map symbol in path: on the dot-form map symbol data model basis based on the path, be dot-form map symbol based on the path with sorted pel dot-form map symbol data map.
  3. 3. map symbol switching method according to claim 1 is characterized in that, described dot-form map symbol based on the path comprises following step to the conversion of pel method point symbol:
    Step I is based on the dot-form map symbol interpretation in path: the dot-form map symbol file based on the path is discerned, differentiate its sign form, according to dot-form map symbol data model based on the path, with the map symbol data load in the symbol file in internal memory;
    Step II is classified based on the dot-form map symbol in path: the dot-form map symbol data based on the path that will be loaded in the internal memory are classified according to geometric configuration;
    Step II I shines upon to pel method point symbol based on the dot-form map symbol in path: sorted map symbol data map is the data in the pel method point symbol with step 2.
  4. 4. map symbol switching method according to claim 2 is characterized in that, described step 2 specifically is meant: rectangle, rhombus, polygon are divided into a class, and circle, circular arc, ellipse, elliptic arc are divided into another kind of.
  5. 5. map symbol switching method according to claim 4 is characterized in that, described step 3 specifically is meant: rectangle, rhombus, polygon are mapped as MoveTo, LineTo, and circle, circular arc, ellipse, elliptic arc are ArcTo.
  6. 6. map symbol switching method according to claim 3, it is characterized in that, described step I specifically is meant, based on dot-form map symbol data model based on the path, be symbolic library, symbol, path, summit, stroke, six layers of structure of filling, with the map symbol data load in the symbol file in internal memory.
  7. 7. map symbol switching method according to claim 6, it is characterized in that described Step II is meant that specifically will tear open based on the arc in the dot-form map symbol in path is three parts: circle, circular arc, ellipse and elliptic arc, Bezier curve and SPL are classified as a class, and straight line becomes class separately.
  8. 8. map symbol switching method according to claim 7, it is characterized in that, described Step II I specifically is meant, straight line is mapped as broken line in the pel method point symbol, circle in the arc, circular arc, ellipse and elliptic arc are mapped as circle, circular arc, ellipse, the elliptic arc in the pel method point symbol respectively, Bezier curve and SPL are broken up, and are mapped as the broken line in the pel method point symbol.
CN2010190260262A 2010-02-03 2010-02-03 Figure element dot symbol and dot map symbol exchange method based on path Expired - Fee Related CN101751683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010190260262A CN101751683B (en) 2010-02-03 2010-02-03 Figure element dot symbol and dot map symbol exchange method based on path

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010190260262A CN101751683B (en) 2010-02-03 2010-02-03 Figure element dot symbol and dot map symbol exchange method based on path

Publications (2)

Publication Number Publication Date
CN101751683A true CN101751683A (en) 2010-06-23
CN101751683B CN101751683B (en) 2012-05-02

Family

ID=42478625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010190260262A Expired - Fee Related CN101751683B (en) 2010-02-03 2010-02-03 Figure element dot symbol and dot map symbol exchange method based on path

Country Status (1)

Country Link
CN (1) CN101751683B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503204A (en) * 2016-11-02 2017-03-15 滁州学院 The shared MapGIS dot-form map symbol methods of OMS
CN107705345A (en) * 2017-09-30 2018-02-16 南威软件股份有限公司 A kind of drawing method of the dynamic military symbol of situation plotting
CN108022273A (en) * 2016-10-28 2018-05-11 中国测绘科学研究院 A kind of figure number Detachable drafting method and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108022273A (en) * 2016-10-28 2018-05-11 中国测绘科学研究院 A kind of figure number Detachable drafting method and system
CN108022273B (en) * 2016-10-28 2021-08-17 中国测绘科学研究院 Picture number detachable picture making method
CN106503204A (en) * 2016-11-02 2017-03-15 滁州学院 The shared MapGIS dot-form map symbol methods of OMS
CN106503204B (en) * 2016-11-02 2019-05-14 滁州学院 OMS shares MapGIS dot-form map symbol method
CN107705345A (en) * 2017-09-30 2018-02-16 南威软件股份有限公司 A kind of drawing method of the dynamic military symbol of situation plotting

Also Published As

Publication number Publication date
CN101751683B (en) 2012-05-02

Similar Documents

Publication Publication Date Title
CN101783023B (en) Method for exchanging AutoCAD (computer-aided design) graphic block with point map symbol based on path
CN105279243B (en) A kind of method and system of Conversion of Spatial Data
CN101799933B (en) Conversion method of TrueType symbol and spotted map symbol based on path
CN103164516A (en) Electronic chart data conversion device and electronic chart data conversion method
CN111402390A (en) Model rendering method, device, equipment and storage medium
CN102999946B (en) A kind of 3D Disposal Method about Graphics Data, device and equipment
CN101116111A (en) 2d/3d line rendering using 3d rasterization algorithms
Shen et al. A new approach to simplifying polygonal and linear features using superpixel segmentation
CN111339599B (en) Conversion method from BIM model to GIS model
CN104851118A (en) Method for sharing CorelDraw point symbol in ArcGIS
CN101751683B (en) Figure element dot symbol and dot map symbol exchange method based on path
CN106649882A (en) Spatial data management middleware applied to telecom field and implementation method thereof
Ellul et al. Investigating approaches to improving rendering performance of 3D city models on mobile devices
CN111047682A (en) Three-dimensional lane model generation method and system
CN101783022A (en) Method for integrally symbolizing road net based on painter algorithm
CN105512235A (en) GIS and AutoCAD data exchange method and intermediate file
CN102509314A (en) Quick generating method for sunlight greenhouse construction drawing
CN105913475A (en) Dynamic visualized method of space-time change process
CN102136154B (en) Cartoon manufacture method and device
CN108491427A (en) PDF tile maps and production method
WO2022161368A1 (en) Method and apparatus for determining spatial two-tuple, computer device, and storage medium
She et al. 3D building model simplification method considering both model mesh and building structure
CN104166715A (en) Vxworks platform electronic chart engine
Ai et al. A map generalization model based on algebra mapping transformation
CN103310409B (en) A kind of Tile-based renders the fast triangle block method of framework GPU

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

Termination date: 20150203

EXPY Termination of patent right or utility model