CN104978895B - A kind of labeling method and device of map wire annotation - Google Patents

A kind of labeling method and device of map wire annotation Download PDF

Info

Publication number
CN104978895B
CN104978895B CN201410134701.4A CN201410134701A CN104978895B CN 104978895 B CN104978895 B CN 104978895B CN 201410134701 A CN201410134701 A CN 201410134701A CN 104978895 B CN104978895 B CN 104978895B
Authority
CN
China
Prior art keywords
annotation
ground object
linear ground
outsourcing
segmentation
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.)
Active
Application number
CN201410134701.4A
Other languages
Chinese (zh)
Other versions
CN104978895A (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.)
Navinfo Co Ltd
Original Assignee
Navinfo Co Ltd
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 Navinfo Co Ltd filed Critical Navinfo Co Ltd
Priority to CN201410134701.4A priority Critical patent/CN104978895B/en
Publication of CN104978895A publication Critical patent/CN104978895A/en
Application granted granted Critical
Publication of CN104978895B publication Critical patent/CN104978895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Instructional Devices (AREA)
  • Image Analysis (AREA)

Abstract

The invention provides a kind of labeling method and device of map wire annotation, solve the problems, such as that the efficiency that annotation is chosen in existing map wire marking method is low and annotation skewness.The labeling method of the map wire annotation of the present invention includes:N etc. points of segmentation is carried out along the first direction of linear ground object, forms 1 segmentation ray perpendicular to first direction of N, wherein, N is the integer more than 1;Selected in the summit of the linear ground object positioned at continuous two summits for splitting ray both sides every described, wherein, the summit is the break of the linear ground object;According to the intersection point of the line on described two summits and the segmentation ray, the position of annotation is marked, wherein, the line is straightway.The labeling method of the map wire annotation of the present invention substantially increases the drafting speed of map so that annotation difference is uniform, and layout is more attractive in appearance.

Description

