CN106557504A - A kind of composition method and device of road in electronic map lteral data - Google Patents
A kind of composition method and device of road in electronic map lteral data Download PDFInfo
- Publication number
- CN106557504A CN106557504A CN201510627919.8A CN201510627919A CN106557504A CN 106557504 A CN106557504 A CN 106557504A CN 201510627919 A CN201510627919 A CN 201510627919A CN 106557504 A CN106557504 A CN 106557504A
- Authority
- CN
- China
- Prior art keywords
- road
- data
- letterings
- position coordinates
- geographical position
- 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
Abstract
The present invention provides a kind of composition method and device of road in electronic map lteral data, and method includes:From the Road letterings data queue of pre-sorting, a Road letterings data are chosen every time;According to the size of the geographical position coordinates, electronic chart engineer's scale and default display screen of the Road letterings data chosen, the geographical position coordinates scope of the electronic chart that display screen shows is obtained, electronic chart includes Road letterings data and Road letterings data are located at the center of display screen;From typesetting Road letterings data queue, the Road letterings data that geographical position coordinates fall into the geographical position coordinates scope of electronic chart are obtained;The Road letterings data of selection are carried out into gland judgement with the Road letterings data for obtaining out, if no gland, the Road letterings data of selection is added in typesetting Road letterings data queue.The rendering efficiency of electronic chart can be lifted, it is ensured that the word of every road uniformly can show on electronic chart.
Description
Technical field
The present invention relates to Cartographic Technique field, more particularly to a kind of typesetting of road in electronic map lteral data
Method and apparatus.
Background technology
At present, electronic chart can also be shown in addition to it can show the title of administrative region and building
Road letterings, such as Middle Road, North 4th Ring Road, G1 high speeds or G104 national highways etc..Wherein Middle Road, North 4th Ring Road belongs to
In road name, G1 and G104 belongs to road designation.
The quantity of the Road letterings data of electronic chart is too many, prior art, is to ensure rendering for electronic chart
Effect, it will usually Road letterings data are screened by map or navigation engine in electronics render process.
A kind of method that electronic map road shows label character is provided in prior art, obtains aobvious first
Show the electronic chart under grade;The first word buffering create on first road of word needing mark to be shown
Area;The word that shown being located on electronic chart in the first word buffering area is obtained, calculating has shown text
The viewing area of word, removes the viewing area for having shown word in the first word buffering area, obtains second
Word buffering area;The 3rd word buffering area created on the second road for needing mark to show word is obtained,
3rd word buffering area and the second word buffering area have overlapping region, in the second word buffering area remove weight
Folded region, obtains label character region of first road under the first display level.
But, by two road, this method of the above shows that the buffering area of word removes overlapped part and obtains
Take the region of label character.So for road network relatively dredges dilute region, roadside is label character region,
Cause to show the phenomenon of word repeat mark on same road.And only calculating Road letterings can mark area
Domain, does not limit to Road letterings quantity, causes the area road text importing quantity having too many, has
Area road text importing quantity is very little.
Therefore, those skilled in the art need to provide a kind of typesetting side of road in electronic map lteral data
Method, on the one hand can lift the rendering efficiency of electronic chart, on the other hand ensure that on electronic chart per bar
The word of road uniformly can show, be not in that the region having shows too intensive, and some regions show too dilute
Thin problem.
The content of the invention
The technical problem to be solved in the present invention is to provide a kind of typesetting side of road in electronic map lteral data
Method and device, on the one hand can lift the rendering efficiency of electronic chart, on the other hand ensure that electronic chart
The word of upper every road uniformly can show, be not in that the region having shows too intensive, and some regions show
Show too sparse problem.
The embodiment of the present invention provides a kind of composition method of road in electronic map lteral data, including:
From the Road letterings data queue of pre-sorting, a Road letterings data are chosen every time;
Geographical position coordinates, electronic chart engineer's scale and default display according to the Road letterings data chosen
The size of screen, obtains the geographical position coordinates scope of the electronic chart that the display screen shows, the electricity
Sub- map includes the Road letterings data and the Road letterings data are located at the center of the display screen;
From typesetting Road letterings data queue, the ground that geographical position coordinates fall into the electronic chart is obtained
The Road letterings data of reason position coordinates scope;
The Road letterings data of the selection are carried out into gland judgement with the Road letterings data for obtaining out, if
Without gland, then the Road letterings data of the selection are added to into the typesetting Road letterings data queue
In.
Preferably, from the Road letterings data queue of pre-sorting, a Road letterings data are chosen every time,
Also include before:
All of Road letterings data are ranked up to form the road according at least one in following parameter
Road lteral data queue:Category of roads, word string length, geographical position coordinates size and literal type;
The high priority of category of roads is low higher than category of roads;
The priority of word string length length is short higher than length;
The big priority of the geographical position coordinates priority little higher than geographical position coordinates or geographical position are sat
The little priority of the mark priority big higher than geographical position coordinates;
Literal type rank is followed successively by from high to low:Road name, road designation;
Category of roads, word string length, boundary rectangle frame lower-left angular coordinate, the priority of literal type are by height
It is followed successively by low:Category of roads, word string length, geographical position coordinates size and literal type.
Preferably, in the Road letterings data queue from pre-sorting, a road text is chosen every time
Digital data, also includes before:
According to the geographical position coordinates of the shape point of road, the geography of the Road letterings data of the road is obtained
Position coordinates;
By the geographical position coordinates of the Road letterings data, the word string length of Road letterings data, preset
Road letterings data in each word width and the size of high, electronic chart engineer's scale and the display screen
Obtain the geographical position coordinates on the summit of the boundary rectangle frame of Road letterings data.
Preferably, the Road letterings data by the selection are pressed with the Road letterings data for obtaining out
Lid judgement, specially:
Judge that the road in the Road letterings data of the selection and the Road letterings data queue of typesetting is literary
Whether digital data repeats;
If it is not, then the boundary rectangle frame for judging the Road letterings data of the selection and the road text for obtaining out
Whether the boundary rectangle frame of digital data intersects;
If non-intersect, it is determined that no gland.
Preferably, in the boundary rectangle frame and the road text for obtaining out of the Road letterings data for judging the selection
Whether the boundary rectangle frame of digital data intersects, and also includes before:
Whether the bar number of the Road letterings data that judgement is obtained out is less than default numerical value;
If it is not, then continuation judges the boundary rectangle frame and the road for obtaining out of the Road letterings data of the selection
Whether the boundary rectangle frame of road lteral data intersects.
The embodiment of the present invention also provides a kind of composing device of road in electronic map lteral data, including:Choosing
Take unit, display screen coordinate obtaining unit, Road letterings data capture unit and gland judging unit;
The selection unit, for, from the Road letterings data queue of pre-sorting, choosing a road every time
Road lteral data;
The display screen coordinate obtaining unit, sits for the geographical position according to the Road letterings data chosen
The size of mark, electronic chart engineer's scale and default display screen, obtains the electronic chart of the screen display
Geographical position coordinates scope, the electronic chart includes the Road letterings data and the Road letterings number
According to positioned at the center of the display screen;
The Road letterings data capture unit, for, from typesetting Road letterings data queue, obtaining ground
Reason position coordinates falls into the Road letterings data of the geographical position coordinates scope of the electronic chart;
The gland judging unit, for by the Road letterings data of the selection and the Road letterings for obtaining out
Data carry out gland judgement, if no gland, the Road letterings data of the selection are added to described
In typesetting Road letterings data queue.
Preferably, the device also includes:Sequence forms unit;
The sequence forms unit, for according at least one in following parameter to all of Road letterings number
The Road letterings data queue to be formed according to being ranked up:Category of roads, word string length, geographical position are sat
Mark size and literal type;
The high priority of category of roads is low higher than category of roads;
The priority of word string length length is short higher than length;
The big priority of the geographical position coordinates priority little higher than geographical position coordinates or geographical position are sat
The little priority of the mark priority big higher than geographical position coordinates;
Literal type rank is followed successively by from high to low:Road name, road designation;
Category of roads, word string length, boundary rectangle frame lower-left angular coordinate, the priority of literal type are by height
It is followed successively by low:Category of roads, word string length, geographical position coordinates size and literal type.
Preferably, the device also includes:The geographical position coordinates obtaining unit and external square of Road letterings data
The geographical position coordinates obtaining unit on the summit of shape frame;
The geographical position coordinates obtaining unit of the Road letterings data, for the ground of the shape point according to road
Reason position coordinates, obtains the geographical position coordinates of the Road letterings data of the road;
The geographical position coordinates obtaining unit on the summit of the boundary rectangle frame, for by the Road letterings number
According to geographical position coordinates, the word string length of Road letterings data, in default Road letterings data each
The size of the width of word and high, electronic chart engineer's scale and the display screen obtains the outer of Road letterings data
Connect the geographical position coordinates on the summit of rectangle frame.
Preferably, the gland judging unit includes:Repeat judgment sub-unit, intersect judgment sub-unit and true
Stator unit;
It is described to repeat judgment sub-unit, for judging the Road letterings data of the selection and the road of typesetting
Whether the Road letterings data in lteral data queue repeat;
The intersecting judgment sub-unit, for judging the Road letterings number chosen when the judgment sub-unit that repeats
When not repeating according to the Road letterings data in the Road letterings data queue with typesetting, the selection is judged
Road letterings data boundary rectangle frame and the Road letterings data for obtaining out boundary rectangle frame whether phase
Hand over;
The determination subelement, for judging the Road letterings data chosen when the intersecting judgment sub-unit
When boundary rectangle frame is non-intersect with the boundary rectangle frame of the Road letterings data for obtaining out, it is determined that there is no gland.
Preferably, the gland judging unit also includes:Bar number judgment sub-unit;
The bar number judgment sub-unit, for judging the bar number of the Road letterings data for obtaining out whether less than pre-
If numerical value;If it is not, then the intersecting judgment sub-unit judges the outer of the Road letterings data of the selection
Connect rectangle frame and whether intersect with the boundary rectangle frame of the Road letterings data for obtaining out.
Compared with prior art, the present invention has advantages below:
For the Road letterings data that each is chosen, the ground of the electronic chart that the display screen shows is obtained
Reason position coordinates scope, the electronic chart include the Road letterings data and the Road letterings data bit
In the center of the display screen, from typesetting Road letterings data queue, obtain geographical position coordinates and fall
Enter the Road letterings data of the geographical position coordinates scope of the electronic chart;The Road letterings data that will be chosen
Gland judgement is carried out with the Road letterings data for obtaining, the Road letterings data of selection do not have the road of gland acquisition
During the lteral data of road, just the Road letterings data of selection are added in typesetting Road letterings data queue,
So ensure Road letterings data in typesetting Road letterings data queue no gland from each other, can be with
It is understood by, the Road letterings data in typesetting Road letterings data queue are finally to need in electronic chart
The Road letterings data of upper display.Due between the Road letterings data in typesetting Road letterings data queue
After carrying out gland judgement, therefore, final current display screen shows the road on each electronic chart
Road lteral data is uniform, is not in too sparse or too intensive situation.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to implementing
Example or accompanying drawing to be used needed for description of the prior art are briefly described, it should be apparent that, describe below
In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying
On the premise of going out creative work, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is one flow process of composition method embodiment of the road in electronic map lteral data that the present invention is provided
Figure;
Fig. 2 is two flow process of composition method embodiment of the road in electronic map lteral data that the present invention is provided
Figure;
Fig. 3 is one signal of composing device embodiment of the road in electronic map lteral data that the present invention is provided
Figure;
Fig. 4 is two signal of composing device embodiment of the road in electronic map lteral data that the present invention is provided
Figure;
Fig. 5 is three signal of composing device embodiment of the road in electronic map lteral data that the present invention is provided
Figure.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
Chu, it is fully described by, it is clear that described embodiment is only a part of embodiment of the invention, rather than
Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation
Property work under the premise of the every other embodiment that obtained, belong to the scope of protection of the invention.
It is understandable to enable the above objects, features and advantages of the present invention to become apparent from, it is right below in conjunction with the accompanying drawings
The specific embodiment of the present invention is described in detail.
Embodiment of the method one:
The composition method of the road in electronic map lteral data provided for the present invention referring to Fig. 1, the figure is implemented
One flow chart of example.
The composition method of the road in electronic map lteral data that the present embodiment is provided, including:
S101:From the Road letterings data queue of pre-sorting, a Road letterings data are chosen every time,
Such as, " Fu Tong East Street " is a Road letterings data;
Road letterings data are ranked up to form queue according to pre-defined rule in advance, it is to be understood that in advance
, according to prioritization, the high sequence of priority is in front, priority for Road letterings data in the queue of sequence
Low sequence needs the Road letterings data of preferential display to come front on electronic chart rear.Choose
When first choose queue in the preceding Road letterings data that sort be made whether the judgement of typesetting.
It is understood that the queue of pre-sorting includes all road texts on the electronic chart of prior art
Digital data, but these Road letterings data will not be fully displayed at electricity after the method that the present embodiment is provided
On sub- map, but a part of Road letterings data rejected in current display screen are not shown, for example
Originally current display screen shows that the Road letterings data of electronic chart include 200 altogether, but passes through this reality
100 Road letterings data may be only shown after applying the method for example.
S102:According to geographical position coordinates of Road letterings data, electronic chart engineer's scale chosen and default
Display screen size, obtain the geographical position coordinates scope of the electronic chart that the display screen shows,
The electronic chart includes the Road letterings data and the Road letterings data are located at the display screen
Center;
Current display screen when S102 is to obtain with the Road letterings data chosen as display screen center
The geographical position coordinates scope of the electronic chart of display, to obtain typesetting in the range of the geographical position coordinates
Road letterings data.
S103:From typesetting Road letterings data queue, obtain geographical position coordinates fall into it is described electronically
The Road letterings data of the geographical position coordinates scope of figure;
It should be noted that due to the present embodiment provide method be one circulation typesetting the step of, therefore
When S103 is performed for the first time, typesetting Road letterings data queue is sky, therefore, the road that S101 is chosen
Road lteral data is directly appended in typesetting Road letterings data queue, but passing with cycle-index
Increase, typesetting Road letterings data queue is not sky, then, when S103 is performed again, obtain geographical position coordinates
The Road letterings data for falling into the geographical position coordinates scope of the electronic chart include N bars, now need
The Road letterings data of selection and this N bar Road letterings data are carried out into gland judgement, that is, performs S104.
S104:The Road letterings data of the selection are carried out gland with the Road letterings data for obtaining out to sentence
It is disconnected, if no gland, the Road letterings data of the selection are added to into the typesetting Road letterings
In data queue.
Understand for convenience, be exemplified below.
For example, the Road letterings data of selection are A, and the Road letterings data for obtaining out are N bars, by A
Gland judgement is carried out with the N bars Road letterings data.If gland, then A is not added to typesetting
In Road letterings data queue, if no gland, A is added to into typesetting Road letterings data team
In row.It should be noted that passing through in referring to whole electronic chart in typesetting Road letterings data queue
The Road letterings data of the method typesetting that the present embodiment is provided, e.g. M, it is clear that M is more than N.
N is only the road in the range of the geographical position coordinates of the electronic chart that the current display screen that M includes shows
Road lteral data bar number.Only when not starting to carry out Road letterings data typesetting, that is, typesetting
Road letterings data queue is sky, then M=0.
The method that the present embodiment is provided, for the Road letterings data that each is chosen, obtains the display screen
The geographical position coordinates scope of the electronic chart that curtain shows, the electronic chart include the Road letterings data
And the Road letterings data are located at the center of the display screen, from typesetting Road letterings data queue
In, obtain the Road letterings number that geographical position coordinates fall into the geographical position coordinates scope of the electronic chart
According to.The Road letterings data of selection are carried out into gland judgement, the road of selection with the Road letterings data for obtaining
When lteral data does not have the Road letterings data that gland is obtained, just the Road letterings data of selection are added to
In typesetting Road letterings data queue, so ensure the Road letterings number in typesetting Road letterings data queue
According to no gland from each other, it is to be understood that Road letterings in typesetting Road letterings data queue
Data are the Road letterings data for finally needing to show on electronic chart.Due to typesetting Road letterings data
After gland judgement is carried out between Road letterings data in queue, therefore, final current display screen
The Road letterings data on each electronic chart for showing are uniform, are not in too sparse or too intensive
Situation.
Embodiment of the method two:
The composition method of the road in electronic map lteral data provided for the present invention referring to Fig. 2, the figure is implemented
Two flow chart of example.
The composition method of the road in electronic map lteral data that the present embodiment is provided, including:
S201:According to the geographical position coordinates of the shape point of road, the Road letterings data of the road are obtained
Geographical position coordinates;
It should be noted that in electronic chart, every road includes many shape points, by these shape points
Couple together to form road.Each shape point has geographical position coordinates, therefore, by the geography of shape point
Position coordinates can represent road geographical position coordinates, can obtain the road by the geographical position coordinates of shape point
The geographical position coordinates of the corresponding Road letterings data in road.
It is understood that road is divided into section by crossing, it is preferred that the embodiment of the present invention, can be pre-
Each section for being set to road calculates K Road letterings data geographic position coordinates, K be more than or wait
In 1 integer, such as K is 3, will road section length be divided into 3 sections, the geographical position of Road letterings data
Put the central point geographical position coordinates that coordinate is each section after dividing equally.Such as, a road is divided into 3
Bar section, is preset as the geographical position coordinates that each section calculates 3 Road letterings data, is then eventually
The Road letterings data of the road calculate 9 geographical position coordinates.Now, the shape point according to road
Geographical position coordinates, the geographical position coordinates for obtaining the Road letterings data of the road are specially:
According to the geographical position coordinates of the shape point of road, it is that the Road letterings data of the road obtain K*J
Individual geographical position coordinates, wherein, J is the bar number in the section for constituting road, and K need to for default every section
The number of the geographical position coordinates calculated by Road letterings data, the numerical value of K can by technical staff according to
Demand sets.The specific embodiment is applied to all embodiments of the invention.
Road letterings data can be road name, Middle Road, North 4th Ring Road;Can also be road designation, such as it is high
Fast G1, national highway G104 etc..
S202:By the geographical position coordinates of the Road letterings data, the word string length of Road letterings data,
The width of each word and height, electronic chart engineer's scale and the display screen in default Road letterings data
Size obtains the geographical position coordinates on the summit of the boundary rectangle frame of Road letterings data.
It should be noted that the geographical position coordinates for obtaining the summit of the boundary rectangle frame of Road letterings data can
Think the geographical position coordinates and external square of the lower-left angular vertex of the boundary rectangle frame for obtaining Road letterings data
The geographical position coordinates of the upper right angular vertex of shape frame.
It is understood that the upper right angular vertex of the geographical position coordinates and boundary rectangle frame by lower-left angular vertex
Geographical position coordinates can obtain the geographical position coordinates of boundary rectangle frame.
S203:All of Road letterings data are ranked up to form institute according at least one in following parameter
State Road letterings data queue:Category of roads, word string length, geographical position coordinates size and literal type;
When being understandable that sequence permutation the parameter of foundation can be only more than one kind in four kinds of parameters, example
Such as only have category of roads, wherein, during sequence, the priority of the high Road letterings data of category of roads is higher than road
The low Road letterings data of grade, the category of roads include from high to low successively:Highway, national highway,
City expressway, provincial highway, major urban arterial highway, city subsidiary road, Ordinary Rd, thin road, navigation channel.
The priority of word string length length is short higher than length.
The big priority of the geographical position coordinates priority little higher than geographical position coordinates or geographical position are sat
The little priority of the mark priority big higher than geographical position coordinates.
Wherein, geographical position coordinates are any one following:The geographical position coordinates of Road letterings data,
The external square of the lower left corner geographical position coordinates and Road letterings data of the boundary rectangle frame of Road letterings data
The upper right corner geographical position coordinates of shape frame.
Literal type rank is followed successively by from high to low:Road name, road designation.
To solve the sequence of the parameter priority identical Road letterings data that single parameter is produced, this area skill
Art personnel can select plural parameter to be ranked up Road letterings data from above-mentioned parameter.Than
Such as, when category of roads is identical, determining whether for word string length can be increased.Word string length length
The priority of the priority of the Road letterings data Road letterings data short more than word string length.When the ginseng
Number includes:The tier levels of Road letterings, word string length, geographical position coordinates size and literal type four
Kind when, Road letterings are ranked up to form the priority of the sequence and be followed successively by from high to low:Road letterings
Tier levels, word string length, geographical position coordinates size and literal type.
S204-S206 is identical with the S101-S103 in embodiment of the method one respectively, will not be described here.
The Road letterings data of the selection are carried out into gland judgement with the Road letterings data for obtaining out, specifically
For:
S207:Judge the road in the Road letterings data of the selection and the Road letterings data queue of typesetting
Whether road lteral data repeats;If it is not, then performing S208;If (repetition), then S204 is returned;
S208:Judge the boundary rectangle frame and the Road letterings number for obtaining out of the Road letterings data of the selection
According to boundary rectangle frame whether intersect;If it is not, then S209 is performed, if it is not, then returning S204;
It should be noted that when judging whether boundary rectangle frame intersecting, can be by the outer of the Road letterings chosen
Each one coordinate unit of movement is distinguished in four positions up and down to connect rectangle frame, and when up and down, four positions are moved
After dynamic, this four positions are intersected with the boundary rectangle frame of the Road letterings in the range of the display screen of screening
When, it is determined that it is intersecting.If after mobile, having a position non-intersect, it is determined that non-intersect.So be for
When being finely adjusted to Road letterings, display effect of the Road letterings on road is not affected, i.e., in critical model
In enclosing.
S209:If non-intersect, it is determined that no gland, the Road letterings of the selection are added to described
In the Road letterings data queue of typesetting.
It should be noted that preferably S207 and S208 have sequencing, that is, first determine whether road text
Whether word repeats, then judges whether boundary rectangle frame intersects.
It should be noted that the bar number in order to reduce the Road letterings data that electronic chart shows, can with
Step is judged below increasing between S207 and S208:Whether the bar number of the Road letterings data that judgement is obtained out
Less than default numerical value;If it is not, then continuation judges the boundary rectangle frame of the Road letterings data of the selection
Whether intersect with the boundary rectangle frame of the Road letterings data for obtaining out.
For example for the bar number of Road letterings data for reducing showing on electronic chart, display screen can be set
The bar number of most multidisplay Road letterings data in coordinate range, for example, 100, more than 100, just
No longer typesetting Road letterings data in the display screen coordinate range.
The method that the present embodiment is provided, it is possible to reduce the bar number of the Road letterings data shown on electronic chart,
For example using the method for prior art, assume to show 1000 Road letterings data on electronic chart, but
After by the composition method of the present embodiment, the Road letterings data strip number shown on electronic chart is less than
1000.The Road letterings data of repetition are shown on the electronic chart that current display screen shows no longer, and
The bar number maximum for allowing the Road letterings data for showing is default value, if two road lteral data
Boundary rectangle frame intersects, then shielding the Road letterings data in rear selection does not carry out typesetting, certainly road text
Digital data subsequently will not be also displayed on electronic chart.This ensure that current display screen shows each electricity
The Road letterings data shown on sub- map are uniform, are not in that Road letterings data display is excessively dilute
Dredge, or excessively dense situation.
A kind of composition method of the road in electronic map lteral data provided based on above example, the present invention
Embodiment additionally provides a kind of composing device of road in electronic map lteral data, carries out below in conjunction with the accompanying drawings
Detailed introduction.
Device embodiment one:
The composing device of the road in electronic map lteral data provided for the present invention referring to Fig. 3, the figure is implemented
One schematic diagram of example.
The composing device of the road in electronic map lteral data that the present embodiment is provided, including:Choose unit
301st, display screen coordinate obtaining unit 302, Road letterings data capture unit 303 and gland judge single
Unit 304;
The selection unit 301, for, from the Road letterings data queue of pre-sorting, choosing one every time
Bar Road letterings data;
Road letterings data are ranked up to form queue according to pre-defined rule in advance, it is to be understood that in advance
, according to prioritization, the high sequence of priority is in front, priority for Road letterings data in the queue of sequence
Low sequence on electronic chart, is needed the Road letterings data of preferential display to come front, is chosen rear
When first choose queue in the preceding Road letterings data that sort be made whether the judgement of typesetting.
It is understood that the queue of pre-sorting includes all road texts on the electronic chart of prior art
Digital data, but these Road letterings data will not be fully displayed at electricity after the method that the present embodiment is provided
On sub- map, but a part of Road letterings data are rejected in current screen and is not shown, for example originally
The Road letterings data that electronic chart current screen shows include 200 altogether, but through the side of the present embodiment
100 Road letterings data may be only shown after method.
The display screen coordinate obtaining unit 302, for the geographical position according to the Road letterings data chosen
The size of coordinate, electronic chart engineer's scale and default display screen is put, the electronics of the screen display is obtained
The geographical position coordinates scope of map, the electronic chart include the Road letterings data and road text
Word data bits are in the center of the display screen;
The Road letterings queue acquiring unit 303, for, from typesetting Road letterings data queue, obtaining
Take the Road letterings data that geographical position coordinates fall into the geographical position coordinates scope of the electronic chart;
It should be noted that choosing the process that unit 301 is circulation, when choosing for the first time, geographical position is obtained
The Road letterings data for putting the geographical position coordinates scope that coordinate falls into the electronic chart are 0, but with
And choose being incremented by for number of times, obtain the geographical position coordinates scope that geographical position coordinates fall into the electronic chart
Interior Road letterings data include N bars, now need Road letterings data and this N bar road that will be chosen
Lteral data carries out gland judgement.
The gland judging unit 304, for by the Road letterings data of the selection and the road for obtaining out
Lteral data carries out gland judgement, if no gland, the Road letterings data of the selection is added to
In the Road letterings of the typesetting data queue.
For example, the Road letterings data of selection are A, and the Road letterings data for obtaining out are N bars, by A
Gland judgement is carried out with the N bars Road letterings data.If gland, then A is not added to typesetting
In Road letterings data queue, if no gland, A is added to into typesetting Road letterings data team
In row.It should be noted that passing through in referring to whole electronic chart in typesetting Road letterings data queue
The Road letterings data of the device typesetting that the present embodiment is provided, e.g. M, it is clear that M is more than N.
N is only the road in the range of the geographical position coordinates of the electronic chart that the current display screen that M includes shows
Road lteral data bar number.Only when not starting to carry out Road letterings data typesetting, M is 0, N
It is 0, now M is equal to N.
The device that the present embodiment is provided, for the Road letterings data that each is chosen, obtains the display screen
The geographical position coordinates scope of the electronic chart that curtain shows, the electronic chart include the Road letterings data
And the Road letterings data are located at the center of the display screen, from typesetting Road letterings data queue
In, obtain the Road letterings number that geographical position coordinates fall into the geographical position coordinates scope of the electronic chart
According to;.The Road letterings data of selection are carried out into gland judgement, the road of selection with the Road letterings data for obtaining
When road lteral data does not have the Road letterings data that gland is obtained, just the Road letterings data of selection are added to
In typesetting Road letterings data queue, so ensure the Road letterings in typesetting Road letterings data queue
Data no gland from each other, it is to be understood that the road text in typesetting Road letterings data queue
Digital data is the Road letterings data for finally needing to show on electronic chart.Due to typesetting Road letterings number
After gland judgement is carried out between the Road letterings data in queue, therefore, current display screen shows
The Road letterings data on each electronic chart shown are uniform, are not in too sparse or too intensive
Situation.
Device embodiment two:
The composing device of the road in electronic map lteral data provided for the present invention referring to Fig. 4, the figure is implemented
Two schematic diagram of example.
The composing device of the road in electronic map lteral data that the present embodiment is provided, compared with Fig. 3 devices,
Also include:
The geography on the summit of the geographical position coordinates obtaining unit 401 and boundary rectangle frame of Road letterings data
Position coordinates obtaining unit 402;
The geographical position coordinates obtaining unit 401 of the Road letterings data, for the shape point according to road
Geographical position coordinates, obtain the geographical position coordinates of the Road letterings data of the road;
It should be noted that in electronic chart, every road includes many shape points, by these shape points
Couple together to form road.Each shape point has geographical position coordinates, therefore, by the geography of shape point
Position coordinates can represent road geographical position coordinates, can obtain the road by the geographical position coordinates of shape point
The geographical position coordinates of the corresponding Road letterings data in road.
It is understood that road is divided into section by crossing, it is preferred that the embodiment of the present invention, can be pre-
Each section for being set to road calculates K Road letterings data geographic position coordinates, K be more than or wait
In 1 integer, such as K is 3, will road section length be divided into 3 sections, the geographical position of Road letterings data
Put the central point geographical position coordinates that coordinate is each section after dividing equally.Such as, a road is divided into 3
Bar section, is preset as the geographical position coordinates that each section calculates 3 Road letterings data, is then eventually
The Road letterings data of the road calculate 9 geographical position coordinates.Now, the shape point according to road
Geographical position coordinates, the geographical position coordinates for obtaining the Road letterings data of the road are specially:
According to the geographical position coordinates of the shape point of road, it is that the Road letterings data of the road obtain K*J
Individual geographical position coordinates, wherein, J is the bar number in the section for constituting road, and K need to for default every section
The number of the geographical position coordinates calculated by Road letterings data, the numerical value of K can by technical staff according to
Demand sets.The specific embodiment is applied to all embodiments of the invention.
Road letterings data can be road name, Middle Road, North 4th Ring Road;Can also be road designation, such as it is high
Fast G1, national highway G104 etc..
The geographical position coordinates obtaining unit 402 on the summit of the boundary rectangle frame, for by road text
In the geographical position coordinates of digital data, the word string length of Road letterings data, default Road letterings data
The size of the width of each word and high, electronic chart engineer's scale and the display screen obtains Road letterings data
Boundary rectangle frame summit geographical position coordinates.
The gland judging unit 304 includes:Repeat judgment sub-unit 304a, intersecting judgment sub-unit 304b
With determination subelement 304c;
It is described to repeat judgment sub-unit 304a, for judging the Road letterings data of the selection and typesetting
Road letterings data queue in Road letterings data whether repeat;
Intersecting judgment sub-unit 304b, for judging what is chosen when judgment sub-unit 304a that repeats
When Road letterings data in the Road letterings data queue of Road letterings data and typesetting do not repeat, sentence
The boundary rectangle frame of the Road letterings data of the disconnected selection and the external square of the Road letterings data for obtaining out
Whether shape frame intersects;
Determination subelement 304c, for judging the road chosen when intersecting judgment sub-unit 304b
When the boundary rectangle frame of lteral data is non-intersect with the boundary rectangle frame of the Road letterings data for obtaining out, it is determined that
Without gland.
It should be noted that the bar number in order to reduce the Road letterings data that electronic chart shows, the gland
Judging unit also includes:Bar number judgment sub-unit 304d;
Bar number judgment sub-unit 304d, whether the bar number of the Road letterings data obtained out for judgement
Less than default numerical value;If it is not, then the intersecting judgment sub-unit judges the Road letterings number of the selection
According to boundary rectangle frame whether intersect with the boundary rectangle frame of the Road letterings data for obtaining out.
For example for the bar number of Road letterings data for reducing showing on electronic chart, display screen can be set
The bar number of most multidisplay Road letterings data in coordinate range, for example, 100, more than 100, just
No longer typesetting Road letterings data in the display screen coordinate range.
The device that the present embodiment is provided, it is possible to reduce the bar number of the Road letterings data shown on electronic chart,
For example using the method for prior art, assume to show 1000 Road letterings data on electronic chart, but
After by the composing device of the present embodiment, the Road letterings data strip number shown on electronic chart is less than
1000.The Road letterings data of repetition are shown on the electronic chart that current display screen shows no longer, and
The bar number maximum for allowing the Road letterings data for showing is default value, if two road lteral data
Boundary rectangle frame intersects, then shielding the Road letterings data in rear selection does not carry out typesetting, certainly road text
Digital data subsequently will not be also displayed on electronic chart.This ensure that the road text that electronic chart finally shows
Digital data will not be too many, is not in situation excessively dense or that Road letterings data display is excessively sparse.
Device embodiment three:
The composing device of the road in electronic map lteral data provided for the present invention referring to Fig. 5, the figure is implemented
Three schematic diagram of example.
The composing device of the road in electronic map lteral data that the present embodiment is provided and the dress shown in Fig. 4
Put and compare, also include:Sequence forms unit 501;
The sequence forms unit 501, for literary to all of road according at least one in following parameter
Digital data is ranked up to form the Road letterings data queue:Category of roads, word string length, geographical position
Put coordinate size and literal type;
The category of roads priority is followed successively by from high to low:Highway, national highway, city expressway, province
Road, major urban arterial highway, city subsidiary road;
The priority of the word string length length is short higher than length;
The big priority of the geographical position coordinates priority little higher than geographical position coordinates or geographical position
Put the little priority of the coordinate priority big higher than geographical position coordinates;
The literal type rank is followed successively by from high to low:Road name, road designation;
Category of roads, word string length, boundary rectangle frame lower-left angular coordinate, the priority of literal type are by height
It is followed successively by low:Category of roads, word string length, geographical position coordinates size and literal type.
Geographical position coordinates size is any one following:The geographical position coordinates of Road letterings data, road
The boundary rectangle of the lower left corner geographical position coordinates and Road letterings data of the boundary rectangle frame of road lteral data
The upper right corner geographical position coordinates of frame.
It is understood that the upper right of the lower left corner geographical position coordinates and boundary rectangle frame by boundary rectangle frame
Angle geographical position coordinates can obtain the geographical position coordinates of boundary rectangle frame.
The device that the present invention is provided, it is possible to achieve the Automatic Typesetting of the Road letterings data on electronic chart, and
And ensure typesetting after Road letterings data display on electronic chart when be not in too sparse or too intensive
Situation.
The above, is only presently preferred embodiments of the present invention, not makees any pro forma to the present invention
Limit.Although the present invention is disclosed above with preferred embodiment, but it is not limited to the present invention.It is any
Those of ordinary skill in the art, under without departing from technical solution of the present invention ambit, all using above-mentioned
The methods and techniques content of announcement makes many possible variations and modification, or modification to technical solution of the present invention
For the Equivalent embodiments of equivalent variations.Therefore, every content without departing from technical solution of the present invention, according to this
The technical spirit of invention still belongs to any simple modification made for any of the above embodiments, equivalent variations and modification
In the range of technical solution of the present invention protection.
Claims (10)
1. a kind of composition method of road in electronic map lteral data, it is characterised in that include:
From the Road letterings data queue of pre-sorting, a Road letterings data are chosen every time;
Geographical position coordinates, electronic chart engineer's scale and default display according to the Road letterings data chosen
The size of screen, obtains the geographical position coordinates scope of the electronic chart that the display screen shows, the electricity
Sub- map includes the Road letterings data and the Road letterings data are located at the center of the display screen;
From typesetting Road letterings data queue, the ground that geographical position coordinates fall into the electronic chart is obtained
The Road letterings data of reason position coordinates scope;
The Road letterings data of the selection are carried out into gland judgement with the Road letterings data for obtaining out, if
Without gland, then the Road letterings data of the selection are added to into the typesetting Road letterings data queue
In.
2. the composition method of road in electronic map lteral data according to claim 1, its feature
It is, from the Road letterings data queue of pre-sorting, to choose a Road letterings data every time, before
Also include:
All of Road letterings data are ranked up to form the road according at least one in following parameter
Road lteral data queue:Category of roads, word string length, geographical position coordinates size and literal type;
The high priority of category of roads is low higher than category of roads;
The priority of word string length length is short higher than length;
The big priority of the geographical position coordinates priority little higher than geographical position coordinates or geographical position are sat
The little priority of the mark priority big higher than geographical position coordinates;
Literal type rank is followed successively by from high to low:Road name, road designation;
Category of roads, word string length, boundary rectangle frame lower-left angular coordinate, the priority of literal type are by height
It is followed successively by low:Category of roads, word string length, geographical position coordinates size and literal type.
3. the composition method of road in electronic map lteral data according to claim 2, its feature
It is, in the Road letterings data queue from pre-sorting, to choose a Road letterings data every time,
Also include before:
According to the geographical position coordinates of the shape point of road, the geography of the Road letterings data of the road is obtained
Position coordinates;
By the geographical position coordinates of the Road letterings data, the word string length of Road letterings data, preset
Road letterings data in each word width and the size of high, electronic chart engineer's scale and the display screen
Obtain the geographical position coordinates on the summit of the boundary rectangle frame of Road letterings data.
4. the composition method of the road in electronic map lteral data according to Claims 2 or 3, its
It is characterised by, the Road letterings data by the selection carry out gland with the Road letterings data for obtaining out
Judge, specially:
Judge that the road in the Road letterings data of the selection and the Road letterings data queue of typesetting is literary
Whether digital data repeats;
If not,
Then judge the boundary rectangle frame and the Road letterings data for obtaining out of the Road letterings data of the selection
Boundary rectangle frame whether intersect;
If non-intersect, it is determined that no gland.
5. the composition method of road in electronic map lteral data according to claim 4, its feature
It is, in boundary rectangle frame and the Road letterings data for obtaining out of the Road letterings data for judging the selection
Boundary rectangle frame whether intersect, also include before:
Whether the bar number of the Road letterings data that judgement is obtained out is less than default numerical value;
If it is not, then continuation judges the boundary rectangle frame and the road for obtaining out of the Road letterings data of the selection
Whether the boundary rectangle frame of road lteral data intersects.
6. a kind of composing device of road in electronic map lteral data, it is characterised in that include:Choose
Unit, display screen coordinate obtaining unit, Road letterings data capture unit and gland judging unit;
The selection unit, for, from the Road letterings data queue of pre-sorting, choosing a road every time
Road lteral data;
The display screen coordinate obtaining unit, sits for the geographical position according to the Road letterings data chosen
The size of mark, electronic chart engineer's scale and default display screen, obtains the electronic chart of the screen display
Geographical position coordinates scope, the electronic chart includes the Road letterings data and the Road letterings number
According to positioned at the center of the display screen;
The Road letterings data capture unit, for, from typesetting Road letterings data queue, obtaining ground
Reason position coordinates falls into the Road letterings data of the geographical position coordinates scope of the electronic chart;
The gland judging unit, for by the Road letterings data of the selection and the Road letterings for obtaining out
Data carry out gland judgement, if no gland, the Road letterings data of the selection are added to described
In typesetting Road letterings data queue.
7. the composing device of road in electronic map lteral data according to claim 6, its feature
It is that the device also includes:Sequence forms unit;
The sequence forms unit, for according at least one in following parameter to all of Road letterings number
The Road letterings data queue to be formed according to being ranked up:Category of roads, word string length, geographical position are sat
Mark size and literal type;
The high priority of category of roads is low higher than category of roads;
The priority of word string length length is short higher than length;
The big priority of the geographical position coordinates priority little higher than geographical position coordinates or geographical position are sat
The little priority of the mark priority big higher than geographical position coordinates;
Literal type rank is followed successively by from high to low:Road name, road designation;
Category of roads, word string length, boundary rectangle frame lower-left angular coordinate, the priority of literal type are by height
It is followed successively by low:Category of roads, word string length, geographical position coordinates size and literal type.
8. the composing device of road in electronic map lteral data according to claim 7, its feature
It is that the device also includes:The geographical position coordinates obtaining unit and boundary rectangle frame of Road letterings data
The geographical position coordinates obtaining unit on summit;
The geographical position coordinates obtaining unit of the Road letterings data, for the ground of the shape point according to road
Reason position coordinates, obtains the geographical position coordinates of the Road letterings data of the road;
The geographical position coordinates obtaining unit on the summit of the boundary rectangle frame, for by the Road letterings number
According to geographical position coordinates, the word string length of Road letterings data, in default Road letterings data each
The size of the width of word and high, electronic chart engineer's scale and the display screen obtains the outer of Road letterings data
Connect the geographical position coordinates on the summit of rectangle frame.
9. the composing device of road in electronic map lteral data according to claim 7, its feature
It is that the gland judging unit includes:Repeat judgment sub-unit, intersecting judgment sub-unit and determine that son is single
Unit;
It is described to repeat judgment sub-unit, for judging the Road letterings data of the selection and the road of typesetting
Whether the Road letterings data in lteral data queue repeat;
The intersecting judgment sub-unit, for judging the Road letterings number chosen when the judgment sub-unit that repeats
When not repeating according to the Road letterings data in the Road letterings data queue with typesetting, the selection is judged
Road letterings data boundary rectangle frame and the Road letterings data for obtaining out boundary rectangle frame whether phase
Hand over;
The determination subelement, for judging the Road letterings data chosen when the intersecting judgment sub-unit
When boundary rectangle frame is non-intersect with the boundary rectangle frame of the Road letterings data for obtaining out, it is determined that there is no gland.
10. the composing device of road in electronic map lteral data according to claim 9, its feature
It is that the gland judging unit also includes:Bar number judgment sub-unit;
The bar number judgment sub-unit, for judging the bar number of the Road letterings data for obtaining out whether less than pre-
If numerical value;If it is not, then the intersecting judgment sub-unit judges the outer of the Road letterings data of the selection
Connect rectangle frame and whether intersect with the boundary rectangle frame of the Road letterings data for obtaining out.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510627919.8A CN106557504B (en) | 2015-09-28 | 2015-09-28 | Typesetting method and device for road character data in electronic map |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510627919.8A CN106557504B (en) | 2015-09-28 | 2015-09-28 | Typesetting method and device for road character data in electronic map |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106557504A true CN106557504A (en) | 2017-04-05 |
CN106557504B CN106557504B (en) | 2020-03-13 |
Family
ID=58415817
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510627919.8A Expired - Fee Related CN106557504B (en) | 2015-09-28 | 2015-09-28 | Typesetting method and device for road character data in electronic map |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106557504B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110597930A (en) * | 2018-06-11 | 2019-12-20 | 百度在线网络技术(北京)有限公司 | Method, device, equipment and medium for detecting building block gland road in electronic map |
CN110942371A (en) * | 2019-11-20 | 2020-03-31 | 北京金和网络股份有限公司 | Method and device for displaying merchants on map |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101634557A (en) * | 2009-09-01 | 2010-01-27 | 武汉光庭汽车电子有限公司 | Method for preventing picture display characters from being mutually overlapped in navigation system |
CN102136218A (en) * | 2011-03-17 | 2011-07-27 | 武汉大学 | Automatic collocation method for map lettering during map making through computer |
CN103617296A (en) * | 2013-12-18 | 2014-03-05 | 中国电子科技集团公司第五十四研究所 | Optimized display method of place name annotation image layer |
CN104143288A (en) * | 2013-05-06 | 2014-11-12 | 北京四维图新科技股份有限公司 | Method and device for marking electronic map road display text |
-
2015
- 2015-09-28 CN CN201510627919.8A patent/CN106557504B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101634557A (en) * | 2009-09-01 | 2010-01-27 | 武汉光庭汽车电子有限公司 | Method for preventing picture display characters from being mutually overlapped in navigation system |
CN102136218A (en) * | 2011-03-17 | 2011-07-27 | 武汉大学 | Automatic collocation method for map lettering during map making through computer |
CN104143288A (en) * | 2013-05-06 | 2014-11-12 | 北京四维图新科技股份有限公司 | Method and device for marking electronic map road display text |
CN103617296A (en) * | 2013-12-18 | 2014-03-05 | 中国电子科技集团公司第五十四研究所 | Optimized display method of place name annotation image layer |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110597930A (en) * | 2018-06-11 | 2019-12-20 | 百度在线网络技术(北京)有限公司 | Method, device, equipment and medium for detecting building block gland road in electronic map |
CN110597930B (en) * | 2018-06-11 | 2022-04-26 | 百度在线网络技术(北京)有限公司 | Method, device, equipment and medium for detecting building block gland road in electronic map |
CN110942371A (en) * | 2019-11-20 | 2020-03-31 | 北京金和网络股份有限公司 | Method and device for displaying merchants on map |
Also Published As
Publication number | Publication date |
---|---|
CN106557504B (en) | 2020-03-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4429737B2 (en) | Method and apparatus for creating digital topographic map | |
CN105258704B (en) | Multiple dimensioned space-time hotspot path detection method based on through street net modeling | |
CN108921943B (en) | Road three-dimensional model modeling method based on lane-level high-precision map | |
JP2005037128A (en) | Position display method and navigation system | |
CN107192393A (en) | The maintenance system and method for a kind of road-map-data | |
CN108197283A (en) | The method that flood two, three-dimensional dynamic exhibition are carried out using river measured water level | |
CN106123898A (en) | The indoor paths planning method resolved based on picture | |
CN107423455B (en) | Automatic modeling method and system for highway | |
CN101873608A (en) | Method and system for showing communication traffic volume by combining Thiessen polygons and GIS map | |
CN103309944A (en) | Surface feature symbolization method for realizing map library integration | |
CN105046267B (en) | Generation method, generating means, polymerization and the polyplant of dynamic grid | |
CN106847066A (en) | Warehouse map constructing method and device | |
CN106557504A (en) | A kind of composition method and device of road in electronic map lteral data | |
Yusoff et al. | City skyline conservation: sustaining the premier image of Kuala Lumpur | |
CN110288205A (en) | Traffic impact analysis method and device | |
CN109297501A (en) | A kind of method that GIS single line road network automatically generates two-wire road network | |
CN105956088B (en) | A kind of determination method and device of road gland relationship | |
CN107978219A (en) | A kind of method and device for the road network for building numerical map | |
CN116664793A (en) | Three-dimensional modeling method and device for hydraulic building excavation slope release and electronic equipment | |
CN109086528A (en) | Name the method for netted road automatically by ordering rule in civil3d | |
CN107844607B (en) | Geostress display system based on GIS | |
CN114969944A (en) | High-precision road DEM construction method | |
CN107591080A (en) | A kind of method for drafting and device of road gland relation | |
CN101403624B (en) | Road display equipment and method | |
CN113688198B (en) | Urban area range demarcation linear ground object cutting-off processing method, storage and device |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200506 Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province Patentee after: Alibaba (China) Co.,Ltd. Address before: 102200, No. 8, No., Changsheng Road, Changping District science and Technology Park, Beijing, China. 1-5 Patentee before: AUTONAVI SOFTWARE Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200313 Termination date: 20200928 |
|
CF01 | Termination of patent right due to non-payment of annual fee |