CN101751683B - 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
CN101751683B
CN101751683B CN2010190260262A CN201019026026A CN101751683B CN 101751683 B CN101751683 B CN 101751683B CN 2010190260262 A CN2010190260262 A CN 2010190260262A CN 201019026026 A CN201019026026 A CN 201019026026A CN 101751683 B CN101751683 B CN 101751683B
Authority
CN
China
Prior art keywords
symbol
dot
path
map
pel
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
CN2010190260262A
Other languages
Chinese (zh)
Other versions
CN101751683A (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 environment supports such as standard, policy, law, geography information is used jointly.Map symbol is the visual main tool of spatial data, and its left brain through pictorial stimulus people pictograph, understanding produces imago, transmits the information such as characteristic, 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 GIS-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 when communal space data, seldom consider sharing of map symbols information.Often need in the actual drawing work same geographic object to be made many cover symbols, seriously reduced the efficient of drawing, caused the dialect property problem of map symbol to various GIS platform.
For addressing the above problem; Need and will geoanalysis and drawing function be combined, its most important thing is the shared of symbol data between the two, therefore needs 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.
Based on the dot-form map symbol data model in path, be a kind of dot-form map symbol data model, on the basis of drawing traditional C AD and GIS symbolic model based on the path; 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 up of section, and section can comprise four types of straight line, arc, Bezier curve and SPLs.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 with " 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 that patent, the name of CN1838073A is called " the integrated cultural symbol of point, line, surface formation method "; Application number is 200710021392.X, publication number CN101075244A, " computer automatic drafting method of complicated map symbol ", and application number is 200710053790.X; Publication number is that patent, the name of CN101159065 is called " a kind of system and method for adaptive electronic map symbolic "; Application number is 200810239848.4, and 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 map dotted symbol isomery problem; 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, pel method point symbol is provided with based on the two-way mapping between the dot-form map symbol in path, realize the assimilation, shared of dot-form map symbol.
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: said 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 shines upon to the dot-form map symbol based on the path: on the dot-form map symbol data model basis based on the path, be the dot-form map symbol based on the path with sorted pel dot-form map symbol data map.
Said 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 one type, and circle, circular arc, ellipse, elliptic arc are divided into another kind of.
Said step 3 specifically is meant: rectangle, rhombus, polygon are mapped as MoveTo, LineTo, and circle, circular arc, ellipse, elliptic arc are ArcTo.
Said 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 to 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.
Said 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.
Said 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 one type, and straight line is type of one-tenth separately.
Said Step II I specifically is meant; (MoveTo, LineTo) is mapped as the broken line in the pel method point symbol with straight line; Circle in the arc (ArcTo), circular arc, ellipse and elliptic arc are mapped as circle, circular arc, ellipse, 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 be with dot-form map symbol (like the SuperMap point symbol) assimilation that makes up based on the pel method to the dot-form map symbol based on the path; And can will convert pel method point symbol into 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, like 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 accompanying drawing and embodiment the present invention is explained 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 dot-form map symbol forward and reverse mapping based on the path.Supplied a new technology path for sharing, helped promoting the formalization expression of cartographic convention and knowledge, helped eliminating the ambiguity of bringing because of symbol data model isomery in the cartographic semiology based on the dot-form map symbol in path and GIS dot-form map symbol.
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 instance 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.
The practical implementation step is following:
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 on the basis of pel method, to make up to form, i.e. symbolic library-symbol-Tu meta schema.Therefore, this instance 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 instance 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.Like 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 types, broken line, rectangle are divided into one type, and segmental arc, ellipse are divided into one type, 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.Like Fig. 2, shown in 3, respectively sorted graphics primitive object in the step 2 is mapped as the path in the VGE point symbol, mapping method is following:
1. broken line:
The broken line pel has write down Origin And Destination coordinate in the straight line, in the VGE point symbol, it is mapped as path MoveTo (starting point), LineTo (terminal point).
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, since 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 one type, and straight line is type of one-tenth separately.
Step 3VGE point symbol is meant that to the mapping of pel method point symbol sorted map symbol data map is the data in the pel method point symbol with step 2; All convert the VGE point symbol among the SuperMap symbol in this instance, 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 following:
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,, then be mapped as the polygon pel if Bezier is closed and filling.
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 the map symbol exchange, share a feasible approach is provided.

Claims (6)

  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;
    Said 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: the pel method point symbol file to the needs assimilation is discerned, and the authentication code form based on the data model of this form, reads pel method point symbol data;
    Step 2, the classification of pel method point symbol: pel method point symbol is classified, the point symbol in the data is classified according to primitive geometries;
    Step 3, pel method point symbol shine upon to the dot-form map symbol based on the path: on the dot-form map symbol data model basis based on the path, be the dot-form map symbol based on the path with sorted pel method point symbol data map;
    Said dot-form map symbol based on the path comprises following step to the conversion of pel method point symbol:
    Step I, based on the dot-form map symbol interpretation in path: the dot-form map symbol file to 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, based on the classification of 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, shine 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 II.
  2. 2. map symbol switching method according to claim 1 is characterized in that, said step 2 specifically is meant: rectangle, rhombus, polygon are divided into one type, and circle, circular arc, ellipse, elliptic arc are divided into another kind of.
  3. 3. map symbol switching method according to claim 2 is characterized in that, said step 3 specifically is meant: rectangle, rhombus, polygon are mapped as MoveTo, LineTo, and circle, circular arc, ellipse, elliptic arc are mapped as ArcTo.
  4. 4. map symbol switching method according to claim 1; It is characterized in that; Said step I specifically is meant; Based on dot-form map symbol data model based on the path, i.e. 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.
  5. 5. map symbol switching method according to claim 4; It is characterized in that said Step II specifically is meant, will be divided into based on the arc in the dot-form map symbol in path: circle, circular arc, ellipse and elliptic arc; Bezier curve and SPL are classified as one type, and straight line is type of one-tenth separately.
  6. 6. map symbol switching method according to claim 5; It is characterized in that; Said Step II I specifically is meant, straight line is mapped as the broken line in the pel method point symbol, and the circle in the arc, circular arc, ellipse and elliptic arc are mapped as circle, circular arc, ellipse, 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 CN101751683A (en) 2010-06-23
CN101751683B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108022273B (en) * 2016-10-28 2021-08-17 中国测绘科学研究院 Picture number detachable picture making method
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
CN101751683A (en) 2010-06-23

Similar Documents

Publication Publication Date Title
CN101783023B (en) Method for exchanging AutoCAD (computer-aided design) graphic block with point map symbol based on path
CN101799933B (en) Conversion method of TrueType symbol and spotted map symbol based on path
CN105279243B (en) A kind of method and system of Conversion of Spatial Data
CN111402390A (en) Model rendering method, device, equipment and storage medium
CN103164516A (en) Electronic chart data conversion device and electronic chart data conversion method
CN101116111A (en) 2d/3d line rendering using 3d rasterization algorithms
CN102999946B (en) A kind of 3D Disposal Method about Graphics Data, device and equipment
CN111339599B (en) Conversion method from BIM model to GIS model
Shen et al. A new approach to simplifying polygonal and linear features using superpixel segmentation
CN101751683B (en) Figure element dot symbol and dot map symbol exchange method based on path
CN102467519B (en) Visualization plotting method and system based on geographic information system
CN104851118A (en) Method for sharing CorelDraw point symbol in ArcGIS
CN104731590A (en) Method and device for realizing user interface controls
CN102509314A (en) Quick generating method for sunlight greenhouse construction drawing
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
CN101783022A (en) Method for integrally symbolizing road net based on painter algorithm
CN102136154B (en) Cartoon manufacture method and device
CN102306294A (en) Method and system for extracting image from portable document format (PDF) file page
CN104111913A (en) Processing method and device of streaming document
She et al. 3D building model simplification method considering both model mesh and building structure
KR20230109768A (en) Spatial 2-tuple determination method, device, computer device and storage medium
CN103310409B (en) A kind of Tile-based renders the fast triangle block method of framework GPU
Goodrich et al. Streamed graph drawing and the file maintenance problem
CN103903508A (en) Tile map segmenting method and system

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