A kind of labeling method and device of map wire annotation
Technical field
The present invention relates to computer mapping technology field, more particularly to a kind of labeling method and dress of map wire annotation Put.
Background technology
The marking method of existing linear ground object, take more and annotation position is used as in the middle part of line, or by certain spacer along the line Luxuriant scattered distribution.Such a method causes the annotation of a wire map, and visually density is uneven, the annotation of a plurality of linear ground object It is overstocked.Further, since linear ground object includes multiple segmental arcs, the degree of crook of each segmental arc differs, causes to select by along linear distance The method for taking annotation point position is computationally intensive, and efficiency is low.
The content of the invention
It is an object of the invention to provide a kind of labeling method and device of map wire annotation, to solve existing map The problem of marking method efficiency is low, annotation skewness.
To achieve these goals, the invention provides a kind of labeling method of map wire annotation, including:
N etc. points of segmentation is carried out along the first direction of linear ground object, forms segmentation ray of the N-1 bars perpendicular to first direction, Wherein, N is the integer more than 1;
Selected in the summit of the linear ground object positioned at continuous two summits for splitting ray both sides every described, its In, the summit is the break of the linear ground object;
According to the intersection point of the line on described two summits and the segmentation ray, the position of annotation is marked, wherein, the company Line is straightway.
Wherein, the labeling method of above-mentioned map wire annotation, the first direction along linear ground object carry out N deciles point Cut, form N-1 bars also includes before the segmentation ray of first direction:
Obtain all annotation outsourcing frames and the linear ground object outsourcing frame;
Judge that whether the linear ground object outsourcing frame includes all annotation outsourcing frames on the first direction, draws one Judged result;
When the judged result when being, to carry out N etc. points into the first direction along linear ground object and splitting, formation N-1 bars The step of perpendicular to the segmentation ray of first direction, otherwise terminate.
Wherein, the labeling method of above-mentioned map wire annotation, the first direction are the linear ground object outsourcing frame The direction of the larger length of side, wherein, the linear ground object outsourcing frame is rectangle.
Embodiments of the invention additionally provide a kind of labelling apparatus of map wire annotation, including:
Split module, for carrying out N etc. points of segmentation along the first direction of linear ground object, form N-1 bars perpendicular to first party To segmentation ray, wherein, N is integer more than 1;
Selecting module, for being selected in the summit of the linear ground object positioned at splitting the continuous of ray both sides every described Two summits, wherein, the summit be the linear ground object break;
Mark module, for the intersection point of the line according to described two summits and the segmentation ray, mark the position of annotation Put, wherein, the line is straightway.
Wherein, the labelling apparatus of above-mentioned map wire annotation, in addition to:
Acquisition module, for carrying out N etc. points of segmentation along the first direction of linear ground object, N-1 bars are formed perpendicular to first party To segmentation ray before obtain all annotation outsourcing frames and the linear ground object outsourcing frame;
Judge module, for judging whether the linear ground object outsourcing frame includes all annotations on the first direction Outsourcing frame, draw a judged result;
Processing module, for when the judged result is to be, N deciles point to be carried out into the first direction along linear ground object Cut, form the step of N-1 bars are perpendicular to the segmentation ray of first direction, otherwise terminate.
Wherein, the labelling apparatus of above-mentioned map wire annotation, the first direction are the linear ground object outsourcing frame The direction of the larger length of side, wherein, the linear ground object outsourcing frame is rectangle.
The embodiment of the present invention has the advantages that:
The labeling method of the map wire annotation of the embodiment of the present invention, N deciles point are carried out along the first direction of linear ground object Cut, form N-1 bars perpendicular to the segmentation ray of first direction, then selected in the summit of the linear ground object positioned at every institute Continuous two summits of segmentation ray both sides are stated, wherein, the summit is the break of the linear ground object, last according to The intersection point of the line on two summits and the segmentation ray, the position of the annotation is marked, wherein, the line is straight line.This Inventive embodiments make it that annotation distribution is more uniform, annotation position pickup amount of calculation are reduced, so as to reduce map render process Resource consumption, accelerate map producing.
Brief description of the drawings
Fig. 1 is the method flow diagram of the embodiment of the present invention;
Fig. 2 is the first drafting surface chart of the embodiment of the present invention;
Fig. 3 is the second drafting surface chart of the embodiment of the present invention;
Fig. 4 is traditional linear ground object annotation design sketch;
Fig. 5 is the linear ground object annotation design sketch of the embodiment of the present invention;
Fig. 6 is the structured flowchart of the embodiment of the present invention.
Embodiment
To make the technical problem to be solved in the present invention, technical scheme and advantage clearer, below in conjunction with specific implementation Example and accompanying drawing are described in detail.
The embodiment of the present invention solves the problems, such as that existing writing method efficiency is low, annotation skewness, and the present invention is real Apply example and provide a kind of labeling method of map wire annotation, as shown in figure 1, wherein, the mark side of the map wire annotation Method includes:
Step 10:N etc. points of segmentation is carried out along the first direction of linear ground object, forms point of the N-1 bars perpendicular to first direction Ray is cut, wherein, N is the integer more than 1;
In a particular embodiment of the present invention, the linear ground object is entered in the first direction according to the spacing distance between annotation Row N deciles so that maintained a certain distance between annotation and annotation, and make annotation be uniformly distributed in whole picture.
Step 20:Continuous two positioned at segmentation ray both sides every described are selected in the summit of the linear ground object Summit, wherein, the summit is the break of the linear ground object;
Step 30:According to the intersection point of the line on described two summits and the segmentation ray, the position of annotation is marked, its In, the line is straightway.
The labeling method of the map wire annotation of the embodiment of the present invention, chosen on linear ground object positioned at every segmentation ray Two summits of both sides, and using intersection point of the line on two summits with splitting ray as the position of annotation, substantially increase ground The drafting speed of figure, reduce annotation position pickup amount of calculation.
In the labeling method of the map wire annotation of the embodiment of the present invention, the first direction along linear ground object carries out N Decile is split, and form N-1 bars also includes before the segmentation ray of first direction:
Obtain all annotation outsourcing frames and the linear ground object outsourcing frame;
Judge that whether the linear ground object outsourcing frame includes all annotation outsourcing frames on the first direction, draws one Judged result;
When the judged result when being, to carry out N etc. points into the first direction along linear ground object and splitting, formation N-1 bars The step of perpendicular to the segmentation ray of first direction, otherwise terminate.
In a particular embodiment of the present invention, the annotation outsourcing frame is specially annotation pixel shared in screen is drawn Space;Linear ground object outsourcing frame is linear ground object pixel space shared in screen is drawn.
The embodiment of the present invention judges whether the scope that linear ground object is drawn can accommodate all annotations, when annotation drafting scope is big When linear ground object draws scope, no longer carry out annotation and draw position calculating, to reduce the unnecessary wasting of resources.
In the labeling method of the map wire annotation of the embodiment of the present invention, the first direction is the linear ground object outsourcing The direction of the larger length of side of frame, wherein, the linear ground object outsourcing frame is rectangle.
The labeling method of the map wire annotation of the embodiment of the present invention, without scanning along the line, not by exactly accurate side Formula pickup annotation position, the embodiment of the present invention greatly reduce the pickup of annotation position by the way of outline chooses annotation position Amount of calculation, the resource consumption of map render process is reduced, and make it that annotation layout is more attractive in appearance.
Concrete example illustrates the implementation of above-described embodiment below.
In a particular embodiment of the present invention, such as by " Yarlung Zangbo River " five words flow point dissipates mark along the river, now, needs Select five annotation points.First, it is annotation and linear ground object to calculate annotation and draw scope and linear ground object drafting scope The shared pixel space in screen is drawn.It is assumed that determine that the spacing distance between each annotation point is 1cm, if finding five annotations Point can not be plotted in the pixel space where linear ground object completely, now should not then be drawn.When painting for five annotation points Scope processed without departing from the linear ground object drafting scope when, as shown in Figures 2 and 3, the first direction along linear ground object is water Square to 5 grades point segmentation is carried out, 4 segmentation rays perpendicular to first direction are formed;Then select positioned at every segmentation ray Continuous two summits of both sides;Finally according to the intersection point of the line on two summits and segmentation ray, the position of annotation is marked, its In, line is straightway.
In the embodiment of the present invention, as shown in figure 3, not according to the annotation position that annotation point is chosen along linear distance, but by line The summit of shape atural object is contrasted with every segmentation ray, is selected respectively on the nearest top of the segmentation lateral extent of ray two segmentation ray Point, most intersection point of the line on two summits with splitting ray as annotation position, solves traditional annotation method for drafting at last In, due to the degree of crook difference of linear ground object cause calculate annotation between along linear distance it is relatively difficult the problem of, substantially reduce Amount of calculation, improves drafting efficiency.
Fig. 4 is effect caused by traditional wire writing method, such as the road wire annotation in map of navigation electronic Situation, it is necessary to carry out annotation for the numbering of road, general numbering is combined by several English alphabets or numeral, and due to Road often has up, descending two less parallel lines, and the annotation on two parallel lines causes identical annotation weight apart from close Multiple, drawing information density is too high.Map wire marking method of the present invention is used for such a situation, and according to linear ground object Distribution character, rationally and effectively typesetting wire annotation, as shown in figure 5, the embodiment of the present invention reduces drawing annotation density, effectively Disperse identical annotation, enhance the readability of map.The embodiment of the present invention uses by the way of outline chooses annotation position Predefined several point positions, such as 1/5,2/5,3/5 equally divided position, the annotation that then accurate calculating falls in bisector draw position, Annotation position pickup amount of calculation is greatly reduced, improves the drafting speed of map.
The embodiment of the present invention additionally provides a kind of labelling apparatus of map wire annotation, as shown in fig. 6, including:
Split module 1, for carrying out N etc. points of segmentation along the first direction of linear ground object, form N-1 bars perpendicular to first party To segmentation ray, wherein, N is integer more than 1;
Selecting module 2, for being selected in the summit of the linear ground object positioned at the company for splitting ray both sides every described Two continuous summits, wherein, the summit is the break of the linear ground object;
Mark module 3, for the intersection point of the line according to described two summits and the segmentation ray, mark the position of annotation Put, wherein, the line is straightway.
In the labelling apparatus of the map wire annotation of the embodiment of the present invention, in addition to:
Acquisition module, for carrying out N etc. points of segmentation along the first direction of linear ground object, N-1 bars are formed perpendicular to first party To segmentation ray before obtain all annotation outsourcing frames and the linear ground object outsourcing frame;
Judge module, for judging whether the linear ground object outsourcing frame includes all annotations on the first direction Outsourcing frame, draw a judged result;
Processing module, for when the judged result is to be, N deciles point to be carried out into the first direction along linear ground object Cut, form the step of N-1 bars are perpendicular to the segmentation ray of first direction, otherwise terminate.
In the labelling apparatus of the map wire annotation of the embodiment of the present invention, the first direction is the linear ground object outsourcing The direction of the larger length of side of frame, wherein, the linear ground object outsourcing frame is rectangle.
The labeling method and device of the map wire annotation of the embodiment of the present invention, greatly reduce the pickup of annotation position and calculate Amount, improve the drafting efficiency of writing so that annotation distribution is more uniform, and annotation layout is more attractive in appearance.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention God any modification, equivalent substitution and improvements made etc., should be included in the scope of the protection with principle.

Claims (4)

  1. A kind of 1. labeling method of map wire annotation, it is characterised in that including:
    All annotation outsourcing frame and linear ground object outsourcing frames are obtained, the annotation outsourcing frame is that annotation is shared in screen is drawn Pixel space;Linear ground object outsourcing frame is linear ground object pixel space shared in screen is drawn;
    Judge that whether the linear ground object outsourcing frame includes all annotation outsourcing frames on first direction, draws a judgement knot Fruit;
    When the judged result for when being, N etc. points of segmentations are carried out along the first direction of linear ground object, N-1 articles is formed perpendicular to the The segmentation ray in one direction, wherein, N is the integer more than 1;
    Selected in the summit of the linear ground object positioned at continuous two summits for splitting ray both sides every described, wherein, The summit is the break of the linear ground object;
    According to the intersection point of the line on described two summits and the segmentation ray, the position of annotation is marked, wherein, the line is Straightway.
  2. 2. the labeling method of map wire annotation according to claim 1, it is characterised in that
    The first direction is the direction of the larger length of side of the linear ground object outsourcing frame, wherein, the linear ground object outsourcing frame For rectangle.
  3. A kind of 3. labelling apparatus of map wire annotation, it is characterised in that including:
    Acquisition module, for obtaining all annotation outsourcing frame and linear ground object outsourcing frames, the annotation outsourcing frame is that annotation exists Draw pixel space shared in screen;Linear ground object outsourcing frame is linear ground object pixel space shared in screen is drawn;
    Judge module, for judging whether the linear ground object outsourcing frame includes all annotation outsourcing frames on first direction, Draw a judged result;
    Split module, for when the judged result is to be, carrying out N etc. points of segmentation along the first direction of linear ground object, being formed N-1 bars perpendicular to first direction segmentation ray, wherein, N is integer more than 1;
    Selecting module, for selecting continuous two positioned at segmentation ray both sides every described in the summit of the linear ground object Individual summit, wherein, the summit is the break of the linear ground object;
    Mark module, for the intersection point of the line according to described two summits and the segmentation ray, the position of annotation is marked, its In, the line is straightway.
  4. 4. the labelling apparatus of map wire annotation according to claim 3, it is characterised in that the first direction is described The direction of the larger length of side of linear ground object outsourcing frame, wherein, the linear ground object outsourcing frame is rectangle.
CN201410134701.4A 2014-04-03 2014-04-03 A kind of labeling method and device of map wire annotation Active CN104978895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410134701.4A CN104978895B (en) 2014-04-03 2014-04-03 A kind of labeling method and device of map wire annotation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410134701.4A CN104978895B (en) 2014-04-03 2014-04-03 A kind of labeling method and device of map wire annotation

Publications (2)

Publication Number Publication Date
CN104978895A CN104978895A (en) 2015-10-14
CN104978895B true CN104978895B (en) 2018-03-30

Family

ID=54275367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410134701.4A Active CN104978895B (en) 2014-04-03 2014-04-03 A kind of labeling method and device of map wire annotation

Country Status (1)

Country Link
CN (1) CN104978895B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109726368B (en) * 2017-10-31 2021-09-28 腾讯科技(深圳)有限公司 Map marking method and device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002163266A (en) * 2000-11-27 2002-06-07 Nagai Geological Survey Inc Map display method, system, program and storage medium
JP3966325B2 (en) * 2004-12-02 2007-08-29 株式会社デンソー Vehicle navigation apparatus and map data reading method in the apparatus
CN1731475A (en) * 2005-06-08 2006-02-08 武汉虹信通信技术有限责任公司 Method for realizing dynamic point ground feature annotation of GIS
CN101593455A (en) * 2008-10-23 2009-12-02 中国科学院地理科学与资源研究所 The collocation method and the device of the mobile annotation of electronic chart wire
CN101645213A (en) * 2009-06-05 2010-02-10 北京四维图新科技股份有限公司 Configuration method of area feature annotation based on double visual center and device thereof
CN101577068B (en) * 2009-06-05 2011-03-23 北京四维图新科技股份有限公司 Method and device for allocating facet element mark based on visual center
CN102237010B (en) * 2011-07-28 2015-07-15 中国测绘科学研究院 Annotation method for complicated linear elements
CN103093686B (en) * 2011-11-04 2015-03-11 北京中交兴路信息科技有限公司 Method and system of electronic map line marking
CN102568302B (en) * 2011-12-31 2013-10-16 北京地拓科技发展有限公司 Method and device for map annotation
CN103489363B (en) * 2012-06-08 2016-03-02 北京华胜天成科技股份有限公司 Electronic mapping system neutral shape element annotation data processing method and system

