CN108182269A - The annotation symbolism method that a kind of selectivity background knocks out - Google Patents
The annotation symbolism method that a kind of selectivity background knocks out Download PDFInfo
- Publication number
- CN108182269A CN108182269A CN201810040720.9A CN201810040720A CN108182269A CN 108182269 A CN108182269 A CN 108182269A CN 201810040720 A CN201810040720 A CN 201810040720A CN 108182269 A CN108182269 A CN 108182269A
- Authority
- CN
- China
- Prior art keywords
- layer
- annotation
- symbol
- map
- background
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/001—Texturing; Colouring; Generation of texture or colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/206—Drawing of charts or graphs
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09B—EDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
- G09B29/00—Maps; Plans; Charts; Diagrams, e.g. route diagram
- G09B29/003—Maps
- G09B29/005—Map projections or methods associated specifically therewith
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Educational Administration (AREA)
- Business, Economics & Management (AREA)
- Educational Technology (AREA)
- Mathematical Physics (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Instructional Devices (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present invention provides the annotation symbolism method that a kind of selective background knocks out, including initializing map background, configuration background map need to knock out the figure layer symbol corresponding to part, annotation symbol mask figure layer is set, figure layer application dst_out transparency blendings are operated, configuration background map needs the figure layer symbol corresponding to member-retaining portion, is operated using dst_over transparency blendings;The textual character of figure layer to be noted is configured.Transparency blending principle in image procossing is applied in network map rendering by the present invention, it operates by realizing between figure layer transparency blending and combines the rendering order of figure layer, provide the annotation symbolism method that a kind of selective background knocks out, alleviate the vision collision problem generated during the covering because annotation and other map symbols, enhance the legibility of map, remain the information content of map.
Description
Technical field
The invention belongs to geographic information system technology field and a kind of symbolism Rendering of numerical map graphics field,
The symbolism method of annotation mask background is knocked out more particularly, to a kind of selectivity of network compass and tile map.
Background technology
The symbolism of geospatial entity is geographic information system technology field and numerical map graphics field important research
One of problem, writing directly influence map as the most intuitive map language of transmitting map information, symbolism effect
Readability.In traditional annotation symbolism method, because geographical entity is densely distributed, easily occur annotation symbol and its in map
Pressure between gland between his map elements symbol, especially annotation symbol and intensive Linear element and area pattern texture
Lid, so as to generate vision conflict, reduces the clarity and legibility of annotation, this has become asking for network compass generally existing
Topic.In existing improved method, pure color haloing is added to annotation text, it is to mitigate that annotation and other map elements, which are distinguished,
Vision conflicts simplest method, if but annotation text it is larger or densely distributed when, it will prominent note elements weaken other
Map elements reduce the information content of map.
Invention content
For vision collision problem existing for annotation symbolism in above-mentioned network compass, the present invention provides a kind of selectivity
The annotation symbolism method that background knocks out, it is therefore intended that selective knockouts is drawn on the background map under annotation, weaken because
Gland problem between annotation symbol and other map symbols and the vision that generates conflicts, improve Cartographic Symbolization effect.
The technical scheme is that the annotation symbolism method that a kind of selectivity background knocks out, includes the following steps:
Step 1, initializes map background, and setting map base map color clarity is 0;
Step 2, configuration background map need to knock out the figure layer symbol corresponding to part, need to knock out including addition background map
Geodata figure layer corresponding to part according to geographical component attributes, sets the symbol attribute of corresponding figure layer;
Step 3 sets annotation symbol mask figure layer, and including adding figure layer to be noted, simple symbol is carried out to annotation text
Change, add annotation text haloing attribute, to the operation of the figure layer application dst_out transparency blendings, the operation is by hiding step 2
In be drawn on figure layer symbol under annotation mask, display is plotted in the figure layer symbol outside annotation mask, so as to form annotation mask;
Step 4, configuration background map need the figure layer symbol corresponding to member-retaining portion, need member-retaining portion institute right including addition
The geodata figure layer answered according to geographical component attributes, sets the symbol attribute of corresponding figure layer, and applies dst_over transparencies
The figure layer is placed in map bottom by hybrid manipulation, the operation, to show the symbol that annotation Mask portion is penetrated in the figure layer;
The textual character of figure layer to be noted is configured in step 5, including the figure layer to be noted in addition step 3, to annotation text
This progress simple symbol consistent with step 3.
Moreover, geographic element includes point element, line feature knead dough element in background map, the symbolism of element figure layer includes
Point symbol, line symbol, face symbol, textual character and texture symbol configuration.
Moreover, in step 3, the symbolism of annotation text includes annotation text font, color, size, interval, text mark
The simple symbol of note mode and labeling position attribute configuration, annotation text haloing attribute include haloing radius size and haloing face
Color.
Moreover, in step 5, the symbolism consistent with step 3 is carried out to annotation text, including including text font, greatly
The simple symbol at small, interval, text marking mode and labeling position attribute configuration, so as to ensure the textual character in step 5
Just it falls in the annotation mask formed in step 3.
A kind of selective background that the present invention is proposed for the vision conflict in the presence of the configuration of network map annotation symbol
The annotation symbolism method of knockout forms annotation mask according to the principle that transparency blending in image procossing operates, can base area
Figure visualization requirement, selective knockout are drawn on the figure layer symbol under annotation, alleviate regarding for annotation and other map symbols
Feel conflict, enhance the aesthetics and legibility of map, can be widely used for the annotation of point off density, line feature and texture face element
Symbolism.
Description of the drawings
The method that Fig. 1 is the present invention realizes steps flow chart schematic diagram
Two design sketch of the step of Fig. 2 is the embodiment of the present invention one;
Three design sketch of the step of Fig. 3 is the embodiment of the present invention one;
Fig. 4 is the overall effect figure of the embodiment of the present invention one;
Fig. 5 is the schematic symbol diagram of the embodiment of the present invention two;
Fig. 6 is the overall effect figure of the embodiment of the present invention two.
Specific embodiment
For the ease of the clearer method understood and applied the invention of those skilled in the art in the invention, tie below
Drawings and examples are closed to be described further.
The realization step of the method for the present invention is as shown in Figure 1, including initializing map background;Configuration background map need to knock out portion
Figure layer symbol corresponding to point;Annotation mask figure layer is set, hides the figure layer for needing to knock out in the background map being drawn under annotation
Symbol;Configuration background map needs the figure layer symbol corresponding to member-retaining portion;Note elements figure layer textual character is configured.Specific implementation
When, computer software technology can be used and realize automatic running flow.
Below by saved using Sichuan Province China the road in Deyang City area, administrative region, place name point data as embodiment reality
Data are tested, to the present invention for road name annotation in the realization of geographical name lettering symbolism and simulation national standard topographic map
Realization is described in detail.
Embodiment one:Step is realized such as based on the geographical name lettering symbolism of annotation symbolism method that selective background knocks out
Under,
(1) step 1:Initialize map background.It is 0 to set map base map color clarity;
(2) step 2:Configuration background map need to knock out the figure layer symbol corresponding to part.Addition background map need to knock out portion
Geodata figure layer corresponding to point according to geographical component attributes, sets it to correspond to the symbol attribute of figure layer.
Further, geographic element includes point element, line feature knead dough element, the symbolism of element figure layer in background map
It is configured including point symbol, line symbol, face symbol, textual character and texture symbol.
In the embodiment, part that background map need to knock out is Road symbol, administrative region boundary line symbol, corresponding
Geodata figure layer is road and administrative region data.According to the component attributes of data, it is set to correspond to the symbol attribute of figure layer,
Such as Fig. 2;
(3) step 3:Annotation mask figure layer is set.Figure layer to be noted is added, simple symbol is carried out to annotation text, is matched
Annotation text haloing attribute is put, to figure layer application " dst_out (erasing) " transparency blending operation, the operation is by hiding step
The figure layer symbol being drawn in two under annotation mask, display are plotted in the figure layer symbol outside annotation mask, are covered so as to form annotation
Film;
Further, the symbolism of annotation text includes annotation text font, color, size, interval, text marking mode
With the simple symbol of labeling position attribute configuration, annotation text haloing attribute includes haloing radius size and haloing color.Thoroughly
Lightness hybrid manipulation is in image processing field, mainly renders image using shape relation between layers come show or hide
Certain parts, and can support various show or hide mode, " dst_out (erasing) " is transparency blending
One of which operates, and visual effect is only draws disjoint part in figure layer and Background From Layer using the operation.Using
In annotation figure layer, the operation of " dst_out (erasing) " transparency blending depicts annotation figure layer and figure layer in step 2 is disjoint
Part figure layer symbol, the operation form the annotation mask of annotation text halo shape.
In the embodiment, figure layer to be noted is place name point figure layer, and simple symbol, addition annotation text are carried out to annotation text
This haloing attribute operates figure layer application " dst_out (erasing) " transparency blending, annotation mask is formed, such as Fig. 3 shades
Place.
(4) step 4:Configuration background map needs the figure layer symbol corresponding to member-retaining portion.Addition is needed corresponding to member-retaining portion
Geodata figure layer, according to geographical component attributes, it is set to correspond to the symbol attribute of figure layer, and " dst_over (is put for application
Bottom) " transparency blending operation, which is placed in map bottom by the figure layer, to show in the figure layer through annotation Mask portion
Symbol.
Further, " dst_over (bottom set) " is the one of which operation of transparency blending, and visual effect is should
It is placed under All Layers with the figure layer of the operation.With reference to the annotation mask formed in step 3, applied in the step
Figure layer, the operation of " dst_over (bottom set) " transparency blending has been blocked to be covered with the disjoint part of annotation mask, display with annotation
Film intersection visually realizes the figure layer symbol only drawn with annotation mask intersection.
In the embodiment, the part that background map need to retain is administrative region face symbol, and corresponding geodata figure layer is
Administrative region data, the attribute that need to be configured are symbol color.According to the component attributes of data, it is set to correspond to the symbol category of figure layer
Property, and application " dst_over (bottom set) " transparency blending operates, which is placed in map bottom.Such as Fig. 4,1., 2. locate, note
Note mask has blocked the Administrative boundaries line symbol of corresponding part, 3. locates, annotation mask has blocked the road sign of corresponding part;Together
When, it is shown that administrative region face symbol.
(5) step 5:The textual character of figure layer to be noted is configured.The place name point figure layer in step 3 is added, to annotation text
This progress symbolism consistent with step 3.
Further, the consistent symbolism of annotation textual portions includes text font, size, interval, text marking mode
With the simple symbol of labeling position attribute configuration, formed in step 3 so as to which the textual character ensured in step 5 is fallen just
Annotation mask in.
Fig. 4 is the results show that this method has effectively knocked out road and administrative region boundary line symbol in geographical name lettering background
Number, administrative region area symbol is remained, makes annotation while complex symbol is avoided, it is basic to remain map to greatest extent
Information.
Embodiment two:National standard topographic map road name is simulated based on the annotation symbolism method that selective background knocks out
The realization principle of annotation as in the first embodiment, but the details of its symbol configuration and the rendering order of figure layer it is different, specific implementation step
It is rapid as follows,
(1) step 1:Initialize map background.It is 0 to set map base map color clarity;
(2) step 2:Configuration background map need to knock out the figure layer symbol corresponding to part.In the embodiment, background map
The part that need to be knocked out is road sign frame, and such as Fig. 5 1., corresponding geodata figure layer is road.
According to the component attributes of data, it is set to correspond to the symbol attribute of figure layer;
(3) step 3:Annotation mask figure layer is set.In the embodiment, figure layer to be noted is road name figure layer, to annotation
Text carries out simple symbol, adds annotation text haloing attribute, and " dst_out (erasing) " transparency blending is applied to the figure layer
Operation forms annotation mask;
(4) step 4:Configuration background map needs the figure layer symbol corresponding to member-retaining portion.In the embodiment, background map
The part that need to retain is administrative region face symbol, and such as Fig. 5 2., corresponding geodata figure layer is administrative region data.According to number
According to component attributes, set its correspond to figure layer symbol attribute, and application " dst_over (bottom set) " transparency blending operate, will
The figure layer is placed in map bottom;
According to figure layer rendering order, the road sign in the embodiment needs gland on above-mentioned all symbols, according to road
The component attributes of circuit-switched data set it to correspond to the symbol attribute of figure layer, such as Fig. 5 3.;
(5) step 5:The textual character of figure layer to be noted is configured.The road name figure layer in step 3 is added, to annotation
Text carries out the simple symbol consistent with step 3, such as Fig. 6.
Fig. 6 is the results show that this method can effectively simulate national standard topographic map road name annotation.
It should be understood that the preferable embodiment described above for being only to illustrate the present invention, is not limited to the present invention's
Can practical range, other any Spirit Essences without departing from the present invention with made under principle change, modification, replacement, combine,
Simplify, should be equivalent substitute mode, be included within protection scope of the present invention.
Claims (4)
1. the annotation symbolism method that a kind of selectivity background knocks out, which is characterized in that include the following steps:
Step 1, initializes map background, and setting map base map color clarity is 0;
Step 2, configuration background map need to knock out the figure layer symbol corresponding to part, and part need to be knocked out including addition background map
Corresponding geodata figure layer according to geographical component attributes, sets the symbol attribute of corresponding figure layer;
Step 3 sets annotation symbol mask figure layer, and including adding figure layer to be noted, simple symbol is carried out to annotation text,
Annotation text haloing attribute is added, figure layer application dst_out transparency blendings are operated, which will paint in hiding step 2
The figure layer symbol being formed under annotation mask, display is plotted in the figure layer symbol outside annotation mask, so as to form annotation mask;
Step 4, configuration background map need the figure layer symbol corresponding to member-retaining portion, are needed corresponding to member-retaining portion including addition
Geodata figure layer according to geographical component attributes, sets the symbol attribute of corresponding figure layer, and applies dst_over transparency blendings
The figure layer is placed in map bottom by operation, the operation, to show the symbol that annotation Mask portion is penetrated in the figure layer;
The textual character of figure layer to be noted is configured in step 5, including addition step 3 in figure layer to be noted, to annotation text into
The row simple symbol consistent with step 3.
2. the annotation symbolism method that selective background knocks out according to claim 1, it is characterised in that:In background map
It manages element and includes point element, line feature knead dough element, the symbolism of element figure layer includes point symbol, line symbol, face symbol, text
Symbol and texture symbol configuration.
3. the annotation symbolism method that selective background knocks out according to claim 1, it is characterised in that:In step 3, note
Remember that the symbolism of text includes annotation text font, color, size, interval, text marking mode and labeling position attribute configuration
Simple symbol, annotation text haloing attribute include haloing radius size and haloing color.
4. the annotation symbolism method knocked out according to the selective background of claims 1 or 2 or 3, it is characterised in that:Step 5
In, the symbolism consistent with step 3 is carried out to annotation text, including including text font, size, interval, text marking mode
With the simple symbol of labeling position attribute configuration, formed in step 3 so as to which the textual character ensured in step 5 is fallen just
Annotation mask in.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810040720.9A CN108182269B (en) | 2018-01-16 | 2018-01-16 | Notation symbolization method for selective background knockout |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810040720.9A CN108182269B (en) | 2018-01-16 | 2018-01-16 | Notation symbolization method for selective background knockout |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108182269A true CN108182269A (en) | 2018-06-19 |
CN108182269B CN108182269B (en) | 2021-09-14 |
Family
ID=62550628
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810040720.9A Active CN108182269B (en) | 2018-01-16 | 2018-01-16 | Notation symbolization method for selective background knockout |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108182269B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108880659A (en) * | 2018-06-28 | 2018-11-23 | 福州大学 | A kind of emergency maps symbolism method based on Big Dipper short message |
CN111666076A (en) * | 2020-06-02 | 2020-09-15 | 广州酷狗计算机科技有限公司 | Layer adding method, device, terminal and storage medium |
CN115578488A (en) * | 2022-11-24 | 2023-01-06 | 武汉智图科技有限责任公司 | Map annotation mask calculation method, system, electronic device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101251964A (en) * | 2008-03-26 | 2008-08-27 | 深圳市戴文科技有限公司 | Electronic map interest point marking method, system and equipment |
US20110131232A1 (en) * | 2009-11-30 | 2011-06-02 | Carolyn Hill | Selecting and annotating well logs |
CN102737542A (en) * | 2012-02-10 | 2012-10-17 | 武汉大学 | Automatic water depth annotation selection method with consideration of multi-restriction conditions |
CN104463948A (en) * | 2014-09-22 | 2015-03-25 | 北京大学 | Seamless visualization method for three-dimensional virtual reality system and geographic information system |
CN106204692A (en) * | 2016-07-13 | 2016-12-07 | 国家海洋信息中心 | A kind of ocean based on GIS platform sectional drawing method for drafting |
-
2018
- 2018-01-16 CN CN201810040720.9A patent/CN108182269B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101251964A (en) * | 2008-03-26 | 2008-08-27 | 深圳市戴文科技有限公司 | Electronic map interest point marking method, system and equipment |
US20110131232A1 (en) * | 2009-11-30 | 2011-06-02 | Carolyn Hill | Selecting and annotating well logs |
CN102737542A (en) * | 2012-02-10 | 2012-10-17 | 武汉大学 | Automatic water depth annotation selection method with consideration of multi-restriction conditions |
CN104463948A (en) * | 2014-09-22 | 2015-03-25 | 北京大学 | Seamless visualization method for three-dimensional virtual reality system and geographic information system |
CN106204692A (en) * | 2016-07-13 | 2016-12-07 | 国家海洋信息中心 | A kind of ocean based on GIS platform sectional drawing method for drafting |
Non-Patent Citations (1)
Title |
---|
任正霖: "基于DEM数据的等高线地形图的制作——以四川省绵阳市为例", 《地理教学》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108880659A (en) * | 2018-06-28 | 2018-11-23 | 福州大学 | A kind of emergency maps symbolism method based on Big Dipper short message |
CN108880659B (en) * | 2018-06-28 | 2022-07-01 | 福州大学 | Beidou short message-based emergency map symbolization method |
CN111666076A (en) * | 2020-06-02 | 2020-09-15 | 广州酷狗计算机科技有限公司 | Layer adding method, device, terminal and storage medium |
CN111666076B (en) * | 2020-06-02 | 2023-09-26 | 广州酷狗计算机科技有限公司 | Layer adding method, device, terminal and storage medium |
CN115578488A (en) * | 2022-11-24 | 2023-01-06 | 武汉智图科技有限责任公司 | Map annotation mask calculation method, system, electronic device and storage medium |
CN115578488B (en) * | 2022-11-24 | 2023-03-10 | 武汉智图科技有限责任公司 | Map annotation mask calculation method, system, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108182269B (en) | 2021-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Enderle et al. | Computer Graphics Programming: GKS—The Graphics Standard | |
Smith-Gratto et al. | Gestalt theory: a foundation for instructional screen design | |
Horbiński et al. | The use of Leaflet and GeoJSON files for creating the interactive web map of the preindustrial state of the natural environment | |
CN108182269A (en) | The annotation symbolism method that a kind of selectivity background knocks out | |
CN103970859B (en) | Google user map text labeling method based on SVG | |
CN112242004B (en) | AR scene virtual engraving method and system based on illumination rendering | |
CN106448432A (en) | Wind-field multi-element fusion visualization method for map service | |
Wong | Visualizing biological data | |
Tversky | Cognitive principles of graphic displays | |
JP5021856B1 (en) | Content display device, content display method, program, and recording medium | |
US8804187B2 (en) | Image processing to superimpose code on a document image | |
CN113436298B (en) | Method and device for automatically generating Chinese character stroke order animation and related components thereof | |
Burkhard et al. | 3.3. Map semantics and syntactics | |
CN110378977A (en) | Computer graphical symbolic formulation method, electronic equipment, storage medium | |
Hardy et al. | Portrayal and cartography | |
US11037256B2 (en) | Editing and representing property values for a digital map | |
KR20100138193A (en) | The augmented reality content providing system and equipment for the user interaction based on touchscreen | |
WO2013051077A1 (en) | Content display device, content display method, program, and recording medium | |
Boy et al. | The CO2 pollution map: Lessons learned from designing a visualization that bridges the gap between visual communication and information visualization | |
Gammelin | Type on maps: Legibility in typeface design for topographic maps | |
Matange | Annotate your SGPLOT Graphs | |
KR101888243B1 (en) | Method and system for displaying 4 tones on the chinese character | |
Markoski | CARTOGRAPHIC CRITIQUE9 | |
Fitzsimons et al. | The changing look of maps within geography journals | |
Adabala | Towards semantics for map styles |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |