CN108053751A - A kind of method and apparatus that direction arrow is drawn on navigation of electronic map route - Google Patents

A kind of method and apparatus that direction arrow is drawn on navigation of electronic map route Download PDF

Info

Publication number
CN108053751A
CN108053751A CN201711483200.7A CN201711483200A CN108053751A CN 108053751 A CN108053751 A CN 108053751A CN 201711483200 A CN201711483200 A CN 201711483200A CN 108053751 A CN108053751 A CN 108053751A
Authority
CN
China
Prior art keywords
control point
direction arrow
navigation
navigation routine
path
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
Application number
CN201711483200.7A
Other languages
Chinese (zh)
Other versions
CN108053751B (en
Inventor
于国华
张发勇
李田
郑朝军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Zhi Bo Enjoy Polytron Technologies Inc
Original Assignee
Wuhan Zhi Bo Enjoy Polytron Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Zhi Bo Enjoy Polytron Technologies Inc filed Critical Wuhan Zhi Bo Enjoy Polytron Technologies Inc
Priority to CN201711483200.7A priority Critical patent/CN108053751B/en
Publication of CN108053751A publication Critical patent/CN108053751A/en
Application granted granted Critical
Publication of CN108053751B publication Critical patent/CN108053751B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B29/00Maps; Plans; Charts; Diagrams, e.g. route diagram
    • G09B29/003Maps
    • G09B29/006Representation of non-cartographic information on maps, e.g. population distribution, wind direction, radiation levels, air and sea routes
    • G09B29/008Touring maps or guides to public transport networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Ecology (AREA)
  • Mathematical Physics (AREA)
  • Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • General Physics & Mathematics (AREA)
  • Navigation (AREA)

Abstract

The present invention provides the method and apparatus that direction arrow is drawn on a kind of navigation of electronic map route, belongs to intelligent mobile application field.The described method includes:Draw the shape vector of direction arrow;Calculate the shape vector of the direction arrow and the offset of navigation of electronic map route;According to the offset, the direction arrow is drawn on the electronic map along navigation routine.For this programme by path drawing into the shape vector of needs, such as arrowhead form, this method uses Android primary method, without picture and other resources, simply, reliably.

Description

A kind of method and apparatus that direction arrow is drawn on navigation of electronic map route
Technical field
The present invention relates to intelligent mobile application fields, and in particular to draws direction arrow on a kind of navigation of electronic map route Method and apparatus.
Background technology
, it is necessary to which the arrow drawn on navigation routine is directed toward icon in map development process, it is common practice to use arrow The picture of head shapes is plotted in a manner of Bitmap bitmaps on navigation routine.
But this method, there are drawback, the memory that not only Bitmap is occupied is excessive, causes memory overhead excessive, and Bitmap can bring and render performance issue.
The content of the invention
An embodiment of the present invention provides the method and apparatus that direction arrow is drawn on a kind of navigation of electronic map route, are pacifying The path pattern of navigation routine during tall and erect drawing path can be set, closed path shape can be drawn using path.It should Method uses Android primary method, without picture and other resources, simply, reliably.
On the one hand, the present invention provides a kind of method that direction arrow is drawn on navigation of electronic map route, the method bag It includes:
Draw the shape vector of direction arrow;
Calculate the shape vector of the direction arrow and the offset of navigation of electronic map route;
According to the offset, the direction arrow is drawn on the electronic map along navigation routine.
On the other hand, the present invention also provides the device that direction arrow is drawn on a kind of navigation of electronic map route, the dresses It puts including determining vector module, computing module and drafting module;
The definite vector module, for drawing the shape vector of direction arrow;
The computing module, for calculating the offset of the shape vector of the direction arrow and navigation of electronic map route Amount;
The drafting module, for the offset obtained according to the computing module, along navigation routine described The direction arrow is drawn on electronic map.
It has the beneficial effect that:
The scheme that this programme provides, by path drawing into the shape vector of needs, such as arrowhead form, this method uses Android Native method, without picture and other resources, simply, reliably.In addition interval can also be set, while navigation routine is drawn This shape is drawn once again along navigation routine drawing path.
Description of the drawings
Specific embodiments of the present invention are described below with reference to accompanying drawings, wherein:
Fig. 1 shows the method flow diagram for drawing direction arrow in the embodiment of the present invention one on navigation of electronic map route;
Fig. 2 shows the schematic diagram at six control points in the embodiment of the present invention one;
Fig. 3 shows the schematic diagram that offset is calculated in the embodiment of the present invention one;
Fig. 4 shows the apparatus structure signal for drawing direction arrow in the embodiment of the present invention two on navigation of electronic map route Figure.
Specific embodiment
In order to which technical scheme and advantage is more clearly understood, below in conjunction with attached drawing to the exemplary of the present invention Embodiment is described in more detail, it is clear that described embodiment be only the present invention part of the embodiment rather than The exhaustion of all embodiments.And in the case where there is no conflict, the feature in the embodiment and embodiment in this explanation can be mutual It is combined.
Embodiment one
Fig. 1 shows the method that direction arrow is drawn on navigation of electronic map route provided in an embodiment of the present invention, described Method includes:
Step 101:Draw the shape vector of direction arrow;
Wherein, the step the specific implementation process is as follows:
Two endpoints of the path length of navigation routine are obtained, as the first control point 1 and the second control point 2;
The path width of navigation routine is obtained, second control point 2 is the path length and the path width Crosspoint;
By the crosspoint of another a line on the path width of the navigation routine and path, as the 3rd control point 3;
Another a line obtains the 4th control point 4 on the path, and the 4th control point 4 is another article on the path The endpoint on side;
First control point and the straight line that the 4th control point 4 is formed and second control point 2 and the described 3rd The straight line parallel that control point is formed;
The 6th control point 6 is generated between first control point 1 and the 4th control point 4;
The 5th control point 5 is generated between second control point 2 and the 3rd control point 3;
The figure formed between six control points, for the shape vector for the direction arrow drawn out, six controls System point includes the first control point, the second control point, the 3rd control point, the 3rd control point, the 4th control point, the 5th control point and the Six control points.
Wherein, the straight line that the 6th control point 6 and the first control point 1 are formed, with 2 structure of the 5th control point 5 and the second control point Into straight line parallel;
Or, the 6th straight line for forming of control point 6 and the 4th control point 4, it is formed with the 5th control point 5 with the 3rd control point 3 Straight line parallel.
Wherein, the shape vector drawn of the present invention can be seen as shown in Fig. 2, the shape of arrow is made of six control points Work is similar triangles (and two triangles that two (the small length of side for navigation navigation routine line width) bases of different sizes overlap The abscissa on the vertex of shape is identical), make vertical line and larger triangle then along two points on the base of smaller triangle The intersection point on two sides of shape, in addition two points of two vertexs of a triangle and smaller triangle base, what this six points were formed Closed figure is icon shape.
Step 102:Calculate the shape vector of direction arrow and the offset of navigation of electronic map route;
For the step, calculating the specific method of offset includes:Calculate in navigation routine between two central points away from From the distance is offset;By the abscissa at six control points, the offset is subtracted, obtains new coordinate;To be sat according to new Arrow is plotted in along navigation routine on the electronic map by mark.
Referring to Fig. 3, since the path of arbitrary shape is the point centered on the transverse and longitudinal coordinate of string, the origin corresponding to shape And this point, it is only necessary to calculate the distance that arrowhead form point 2 arrives y-axis, be overall offset amount, the six of arrow vector will be formed The abscissa of a point subtracts this offset, then arrowhead form will be fitted in above.
Step 103:According to offset, direction arrow is drawn on the electronic map along navigation routine.
In addition, the present invention also provides it is a kind of by path drawing into the shape vector of needs, after arrowhead form, Ran Houshe Interval is put, draws this shape once again along navigation routine drawing path while navigation routine is drawn.
Specifically, along the direction of the shape vector, the direction arrow is drawn every a distance on navigation routine Head.
Scheme provided by the invention, by path drawing into the shape vector of needs, such as arrowhead form, this method uses Android Native method, without picture and other resources, simply, reliably.In addition interval can also be set, while navigation routine is drawn This shape is drawn once again along navigation routine drawing path.
Embodiment two
Based on same inventive concept, the dress that direction arrow is drawn on a kind of navigation of electronic map route is present embodiments provided It puts, principle and a kind of navigation of electronic map route that the device of direction arrow solves the problems, such as is drawn on the navigation of electronic map route The method of upper drafting direction arrow is similar, therefore device implementation for drawing direction arrow on the electronic map may refer to one kind The method embodiment of direction arrow is drawn on navigation of electronic map route, overlaps will not be repeated.
With reference to Fig. 4, to drawing the device of direction arrow, institute on a kind of navigation of electronic map route provided by the invention Stating device includes determining vector module 301, computing module 302 and drafting module 303;
Vector module 301 is determined, for drawing the shape vector of direction arrow;
Computing module 302, for calculating the offset of the shape vector of the direction arrow and navigation of electronic map route;
Drafting module 303, for the offset obtained according to computing module 302, along navigation routine in the electricity The direction arrow is drawn on sub- map.
Wherein, drafting module 303 specifically include first acquisition unit, second acquisition unit and the 3rd acquiring unit,
The first acquisition unit, for obtaining the two of the path length of the navigation routine endpoints, as the first control System point and the second control point, and obtain the path width of the navigation routine, second control point for the path length and The crosspoint of the path width;
The second acquisition unit, for the path width of the navigation routine and another a line on path to be intersected Point, as the 3rd control point, and another a line obtains the 4th control point on the path, and the 4th control point is the road The endpoint of another a line on footpath;The straight line that first control point and the 4th control point are formed and second control point with The straight line parallel that 3rd control point is formed;
3rd acquiring unit, for the 6th control of generation between first control point and the 4th control point Point generates the 5th control point between second control point and the 3rd control point;
The figure formed between six control points, for the shape vector for the direction arrow drawn out, six controls System point includes the first control point, the second control point, the 3rd control point, the 3rd control point, the 4th control point, the 5th control point and the Six control points.
Further, in the present invention, the 6th control point and the straight line of the first control point composition, with the 5th control point and second The straight line parallel that control point is formed;
Or, the 6th straight line for forming of control point and the 4th control point, it is formed with the 5th control point with the 3rd control point straight Line is parallel.
Wherein, computing module 302 specifically includes:Calculate the distance between two central points, the distance in navigation routine For offset, by the abscissa at six control points, the offset is subtracted, obtains new coordinate;
Correspondingly, drafting module 303, for according to the new coordinate that the computing module obtains by the arrow along Navigation routine is plotted on the electronic map.
Wherein, drafting module 303 is additionally operable to the direction along shape vector, is drawn on navigation routine every a distance Direction arrow.
The scheme that this programme provides, by path drawing into the shape vector of needs, such as arrowhead form, this method uses Android Native method, without picture and other resources, simply, reliably.In addition interval can also be set, while navigation routine is drawn This shape is drawn once again along navigation routine drawing path.
For convenience of description, each several part of apparatus above is divided into various modules with function or unit describes respectively.Certainly, Each module or the function of unit can be realized in same or multiple softwares or hardware when implementing 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, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the present invention Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the present invention The computer program production that usable storage medium is implemented on (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 it 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 The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed 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 the instruction generation being stored in the computer-readable memory includes referring to Make 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 can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or The instruction offer performed on other programmable devices is used to implement 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, but those skilled in the art once know basic creation Property concept, then can make these embodiments other change and modification.So appended claims be intended to be construed to include it is excellent It selects embodiment and falls into all change and modification of the scope of the invention.

Claims (10)

1. the method for direction arrow is drawn on a kind of navigation of electronic map route, which is characterized in that the described method includes:
Draw the shape vector of direction arrow;
Calculate the shape vector of the direction arrow and the offset of navigation of electronic map route;
According to the offset, the direction arrow is drawn on the electronic map along navigation routine.
2. the method as described in claim 1, which is characterized in that the shape vector for drawing direction arrow specifically includes:
Two endpoints of the path length of the navigation routine are obtained, as the first control point and the second control point;
The path width of the navigation routine is obtained, second control point is the path length and the phase of the path width Intersection point;
By the crosspoint of another a line on the path width of the navigation routine and path, as the 3rd control point;
Another a line obtains the 4th control point on the path, and the 4th control point is the end of another a line on the path Point;
First control point and the straight line that the 4th control point is formed and second control point and the 3rd control point The straight line parallel of composition;
The 5th control point is generated between second control point and the 3rd control point;
The 6th control point is generated between first control point and the 4th control point;
The figure formed between six control points, for the shape vector for the direction arrow drawn out, six control points Including the first control point, the second control point, the 3rd control point, the 3rd control point, the 4th control point, the 5th control point and the 6th control Point processed.
3. method as claimed in claim 2, which is characterized in that the method further includes:
The straight line that 6th control point is formed with first control point, with the 5th control point and second control point The straight line parallel of composition;
Or,
The straight line that 6th control point is formed with the 4th control point, with the 5th control point and the 3rd control point The straight line parallel of composition.
4. method as claimed in claim 2, which is characterized in that the shape vector for calculating the direction arrow with electronically The offset of figure navigation routine, specifically includes:
The distance between two central points in navigation routine are calculated, the distance is offset;
By the abscissa at six control points, the offset is subtracted, obtains new coordinate;
The arrow is plotted in along navigation routine on the electronic map according to the new coordinate.
5. the method as described in claim 1-4 is any, which is characterized in that the method further includes:
Along the direction of the shape vector, the direction arrow is drawn every a distance on the navigation routine.
6. the device of direction arrow is drawn on a kind of navigation of electronic map route, which is characterized in that described device includes determining arrow Measure module, computing module and drafting module;
The definite vector module, for drawing the shape vector of direction arrow;
The computing module, for calculating the offset of the shape vector of the direction arrow and navigation of electronic map route;
The drafting module, for the offset obtained according to the computing module, along navigation routine in the electronics The direction arrow is drawn on map.
7. device as claimed in claim 6, which is characterized in that the drafting module specifically includes first acquisition unit, second Acquiring unit and the 3rd acquiring unit;
The first acquisition unit, for obtaining the two of the path length of the navigation routine endpoints, as the first control point With the second control point, and the path width of the navigation routine is obtained, second control point is the path length and described The crosspoint of path width;
The second acquisition unit, for by the crosspoint of another a line on the path width of the navigation routine and path, making For the 3rd control point, and another a line obtains the 4th control point on the path, and the 4th control point is on the path The endpoint of another a line;First control point and the straight line that the 4th control point is formed and second control point with it is described The straight line parallel that 3rd control point is formed;
3rd acquiring unit, for generating the 6th control point between first control point and the 4th control point, The 5th control point is generated between second control point and the 3rd control point;
The figure formed between six control points, for the shape vector for the direction arrow drawn out, six control points Including the first control point, the second control point, the 3rd control point, the 3rd control point, the 4th control point, the 5th control point and the 6th control Point processed.
8. device as claimed in claim 6, which is characterized in that described device further includes:
The straight line that 6th control point is formed with first control point, with the 5th control point and second control point The straight line parallel of composition;
Or,
The straight line that 6th control point is formed with the 4th control point, with the 5th control point and the 3rd control point The straight line parallel of composition.
9. device as claimed in claim 6, which is characterized in that the computing module specifically includes:It calculates two in navigation routine The distance between a central point, the distance are offset, by the abscissa at six control points, subtract the offset, Obtain new coordinate;
Correspondingly, the drafting module, for according to the new coordinate that the computing module obtains by the arrow along leading Air route line is plotted on the electronic map.
10. the device as described in claim 6-9 is any, which is characterized in that the drafting module is additionally operable to along the vector The direction arrow is drawn in the direction of shape on the navigation routine every a distance.
CN201711483200.7A 2017-12-29 2017-12-29 Method and device for drawing direction arrow on electronic map navigation route Active CN108053751B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711483200.7A CN108053751B (en) 2017-12-29 2017-12-29 Method and device for drawing direction arrow on electronic map navigation route

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711483200.7A CN108053751B (en) 2017-12-29 2017-12-29 Method and device for drawing direction arrow on electronic map navigation route

Publications (2)

Publication Number Publication Date
CN108053751A true CN108053751A (en) 2018-05-18
CN108053751B CN108053751B (en) 2020-10-23

Family

ID=62129213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711483200.7A Active CN108053751B (en) 2017-12-29 2017-12-29 Method and device for drawing direction arrow on electronic map navigation route

Country Status (1)

Country Link
CN (1) CN108053751B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110136221A (en) * 2019-04-12 2019-08-16 百度在线网络技术(北京)有限公司 Preprocess method and device for figure layer drafting of navigating
CN111024113A (en) * 2019-12-05 2020-04-17 深圳震有科技股份有限公司 GMap-based navigation path direction arrow drawing method, system and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19750550A1 (en) * 1996-12-13 1999-06-17 Zbigniew Lason Street map with index system for finding streets and specific locations
CN102954795A (en) * 2011-08-19 2013-03-06 比亚迪股份有限公司 Amplified crossing map drawing method and its apparatus
CN104613973A (en) * 2014-05-07 2015-05-13 腾讯科技(深圳)有限公司 Picture generation, display method and device
CN105574931A (en) * 2014-11-07 2016-05-11 高德信息技术有限公司 Electronic map road drawing method and device
CN107220335A (en) * 2017-05-25 2017-09-29 北京元心科技有限公司 Map plotting method and device, terminal device and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19750550A1 (en) * 1996-12-13 1999-06-17 Zbigniew Lason Street map with index system for finding streets and specific locations
CN102954795A (en) * 2011-08-19 2013-03-06 比亚迪股份有限公司 Amplified crossing map drawing method and its apparatus
CN104613973A (en) * 2014-05-07 2015-05-13 腾讯科技(深圳)有限公司 Picture generation, display method and device
CN105574931A (en) * 2014-11-07 2016-05-11 高德信息技术有限公司 Electronic map road drawing method and device
CN107220335A (en) * 2017-05-25 2017-09-29 北京元心科技有限公司 Map plotting method and device, terminal device and readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110136221A (en) * 2019-04-12 2019-08-16 百度在线网络技术(北京)有限公司 Preprocess method and device for figure layer drafting of navigating
CN110136221B (en) * 2019-04-12 2023-04-11 阿波罗智联(北京)科技有限公司 Preprocessing method and device for drawing navigation map layer
CN111024113A (en) * 2019-12-05 2020-04-17 深圳震有科技股份有限公司 GMap-based navigation path direction arrow drawing method, system and equipment

Also Published As

Publication number Publication date
CN108053751B (en) 2020-10-23

Similar Documents

Publication Publication Date Title
US20150134302A1 (en) 3-dimensional digital garment creation from planar garment photographs
CN104809456B (en) A kind of Three-dimensional target recognition method based on two valued description symbol
CN103390085B (en) A kind of the automatic of basic style of clothes beats version method
CN106918819A (en) A kind of laser radar point cloud data obstacle detection algorithm
CN108053751A (en) A kind of method and apparatus that direction arrow is drawn on navigation of electronic map route
CN105740256A (en) Generation method and generation device of three-dimensional map
US11410355B2 (en) Method and apparatus for creating digital clothing
CN108326845A (en) Robot localization method, apparatus and system based on binocular camera and laser radar
CN107480315A (en) Parameterize the method and system of model design
CN108830385A (en) deep learning model training method and device and computer readable storage medium
CN106802924A (en) The cautious data of magnanimity observation system big gun based on multi-threaded parallel draw display methods
KR101338918B1 (en) System and method for 3-dimensional modelling underground facilities
CN111199064A (en) Method for generating three-dimensional center line of subway rail surface
CN110933743A (en) Positioning method and device based on Received Signal Strength Indicator (RSSI)
CN108253884B (en) Method and system for measuring non-contact space attitude of shield machine segment
CN108205563A (en) Electronic map information mask method, device and terminal
CN103698776B (en) A kind of loop closure measuring method of GPS Controling network triangular closed ring
CN113706659B (en) Discretization parameter drawing method based on clothing quarter elliptical arc
CN106095158A (en) The system that the computational methods of light target displacement vector, device and control cursor move
CN104134207A (en) Automatic detection method for complete enveloping of surface model in geometric modeling
JP5810790B2 (en) Visualization processing program, visualization processing method, and visualization processing apparatus
CN104461577A (en) Flow chart display method based on HTML5 graph drawing program
CN105212293A (en) A kind of accuracy control method brassiere mold cup microcapsules arranged based on dispensing technology
CN107192386A (en) A kind of indoor orientation method navigated based on distributed inertial positioning system
US20200242819A1 (en) Polyline drawing 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