CN105719351B - A kind of method and apparatus of display electronic map - Google Patents
A kind of method and apparatus of display electronic map Download PDFInfo
- Publication number
- CN105719351B CN105719351B CN201410736415.5A CN201410736415A CN105719351B CN 105719351 B CN105719351 B CN 105719351B CN 201410736415 A CN201410736415 A CN 201410736415A CN 105719351 B CN105719351 B CN 105719351B
- Authority
- CN
- China
- Prior art keywords
- initial position
- engineer
- scale
- coordinate
- source location
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
Landscapes
- Engineering & Computer Science (AREA)
- Computer Graphics (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Navigation (AREA)
- User Interface Of Digital Computer (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a kind of method and apparatus of display electronic map, cause electronic map bandwagon effect poor to solve the problems, such as that electronic map movement existing in the prior art is more stiff.This method includes:Obtain the three-dimensional coordinate of the initial position and source location of electronic map;According to the three-dimensional coordinate of initial position and source location, the three-dimensional coordinate of key node is determined;According to the initial position, the three-dimensional coordinate of the source location and the key node, generate be sequentially connected the initial position, the key node and the source location space curve;According to preset map denotation duration, move function and brush screen time interval, transfer point is determined from the space curve, and using the source location as a transfer point;It is starting point along the space curve using the initial position, the point centered on transfer point, shows electronic map successively.
Description
Technical field
The present invention relates to technical field of image processing more particularly to a kind of method and apparatus of display electronic map.
Background technology
Currently, on the terminal device mobile electronic map when, directly centered on source location point displaying this electronically
Figure, when initial position and source location distance farther out when, initial position displaying electronic map map picture with
It is bigger in the map picture difference of the electronic map of source location displaying, therefore, the ratio that visually electronic map redirects
It is more stiff.For example, the initial position of electronic map, in Shanghai, source location is in Beijing, then in initial position displaying
Map picture be upper sea region part map datum, source location displaying map picture be Beijing Area partly
Diagram data, and the content deltas of this part map datum is larger, therefore, using existing electronic map move mode, relatively makes a living
Firmly, electronic map bandwagon effect is poor.
Invention content
The embodiment of the present invention provides a kind of method and apparatus of display electronic map, existing in the prior art to solve
Electronic map moves the more stiff problem for causing electronic map bandwagon effect poor.
The embodiment of the present invention uses following technical scheme:
First aspect provides a kind of method of display electronic map, including:
Obtain the three-dimensional coordinate of the initial position and source location of electronic map;Wherein, initial position and target
The three-dimensional coordinate of location point includes longitude coordinate, latitude coordinate and height coordinate, wherein initial position and source location
The value of height coordinate is respectively the corresponding height of engineer's scale when initial position and source location show electronic map
Value;
According to the three-dimensional coordinate of initial position and source location, the three-dimensional coordinate of key node is determined;
According to the initial position, the three-dimensional coordinate of the source location and the key node, generation connects successively
Connect the initial position, the key node and the source location space curve;
According to preset map denotation duration, move function and brush screen time interval, determined from the space curve
Go out transfer point, and using the source location as a transfer point;
It is starting point along the space curve using the initial position, the point centered on transfer point, shows electronics successively
Map.
Wherein, according to the three-dimensional coordinate of initial position and source location, the three-dimensional coordinate of key node is determined, specifically
Including:
Using the average value of the initial position and the source location longitude coordinate as the warp of the key node
Coordinate is spent, and using the average value of the initial position and the source location latitude coordinate as the key node
Latitude coordinate;
According to the screen distance and preset engineer's scale range of the initial position and the source location, determine
Go out the corresponding engineer's scale of the key node;
According to the correspondence of preset engineer's scale and height value, engineer's scale corresponding with the key node is determined
Height value, and using the height value as the height coordinate of key node.
Wherein, according to the screen distance and preset engineer's scale model of the initial position and the source location
It encloses, determines the corresponding engineer's scale of the key node, specifically include:
Calculate the initial position and the screen distance of the source location and multiplying for pre-set proportionality coefficient
Product;
The product is compared with preset engineer's scale range;
When the product is less than the minimum scale ruler in the engineer's scale range, by the minimum in the engineer's scale range
Engineer's scale is determined as the corresponding engineer's scale of the key node;
When the product is more than the maximum ratio ruler in the engineer's scale range, by the maximum in the engineer's scale range
Engineer's scale is determined as the corresponding engineer's scale of the key node;
When the product is located within the scope of the engineer's scale, the pass will be determined as with the immediate engineer's scale of the product
The corresponding engineer's scale of key node.
Wherein, according to preset map denotation duration, move function and brush screen time interval, from the space curve
It determines transfer point, specifically includes:
The space curve is divided equally into multiple curved sections, and along Qu Yici pairs of space since initial position
Curved section is numbered;
According to the initial position, the number of key node, the three-dimensional coordinate of source location and its affiliated curved section,
Determine the first function relationship of longitude coordinate and curve segment number, the second function relationship of latitude coordinate and curve segment number,
The third functional relation of height coordinate and curve segment number;
According to the map denotation duration and preset brush screen time interval, brush screen number is determined;
With electronic map for 0 at the time of the initial position, displacement distance 0 is with the initial position
Point is moved according to the move function along the space curve, determines that the primary screen of every brush is moved to the position on space curve
Point, using the location point determined as transfer point;
According to each transfer point on space curve the numbering of affiliated curved section, the first function relationship, second function
Relationship and third functional relation, determine the three-dimensional coordinate of each transfer point.
Wherein, point centered on transfer point shows electronic map, specifically includes:
For each transfer point, the point centered on the latitude and longitude coordinates of the transfer point, with the height coordinate pair of the transfer point
The engineer's scale answered is engineer's scale when showing electronic map, shows electronic map.
Second aspect provides a kind of device of display electronic map, including:
Three-dimensional coordinate acquiring unit, the three-dimensional coordinate of initial position and source location for obtaining electronic map;
Wherein, the three-dimensional coordinate of initial position and source location includes longitude coordinate, latitude coordinate and height coordinate, wherein initially
The value of the height coordinate of location point and source location is respectively to show electronic map in initial position and source location
When the corresponding height value of engineer's scale;
Three-dimensional coordinate determination unit, the initial position for being obtained according to the three-dimensional coordinate acquiring unit and target position
Three-dimensional coordinate a little is set, determines the three-dimensional coordinate of key node;
Space curve generation unit, the initial position, institute for being obtained according to the three-dimensional coordinate acquiring unit
The three-dimensional coordinate of source location and the key node of three-dimensional coordinate determination unit determination is stated, generation is sequentially connected described first
The space curve of beginning location point, the key node and the source location;
Transfer point determination unit, for according to preset map denotation duration, move function and brush screen time interval, from
Transfer point is determined in the space curve that the space curve generation unit generates, and is moved the source location as one
Dynamic point;
Display unit, for being starting point along the space curve using the initial position, successively with the transfer point
Point centered on the transfer point that determination unit determines shows electronic map.
Wherein, the three-dimensional coordinate determination unit, specifically includes:
Latitude and longitude coordinates determining module, the initial position for obtaining the three-dimensional coordinate acquiring unit and the mesh
Longitude coordinate of the average value of cursor position point longitude coordinate as the key node, and by the three-dimensional coordinate acquiring unit
Latitude coordinate of the average value of the initial position of acquisition and the source location latitude coordinate as the key node;
Engineer's scale determining module, for according to the screen distance of the initial position and the source location and pre-
The engineer's scale range set determines the corresponding engineer's scale of the key node;
Height coordinate determining module, for according to preset engineer's scale and height value correspondence, determine with it is described
The height value for the corresponding engineer's scale of key node that engineer's scale determining module determines, and using the height value as the height of key node
Spend coordinate.
Wherein, the engineer's scale determining module, is specifically used for:
Calculate the initial position and the screen distance of the source location and multiplying for pre-set proportionality coefficient
Product;The product is compared with preset engineer's scale range;When the product is less than the minimum in the engineer's scale range
When engineer's scale, the minimum scale ruler in the engineer's scale range is determined as the corresponding engineer's scale of the key node;When described
When product is more than the maximum ratio ruler in the engineer's scale range, the maximum ratio ruler in the engineer's scale range is determined as institute
State the corresponding engineer's scale of key node;It, will be with the immediate ratio of the product when the product is located within the scope of the engineer's scale
Example ruler is determined as the corresponding engineer's scale of the key node.
Wherein, the transfer point determination unit, specifically includes:
The space curve is divided equally into multiple curved sections, and along Qu Yici pairs of space since initial position
Curved section is numbered;According to the initial position, key node, the three-dimensional coordinate of source location and its affiliated curved section
Number, determine the first function relationship of longitude coordinate and curve segment number, the second letter of latitude coordinate and curve segment number
Number relationship, the third functional relation of height coordinate and curve segment number;When according to the map denotation duration and preset brush screen
Between be spaced, determine brush screen number;With electronic map for 0 at the time of the initial position, displacement distance 0, with described
Initial position is that starting point is moved according to the move function along the space curve, determines that the primary screen of every brush is moved to sky
Location point on half interval contour, using the location point determined as transfer point;According to each transfer point on space curve affiliated song
The numbering of line segment, the first function relationship, second function relationship and third functional relation, determine the three-dimensional of each transfer point
Coordinate.
Wherein, the display unit, is specifically used for:
For each transfer point, the point centered on the latitude and longitude coordinates of the transfer point, with the height coordinate pair of the transfer point
The engineer's scale answered is engineer's scale when showing electronic map, shows electronic map.
The embodiment of the present invention has the beneficial effect that:
In the embodiment of the present invention, the initial position of electronic map and the three-dimensional coordinate of source location are obtained, according to obtaining
The three-dimensional coordinate of the initial position and source location that take determines the three-dimensional coordinate of key node, according to initial position, mesh
The three-dimensional coordinate of cursor position point and key node generates the sky for being sequentially connected initial position, key node and source location
Half interval contour, and according to preset map denotation duration, move function and brush screen time interval, from the space curve of generation really
Transfer point is made, and using source location as a transfer point, is finally starting point along space curve using initial position, according to
The secondary point centered on the transfer point determined shows electronic map.Using technical solution of the present invention, in initial position and target
A key node is chosen between location point, and is generated and be sequentially connected initial position, the key node and the target location
The space curve of point, and transfer point is chosen on space curve, using initial position as starting point electronics is shown in transfer point successively
Map, therefore, on the one hand, the displaying of electronic map is moved according to space curve so that the motion track of electronic map is more empty
Between feel, on the other hand, according to preset map denotation duration, move function and brush screen time interval successively initial position with
It chooses transfer point between source location, and shows electronic map in transfer point successively, due between brush screen time under normal circumstances
Every shorter, thus determine that transfer point quantity it is more so that it is little in the map picture variation of adjacent transfer point displaying,
The more smooth, coherent of electronic map movement is realized, with the prior art directly in initial position and source location displaying electricity
For sub- map, electronic map bandwagon effect is improved.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The purpose of the present invention and other advantages can be by the explanations write
Specifically noted structure is realized and is obtained in book, claims and attached drawing.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and constitutes the part of the present invention, this hair
Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is a kind of implementation flow chart of the method for display electronic map provided in an embodiment of the present invention;
Fig. 2 is a kind of process flow of the method for display electronic map provided in an embodiment of the present invention in practical applications
Figure;
Fig. 3 is a kind of structural schematic diagram of the device of display electronic map provided in an embodiment of the present invention.
Specific implementation mode
In order to solve, electronic map movement existing in the prior art is more stiff to cause electronic map bandwagon effect poor
Problem, the embodiment of the present invention propose a kind of scheme of display electronic map.In the technical solution, by obtaining electronic map
The three-dimensional coordinate of initial position and source location, according to the three-dimensional coordinate of the initial position of acquisition and source location,
The three-dimensional coordinate for determining key node generates successively according to the three-dimensional coordinate of initial position, source location and key node
The space curve of connection initial position, key node and source location, and according to preset map map denotation duration, shifting
Dynamic function and brush screen time interval, determine transfer point, and using source location as one from the space curve of generation
Transfer point is finally starting point along space curve using initial position, successively the point centered on the transfer point determined, display electricity
Sub- map avoids in the prior art to make electronic map bandwagon effect greatly improve since electronic map movement is more stiff
Caused by the poor problem of electronic map bandwagon effect.
The embodiment of the present invention is illustrated below in conjunction with Figure of description, it should be understood that implementation described herein
Example is merely to illustrate and explain the present invention, and is not intended to restrict the invention.And in the absence of conflict, the reality in the present invention
Applying the feature of example and embodiment can be combined with each other.
A kind of method of display electronic map is provided in the embodiment of the present invention, as shown in Figure 1, for the realization stream of this method
Cheng Tu, this method specifically include following step:
Step 11, the initial position of electronic map and the three-dimensional coordinate of source location are obtained;Wherein, initial position
Three-dimensional coordinate with source location includes longitude coordinate, latitude coordinate and height coordinate, wherein initial position and target position
The value for setting height coordinate a little can be respectively the engineer's scale when initial position and source location show electronic map
Corresponding height value.
Wherein, the embodiment of the present invention is previously provided with the correspondence of engineer's scale and height value, is such as provided with each ratio
The correspondence of ruler and height value range, if 3 corresponding height value of engineer's scale is g1,4 corresponding height value of engineer's scale is g2, than
Example 5 corresponding height value of ruler is g3 etc..
Step 12, according to the three-dimensional coordinate of initial position and source location, the three-dimensional coordinate of key node is determined.
In order to keep the process that electronic map is moved to from initial position source location no longer stiff, the embodiment of the present invention
In previously according to initial position and source location determine a key node, then design generate one be sequentially connected it is initial
The space curve of location point, key node and source location.
Wherein, the three-dimensional coordinate of the key node in the embodiment of the present invention can be, but not limited to determine with the following method:
Step a1 is sat the average value of initial position and the longitude coordinate of source location as the longitude of key node
Mark, and using the average value of initial position and the latitude coordinate of source location as the latitude coordinate of key node;
Step a2 is determined according to the screen distance and preset engineer's scale range of initial position and source location
Go out the corresponding engineer's scale of key node.In the embodiment of the present invention, the screen distance of initial position and source location according to
Under type obtains:According to the latitude and longitude coordinates of initial position and source location, initial position and source location are calculated
Distance value;Using the product of the engineer's scale before the distance value and mobile electronic map as initial position and source location
Screen distance.
Specific implementation can be as follows:Calculate screen distance and the pre-set ratio system of initial position and source location
The product is compared by several products with preset engineer's scale range, when the product is less than in preset engineer's scale range
When minimum scale ruler, the minimum scale ruler in preset engineer's scale range is determined as the corresponding engineer's scale of key node;When this
When product is more than the maximum ratio ruler in preset engineer's scale range, the maximum ratio ruler in preset engineer's scale range is determined
For the corresponding engineer's scale of key node;It, will be with the immediate ratio of the product when the product is located within the scope of the engineer's scale
Example ruler is determined as the corresponding engineer's scale of the key node.For example, preset engineer's scale ranging from 3-19, when initial position and
When the screen distance of source location and the product of pre-set ratio system are less than 3, then it is determined as key node by 3 and corresponds to
Engineer's scale;When the product of the screen distance of initial position and source location and pre-set ratio system is more than 19
When, then it is determined as the corresponding engineer's scale of key node by 19;When the screen distance of initial position and source location and in advance
When the product of the ratio system of setting is 15.7, then it is determined as the corresponding engineer's scale of key node by 16.
Step a3 determines ratio corresponding with key node according to the correspondence of preset engineer's scale and height value
The height value of ruler, and using the height value as the height coordinate of key node.
It should be noted that the method for the three-dimensional coordinate of above-mentioned determining key node is only wherein one in the embodiment of the present invention
Kind preferred embodiment can be voluntarily arranged in specific application according to the self-demand of user.
Step 13, according to the three-dimensional coordinate of initial position, source location and key node, generation is sequentially connected initial
The space curve of location point, key node and source location.
Step 14, bent from the space of generation according to preset map denotation duration, move function and brush screen time interval
Transfer point is determined in line, and using source location as a transfer point.
Assuming that a length of T when map denotation, brush screen time interval is t0, then brush screen frequency n=T/t0.Map denotation duration is
Refer to the total duration that electronic map is moved to source location from initial position.
Step 14 in the space curve of generation specifically, from determining that transfer point can be, but not limited to as follows
Reason:
Step b1, the space curve of generation is divided equally into multiple curved sections, and along sky since initial position
Between Qu Yici curved section is numbered;
Step b2, according to initial position, the volume of key node, the three-dimensional coordinate of source location and its affiliated curved section
Number, determine that the first function relationship of longitude coordinate and curve segment number, latitude coordinate and the second function of curve segment number are closed
System, the third functional relation of height coordinate and curve segment number;
Step b3, duration and preset brush screen time interval are shown according to the map, determine brush screen number;
Step b4, with electronic map at the time of initial position be 0, displacement distance 0, using initial position as starting point
It is moved along space curve according to move function, determines that the primary screen of every brush is moved to the location point on space curve, will determine
The location point gone out is as transfer point;
Step b5, according to each transfer point, the number of affiliated curved section, the first function determined are closed on space curve
System, second function relationship and third functional relation, determine the three-dimensional coordinate of each transfer point.
Step 15, it is starting point along the space curve of generation using initial position, the point centered on transfer point successively, display
Electronic map.
Step 15, specifically, being directed to each transfer point, the point centered on the latitude and longitude coordinates of the transfer point, with the movement
The corresponding engineer's scale of height coordinate of point is engineer's scale when showing electronic map, shows electronic map.
In addition, in practical applications, the initial position and source location that obtain electronic map three-dimensional coordinate it
Afterwards, if initial position and the distance (referring to actual range) of source location are relatively close so that in the electricity of initial position displaying
The map picture of sub- map and the map picture of the electronic map shown in source location are not much different, then can directly carry out
Electronic map redirects, without carrying out the operation of subsequent step 12- steps 15.
In this case, after obtaining the three-dimensional coordinate of initial position and source location of electronic map, this
Inventive embodiments can also include the following steps:
According to the three-dimensional coordinate of the initial position of the electronic map of acquisition and source location, judge initial position and
Whether the distance of source location is more than pre-set distance threshold;Only when judging initial position and source location
Distance when being more than pre-set distance threshold, just continue to execute step 12, otherwise directly carry out electronic map and redirect.
In the embodiment of the present invention, the three-dimensional coordinate of initial position and source location by obtaining electronic map, root
According to the initial position of acquisition and the three-dimensional coordinate of source location, the three-dimensional coordinate of key node is determined, according to initial position
The three-dimensional coordinate of point, source location and key node, generation are sequentially connected initial position, key node and source location
Space curve, and according to preset map denotation duration, move function and brush screen time interval, from the space curve of generation
In determine transfer point, be finally starting point along space song using initial position and using source location as a transfer point
Line, the point centered on the transfer point determined, shows electronic map successively, to make electronic map bandwagon effect greatly improve,
Avoid the poor problem of electronic map bandwagon effect caused by electronic map movement is more stiff in the prior art.
Embodiment in order to better understand the present invention, the specific implementation below in conjunction with specific example to the embodiment of the present invention
Process illustrates.
As shown in Fig. 2, the concrete application implementation flow chart of the method for display electronic map provided in an embodiment of the present invention,
Including following processing step:
Assuming that the initial position in electronic map is A, source location B, initial position A and source location B
Screen distance be L.
Step 21, the three-dimensional coordinate for obtaining initial position A is (x1, y1, z1), and the three-dimensional coordinate of source location B is
(x2, y2, z2).
Wherein, x1 and x2 is respectively the longitude coordinate of initial position A and source location B, and y1 and y2 are respectively initial
The latitude coordinate of location point A and source location B, z1 and z2 are respectively that the height of initial position A and source location B is sat
Mark, and the value of the height coordinate is respectively the engineer's scale pair in initial position A and source location B show electronic map
The height value answered, initial position A is consistent with the engineer's scale of source location B under normal circumstances, therefore, the value phase of z1 and z2
Together.
Step 22, according to the three-dimensional coordinate of initial position A and source location B, judge initial position A and target position
Whether the distance for setting point B more than pre-set distance threshold continues to execute step 23 when the determination result is yes, is judging
When being as a result no, point shows the electronic map directly centered on the latitude and longitude coordinates of source location B.
Step 23, according to the three-dimensional coordinate of initial position A and source location B, the three-dimensional coordinate of key node C is determined
(x3, y3, z3).
Specifically, using the average value of the longitude coordinate of initial position A and source location B as the warp of key node C
Spend coordinate, i.e. x3=(x1+x2)/2;
Using the average value of the latitude coordinate of initial position A and source location B as the latitude coordinate of key node C,
That is y3=(y1+y2)/2;
The product of the screen distance L and pre-set proportionality coefficient a of initial position A and B are calculated, i.e. a*L compares a*
L and preset engineer's scale range [3,19], determine the engineer's scale of key node C, wherein preset engineer's scale be 3 to 19 it is whole
Number:
Work as a*L<When 3, the engineer's scale of key node C is 3;
Work as a*L>When 19, the engineer's scale of key node C is 19;
When 3>a*L>When 19, the engineer's scale of key node C is the engineer's scale closest with a*L.
After the engineer's scale for determining key node C, according to the correspondence of preset engineer's scale and height value, determine
The height value of engineer's scale corresponding with key node, and using the height value as the height coordinate of key node, i.e. z3.
Step 24, according to the three-dimensional coordinate of initial position A, source location B and key node C, generation is sequentially connected
The space curve of initial position A, key node C and source location B.
Step 25, the space curve of generation is divided equally into N sections, and along space curve since initial position A
1~N is numbered to curved section successively.
Assuming that the number of the curved section belonging to initial position A is a sections, the number of the wireless segment belonging to source location B
It it is b sections, the number of the curved section belonging to key node C is c sections.Wherein, a, b and c belong to [1, N].
Step 26, pass through initial position A, key node C, the three-dimensional coordinate of source location B and its affiliated curved section
Number, determine the first function relationship of longitude coordinate and curve segment number, the second letter of latitude coordinate and curve segment number
Number relationship, the third functional relation of height coordinate and curve segment number, i.e.,:
First function relationship:X=f (k)
Second function relationship:Y=f1 (k)
Third functional relation:Z=f2 (k)
Wherein, the value of k is [1, N].
Step 27, according to preset map denotation duration and preset brush screen time interval, brush screen number is determined.
For example, a length of 30s when preset map denotation, preset brush screen time interval is 1s, it is determined that going out brush screen number is
30 times.
Step 28, it is 0 at the time of initial position A with electronic map, displacement distance 0 is with initial position A
Point is moved according to move function along space curve, determines that the primary screen of every brush is moved to the location point on space curve, will be true
The location point made also is used as a transfer point as transfer point, and by source location B.
Wherein, move function can be pre-set, and by taking move function is Sg=F1 (t) as an example, Sg can be arranged
For the move function of full stroke uniform, such as Sg=V*t, wherein V is movement speed, and t is traveling time;Or it sets Sg to
Front half section accelerates the move function, etc. that the second half section slows down.By taking move function Sg=V*t as an example, according to initial position, key
Node, source location three-dimensional coordinate to calculate the total length of space curve be S, when preset map denotation a length of T, with first
It is 0 at the time of beginning location point, it is assumed that brush screen time interval is t0, then is moved to the time t=T of source location, is then moved
Dynamic speed V=S/T.The time of first time brush screen is t (1)=t0, and the time of second of brush screen is t (2)=t (1)+t0=2t0,
The time t (3) of third time brush screen=t (2)+t0=3t0 ..., t (i)=t (i-1)+t0 ....The then location point of initial position
It is 0, the location point of transfer point 1 is S (1)=V*t0;Location point S (2)=V*2t0..... of transfer point 2.
By taking brush screen 30 times as an example, then it should be 29 to need the number for the transfer point determined from the space curve of generation
It is a, in addition source location B totally 30.
Step 29, according to each transfer point, the number of affiliated curved section, the first function determined are closed on space curve
System, second function relationship and third functional relation, determine the three-dimensional coordinate of each transfer point.
For example, some transfer point D determined numbers of affiliated curved section on space curve are d sections, i.e. K=d, by K
=d is updated to the above-mentioned first function relationship determined, second function relationship and third functional relation respectively, just can be somebody's turn to do
The three-dimensional coordinate of transfer point D.
Step 210, it is starting point along the space curve of generation using initial position, the point centered on transfer point, shows successively
Show electronic map.
Specifically, being directed to each transfer point, the point centered on the latitude and longitude coordinates of the transfer point, with the height of the transfer point
The corresponding engineer's scale of coordinate is engineer's scale when showing electronic map, shows electronic map.
Based on same inventive concept, a kind of device of display electronic map is additionally provided in the embodiment of the present invention, due to upper
It is similar to the display method of electronic map to state the principle that device solves the problems, such as, therefore the implementation of above-mentioned apparatus may refer to method
Implement, overlaps will not be repeated.
As shown in figure 3, the structural schematic diagram of the device for display electronic map provided in an embodiment of the present invention, including:
Three-dimensional coordinate acquiring unit 31, the three-dimensional of initial position and source location for obtaining electronic map are sat
Mark;Wherein, the three-dimensional coordinate of initial position and source location includes longitude coordinate, latitude coordinate and height coordinate, wherein
The value of initial position and the height coordinate of source location is respectively to show electronics in initial position and source location
The corresponding height value of engineer's scale when map;
Three-dimensional coordinate determination unit 32, the initial position for being obtained according to the three-dimensional coordinate acquiring unit 31 and mesh
The three-dimensional coordinate of cursor position point, determines the three-dimensional coordinate of key node;
Space curve generation unit 33, the initial position for being obtained according to the three-dimensional coordinate acquiring unit 31
The three-dimensional coordinate for the key node that point, the source location and the three-dimensional coordinate determination unit 32 determine, generation connect successively
Connect the initial position, the key node and the source location space curve;
Transfer point determination unit 34 is used for according to preset map denotation duration, move function and brush screen time interval,
Transfer point is determined from the space curve that the space curve generation unit 33 generates, and using the source location as one
A transfer point;
Display unit 35, for being starting point along the space curve using the initial position, successively with the movement
Point centered on the transfer point that point determination unit 34 determines, shows electronic map.
Wherein, the three-dimensional coordinate determination unit 32, specifically includes:
Latitude and longitude coordinates determining module 321, initial position for obtaining the three-dimensional coordinate acquiring unit 31 and
Longitude coordinate of the average value of the source location longitude coordinate as the key node, and the three-dimensional coordinate is obtained
Latitude of the average value of the initial position and the source location latitude coordinate that take unit acquisition as the key node
Coordinate;
Engineer's scale determining module 322, for according to the screen distance of the initial position and the source location with
And preset engineer's scale range, determine the corresponding engineer's scale of the key node;
Height coordinate determining module 323 is determined and institute for the correspondence according to preset engineer's scale and height value
The height value of the corresponding engineer's scale of key node of the determination of engineer's scale determining module 322 is stated, and is saved the height value as key
The height coordinate of point.
Wherein, the engineer's scale determining module 322, is specifically used for:
Calculate the initial position and the screen distance of the source location and multiplying for pre-set proportionality coefficient
Product;The product is compared with preset engineer's scale range;When the product is less than the minimum in the engineer's scale range
When engineer's scale, the minimum scale ruler in the engineer's scale range is determined as the corresponding engineer's scale of the key node;When described
When product is more than the maximum ratio ruler in the engineer's scale range, the maximum ratio ruler in the engineer's scale range is determined as institute
State the corresponding engineer's scale of key node;It, will be with the immediate ratio of the product when the product is located within the scope of the engineer's scale
Example ruler is determined as the corresponding engineer's scale of the key node.
Wherein, the transfer point determination unit 34, specifically includes:
The space curve is divided equally into multiple curved sections, and along Qu Yici pairs of space since initial position
Curved section is numbered;According to the initial position, key node, the three-dimensional coordinate of source location and its affiliated curved section
Number, determine the first function relationship of longitude coordinate and curve segment number, the second letter of latitude coordinate and curve segment number
Number relationship, the third functional relation of height coordinate and curve segment number;When according to the map denotation duration and preset brush screen
Between be spaced, determine brush screen number;With electronic map for 0 at the time of the initial position, displacement distance 0, with described
Initial position is that starting point is moved according to the move function along the space curve, determines that the primary screen of every brush is moved to sky
Location point on half interval contour, using the location point determined as transfer point;According to each transfer point on space curve affiliated song
The numbering of line segment, the first function relationship, second function relationship and third functional relation, determine the three-dimensional of each transfer point
Coordinate.
Wherein, the display unit 35, is specifically used for:
For each transfer point, the point centered on the latitude and longitude coordinates of the transfer point, with the height coordinate pair of the transfer point
The engineer's scale answered is engineer's scale when showing electronic map, shows electronic map.
In the embodiment of the present invention, the initial position of electronic map and the three-dimensional coordinate of source location are obtained, according to obtaining
The three-dimensional coordinate of the initial position and source location that take determines the three-dimensional coordinate of key node, according to initial position, mesh
The three-dimensional coordinate of cursor position point and key node generates the sky for being sequentially connected initial position, key node and source location
Half interval contour, and according to preset map denotation duration, move function and brush screen time interval, from the space curve of generation really
Transfer point is made, and using source location as a transfer point, is finally starting point along space curve using initial position, according to
The secondary point centered on the transfer point determined shows electronic map.Using technical solution of the present invention, in initial position and target
A key node is chosen between location point, and is generated and be sequentially connected initial position, the key node and the target location
The space curve of point, and transfer point is chosen on space curve, using initial position as starting point electronics is shown in transfer point successively
Map, therefore, on the one hand, the displaying of electronic map is moved according to space curve so that the motion track of electronic map is more empty
Between feel, on the other hand, according to preset map denotation duration, move function and brush screen time interval successively initial position with
It chooses transfer point between source location, and shows electronic map in transfer point successively, due between brush screen time under normal circumstances
Every shorter, thus determine that transfer point quantity it is more so that it is little in the map picture variation of adjacent transfer point displaying,
The more smooth, coherent of electronic map movement is realized, with the prior art directly in initial position and source location displaying electricity
For sub- map, electronic map bandwagon effect is improved.
For convenience of description, above each section is divided by function describes respectively for each module (or unit).Certainly, exist
Implement the function of each module (or unit) can be realized in same or multiple softwares or hardware when the present invention.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer
The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. a kind of method of display electronic map, which is characterized in that including:
Obtain the three-dimensional coordinate of the initial position and source location of electronic map;Wherein, initial position and target location
The three-dimensional coordinate of point includes the height of longitude coordinate, latitude coordinate and height coordinate, wherein initial position and source location
The value of coordinate is respectively the corresponding height value of engineer's scale when initial position and source location show electronic map;
According to the three-dimensional coordinate of initial position and source location, the three-dimensional coordinate of key node is determined;
According to the initial position, the three-dimensional coordinate of the source location and the key node, generation is sequentially connected institute
State initial position, the key node and the source location space curve;
According to preset map denotation duration, move function and brush screen time interval, determine to move from the space curve
Dynamic point, and using the source location as a transfer point;
It is starting point along the space curve using the initial position, the point centered on transfer point, shows electronic map successively.
2. the method as described in claim 1, which is characterized in that according to the three-dimensional coordinate of initial position and source location,
The three-dimensional coordinate for determining key node, specifically includes:
It is sat the average value of the initial position and the source location longitude coordinate as the longitude of the key node
Mark, and using the average value of the initial position and the source location latitude coordinate as the latitude of the key node
Coordinate;
According to the screen distance and preset engineer's scale range of the initial position and the source location, institute is determined
State the corresponding engineer's scale of key node;
According to the correspondence of preset engineer's scale and height value, the height of engineer's scale corresponding with the key node is determined
Value, and using the height value as the height coordinate of key node.
3. method as claimed in claim 2, which is characterized in that according to the screen of the initial position and the source location
Curtain distance and preset engineer's scale range, determine the corresponding engineer's scale of the key node, specifically include:
Calculate the product of the screen distance and pre-set proportionality coefficient of the initial position and the source location;
The product is compared with preset engineer's scale range;
When the product is less than the minimum scale ruler in the engineer's scale range, by the minimum scale in the engineer's scale range
Ruler is determined as the corresponding engineer's scale of the key node;
When the product is more than the maximum ratio ruler in the engineer's scale range, by the maximum ratio in the engineer's scale range
Ruler is determined as the corresponding engineer's scale of the key node;
When the product is located within the scope of the engineer's scale, the crucial section will be determined as with the immediate engineer's scale of the product
The corresponding engineer's scale of point.
4. such as claims 1 to 3 any one of them method, which is characterized in that according to preset map denotation duration, mobile letter
Number and brush screen time interval, determine transfer point from the space curve, specifically include:
The space curve is divided equally into multiple curved sections, and since initial position along space Qu Yici to curve
Section is numbered;
According to the initial position, the number of key node, the three-dimensional coordinate of source location and its affiliated curved section, determine
Go out the first function relationship of longitude coordinate and curve segment number, the second function relationship of latitude coordinate and curve segment number, height
The third functional relation of coordinate and curve segment number;
According to the map denotation duration and preset brush screen time interval, brush screen number is determined;
With electronic map for 0 at the time of the initial position, displacement distance 0 has been to press with the initial position
It is moved along the space curve according to the move function, determines that the primary screen of every brush is moved to the location point on space curve,
Using the location point determined as transfer point;
According to each transfer point on space curve the numbering of affiliated curved section, the first function relationship, second function relationship
And third functional relation, determine the three-dimensional coordinate of each transfer point.
5. method as claimed in claim 4, which is characterized in that point centered on transfer point shows electronic map, specifically includes:
For each transfer point, the point centered on the latitude and longitude coordinates of the transfer point is corresponding with the height coordinate of the transfer point
Engineer's scale is engineer's scale when showing electronic map, shows electronic map.
6. a kind of device of display electronic map, which is characterized in that including:
Three-dimensional coordinate acquiring unit, the three-dimensional coordinate of initial position and source location for obtaining electronic map;Wherein,
The three-dimensional coordinate of initial position and source location includes longitude coordinate, latitude coordinate and height coordinate, wherein initial position
The value of the height coordinate of point and source location is respectively when initial position and source location show electronic map
The corresponding height value of engineer's scale;
Three-dimensional coordinate determination unit, the initial position for being obtained according to the three-dimensional coordinate acquiring unit and source location
Three-dimensional coordinate, determine the three-dimensional coordinate of key node;
Space curve generation unit, the initial position, the mesh for being obtained according to the three-dimensional coordinate acquiring unit
The three-dimensional coordinate for the key node that cursor position point and the three-dimensional coordinate determination unit determine, generation are sequentially connected the initial bit
Set the space curve of point, the key node and the source location;
Transfer point determination unit, for according to preset map denotation duration, move function and brush screen time interval, from described
Transfer point is determined in the space curve that space curve generation unit generates, and using the source location as a movement
Point;
Display unit, for be starting point along the space curve using the initial position, successively with transfer point determination
Point centered on the transfer point that unit determines shows electronic map.
7. device as claimed in claim 6, which is characterized in that the three-dimensional coordinate determination unit specifically includes:
Latitude and longitude coordinates determining module, the initial position for obtaining the three-dimensional coordinate acquiring unit and the target position
Longitude coordinate of the average value of a longitude coordinate as the key node is set, and the three-dimensional coordinate acquiring unit is obtained
Initial position and the source location latitude coordinate latitude coordinate of the average value as the key node;
Engineer's scale determining module, for according to the screen distance of the initial position and the source location and preset
Engineer's scale range determines the corresponding engineer's scale of the key node;
Height coordinate determining module is determined and the ratio for the correspondence according to preset engineer's scale and height value
The height value for the corresponding engineer's scale of key node that ruler determining module determines, and sat the height value as the height of key node
Mark.
8. device as claimed in claim 7, which is characterized in that the engineer's scale determining module is specifically used for:
Calculate the product of the screen distance and pre-set proportionality coefficient of the initial position and the source location;
The product is compared with preset engineer's scale range;
When the product is less than the minimum scale ruler in the engineer's scale range, by the minimum scale in the engineer's scale range
Ruler is determined as the corresponding engineer's scale of the key node;
When the product is more than the maximum ratio ruler in the engineer's scale range, by the maximum ratio in the engineer's scale range
Ruler is determined as the corresponding engineer's scale of the key node;
When the product is located within the scope of the engineer's scale, the crucial section will be determined as with the immediate engineer's scale of the product
The corresponding engineer's scale of point.
9. such as claim 6~8 any one of them device, which is characterized in that the transfer point determination unit is specifically used for:
The space curve is divided equally into multiple curved sections, and since initial position along space Qu Yici to curve
Section is numbered;According to the initial position, the volume of key node, the three-dimensional coordinate of source location and its affiliated curved section
Number, determine that the first function relationship of longitude coordinate and curve segment number, latitude coordinate and the second function of curve segment number are closed
System, the third functional relation of height coordinate and curve segment number;According between the map denotation duration and preset brush screen time
Every determining brush screen number;With electronic map for 0 at the time of the initial position, displacement distance 0, with described initial
Location point is that starting point is moved according to the move function along the space curve, determines that the primary screen of every brush is moved to space song
Location point on line, using the location point determined as transfer point;According to each transfer point on space curve affiliated curved section
Number, the first function relationship, second function relationship and third functional relation, determine that the three-dimensional of each transfer point is sat
Mark.
10. device as claimed in claim 9, which is characterized in that the display unit is specifically used for:
For each transfer point, the point centered on the latitude and longitude coordinates of the transfer point is corresponding with the height coordinate of the transfer point
Engineer's scale is engineer's scale when showing electronic map, shows electronic map.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410736415.5A CN105719351B (en) | 2014-12-04 | 2014-12-04 | A kind of method and apparatus of display electronic map |
PCT/CN2015/096391 WO2016086893A1 (en) | 2014-12-04 | 2015-12-04 | Method and device for displaying electronic map |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410736415.5A CN105719351B (en) | 2014-12-04 | 2014-12-04 | A kind of method and apparatus of display electronic map |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105719351A CN105719351A (en) | 2016-06-29 |
CN105719351B true CN105719351B (en) | 2018-09-28 |
Family
ID=56091046
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410736415.5A Active CN105719351B (en) | 2014-12-04 | 2014-12-04 | A kind of method and apparatus of display electronic map |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105719351B (en) |
WO (1) | WO2016086893A1 (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107122774B (en) * | 2017-03-28 | 2019-12-03 | 武汉斗鱼网络科技有限公司 | A kind of adaptive chart pasting method and system mobile with key point in image |
CN108801287B (en) * | 2017-05-03 | 2021-08-13 | 腾讯科技(深圳)有限公司 | Display method of guide line in navigation map and mobile terminal |
CN107993195A (en) * | 2017-12-07 | 2018-05-04 | 西南交通大学 | Take the small screen control with changed scale ruler traffic route drawing generating method of shape control into account |
CN108415936A (en) * | 2018-01-24 | 2018-08-17 | 武汉智博创享科技股份有限公司 | A kind of trajectory playback method and device of electronic map |
CN112650896A (en) * | 2019-10-12 | 2021-04-13 | 阿里巴巴集团控股有限公司 | Data processing method, device, equipment and storage medium |
CN111085998B (en) * | 2019-12-17 | 2021-11-09 | 珠海市一微半导体有限公司 | Method for recording motion trail of robot and method for displaying motion trail of robot |
CN111143709B (en) * | 2019-12-18 | 2023-11-21 | 深圳市超时空探索科技有限公司 | Revocation method and device in 3D map scene |
CN111177598B (en) * | 2019-12-26 | 2023-06-27 | 深圳市超时空探索科技有限公司 | Geographic position jumping method |
CN113554932B (en) * | 2020-04-23 | 2022-07-19 | 华为技术有限公司 | Track playback method and device |
CN112131331B (en) * | 2020-09-24 | 2022-06-03 | 腾讯科技(深圳)有限公司 | Map data processing method, map data processing device, computer equipment and storage medium |
CN112287060B (en) * | 2020-11-13 | 2021-09-28 | 珠海大横琴科技发展有限公司 | Data processing method and device based on monitoring map and readable storage medium |
CN113593397B (en) * | 2021-08-18 | 2023-08-08 | 哈尔滨海能达科技有限公司 | Historical track data loading method, device and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1920807A (en) * | 2005-08-24 | 2007-02-28 | 中国移动通信集团公司 | Digital map display method |
CN101707026A (en) * | 2009-11-25 | 2010-05-12 | 中国人民解放军信息工程大学 | Combined optimization method for simplifying digital map linear factors |
CN101763658A (en) * | 2009-12-14 | 2010-06-30 | 煤航(香港)有限公司 | Manufacturing method for full-factor real-tridimensional large scale numerical map |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4902236B2 (en) * | 2006-03-22 | 2012-03-21 | 株式会社日立製作所 | 3D map display device, 3D map display program, and recording medium recording 3D map display program |
US8954265B2 (en) * | 2010-04-09 | 2015-02-10 | Tomtom North America, Inc. | Method of resolving a location from data representative thereof |
CN101975578B (en) * | 2010-09-20 | 2012-10-17 | 北京腾瑞万里科技有限公司 | Navigation method and device |
JP5605186B2 (en) * | 2010-11-23 | 2014-10-15 | アイシン・エィ・ダブリュ株式会社 | Control device, control method of control device, and computer program |
CN102075972B (en) * | 2010-12-31 | 2014-05-07 | 中国科学技术大学苏州研究院 | Wireless signal positioning and tracking display system based on coordinate transformation and display method thereof |
-
2014
- 2014-12-04 CN CN201410736415.5A patent/CN105719351B/en active Active
-
2015
- 2015-12-04 WO PCT/CN2015/096391 patent/WO2016086893A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1920807A (en) * | 2005-08-24 | 2007-02-28 | 中国移动通信集团公司 | Digital map display method |
CN101707026A (en) * | 2009-11-25 | 2010-05-12 | 中国人民解放军信息工程大学 | Combined optimization method for simplifying digital map linear factors |
CN101763658A (en) * | 2009-12-14 | 2010-06-30 | 煤航(香港)有限公司 | Manufacturing method for full-factor real-tridimensional large scale numerical map |
Also Published As
Publication number | Publication date |
---|---|
WO2016086893A1 (en) | 2016-06-09 |
CN105719351A (en) | 2016-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105719351B (en) | A kind of method and apparatus of display electronic map | |
CN1307510C (en) | Single camera system for gesture-based input and target indication | |
CN105786822B (en) | Search space object and the method and device for establishing spatial index in electronic map | |
CN101400001B (en) | Generation method and system for video frame depth chart | |
CN102903134B (en) | Fast Drawing is the method for curve repeatedly | |
CN107861682A (en) | The control method for movement and device of virtual objects | |
CN103810756B (en) | The method for drafting of self adaptive Loop subdivision curved surface based on irregular area | |
CN102880389B (en) | By touching the mobile method and the device thereof that carry out page layout switch | |
CN108549878B (en) | Depth information-based hand detection method and system | |
CN105303616A (en) | Embossment modeling method based on single photograph | |
CN109816792A (en) | Localization method and device in a kind of three-dimensional scenic | |
CN102857778A (en) | System and method for 3D (three-dimensional) video conversion and method and device for selecting key frame in 3D video conversion | |
CN108534789A (en) | A kind of multipath elements of a fix unified approach, electronic equipment and readable storage medium storing program for executing | |
CN103400393B (en) | A kind of image matching method and system | |
CN105955583A (en) | Icon arrangement method and system as well as display terminal | |
CN106611443A (en) | Method and device for picking up three-dimensional terrain point | |
CN106462342B (en) | The device that finger print navigation method and finger print navigation signal generate | |
CN106447761B (en) | A kind of Shading Rendering method | |
CN110860088B (en) | Rendering method and device of small map in racing game and game terminal | |
CN101477711A (en) | Method for automatically generating tri-dimensional topography in Torque engine | |
CN108513090A (en) | The method and device of group's video session | |
CN108268205A (en) | Vehicle device is to the touch screen countercharge method and system of mobile terminal | |
CN105224204B (en) | parameter input method and device | |
CN103778595B (en) | Image shrinking processing method and device thereof | |
CN104613970A (en) | Simulative navigation data generation method and client |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200422 Address after: 310012 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 |