Also Published As

Publication number Publication date
CN104978895A (en) 2015-10-14

Similar Documents

Publication Publication Date Title
CN110796031B (en) Table identification method and device based on artificial intelligence and electronic equipment
CN106157341A (en) Generate the method and device of synthesising picture
CN101727580B (en) Image processing apparatus, image processing unit, and image processing method
JP2006048532A5 (en)
CN103021262B (en) Method and system for processing drawing of map labels
CN104952083B (en) A kind of saliency detection method based on the modeling of conspicuousness target background
CA2429507A1 (en) Writing guide for a free-form document editor
CN105139334B (en) The preparation method of multline text watermark
CN104408754B (en) A kind of icon synthetic method
WO2017036264A1 (en) Two-dimensional code preliminary positioning method and system
TWI497420B (en) Two-dimentional optical indetification device with same gray level for quickly decoding and method for decoding the same
CN103903275A (en) Method for improving image segmentation effects by using wavelet fusion algorithm
US20170193682A1 (en) Method and apparatus for generating a composite image based on an ambient occlusion
CN103489363B (en) Electronic mapping system neutral shape element annotation data processing method and system
CN106297536B (en) Method and device for determining labeling position of planar graphic element name in electronic map
CN104978895B (en) A kind of labeling method and device of map wire annotation
CN103606179A (en) Animation image display method and device
CN105719261A (en) Point cloud data combination system and method
CN103310409A (en) Quick triangle partitioning method of Tile-based rendering architecture central processing unit (CPU)
CN103914825A (en) Three-dimensional model texture coloring method based on image segmentation
JP2014038518A (en) Handwritten document processing device, method, and program
CN108492345B (en) Data block dividing method based on scale transformation
JP7515697B2 (en) IMAGE SAMPLE GENERATION METHOD, TEXT RECOGNITION METHOD, APPARATUS, ELECTRONIC DEVICE, STORAGE MEDIUM, AND COMPUTER PROGRAM
CN104008558B (en) Bezier curve rasterization processing method and system
JP2011210160A5 (en) Image processing method, image processing apparatus, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant