CN109544658A - The rendering method and device of map, storage medium, electronic device - Google Patents
The rendering method and device of map, storage medium, electronic device Download PDFInfo
- Publication number
- CN109544658A CN109544658A CN201710860484.0A CN201710860484A CN109544658A CN 109544658 A CN109544658 A CN 109544658A CN 201710860484 A CN201710860484 A CN 201710860484A CN 109544658 A CN109544658 A CN 109544658A
- Authority
- CN
- China
- Prior art keywords
- vertex
- coordinate points
- region
- pixel
- camber line
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/206—Drawing of charts or graphs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/40—Filling a planar surface by adding surface attributes, e.g. colour or texture
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Generation (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a kind of rendering methods of map and device, storage medium, electronic device.Wherein, this method comprises: obtaining render instruction, render instruction is at least indicating that the inflection point in map between the first section and the second section is rendered;In response to render instruction, the first coordinate points and the second coordinate points are searched in map, on first area where the first vertex first while with where the second vertex on second area second while intersect at the first coordinate points, the third on first area where the first vertex while extended line and second area on where the second vertex the 4th while extended line intersect at the second coordinate points;According to the first coordinate points, the second coordinate points, the first vertex and the second vertex, the camber line for connecting the first vertex and the second vertex is rendered.The present invention solves the technical problem of the boundary inaccuracy of the knee region of the road rendered on map in the related technology.
Description
Technical field
The present invention relates to electronic map fields, and the rendering method and device, storage in particular to a kind of map are situated between
Matter, electronic device.
Background technique
The symbolism method of geospatial entity is the important research content of area of geographic information and map making field.Phase
Than in common point symbol and face symbol, line symbol since its needs along Linear element walks the characteristics of always filling is drawn,
It is often more difficult and time consuming.Other than common solid line and dotted line, the line style symbol needed in Map Expression is more multiple
It is miscellaneous.If the line style symbol of major urban arterial highway is the two-wire pel with frame;Railway symbol is chequered with black and white with frame
Pel;Unilateral boundary line symbol is the pel of dentation.These line style symbols are composed one using different geometries and have
The pel of semantic information.Traditional drafting mode is by the relevant specific function of symbol, is each line style Design of Symbols phase
The drafting function answered;Another common mode is to be decomposed map symbol in the way of combination drafting, further according to decomposition
Pel out repeatedly draws line of vector.
In map render scenes, for line draw the rendering of element antialiasing mode can by way of texture mapping it is real
It is existing, achieve the purpose that line draws element antialiasing by carrying out antialiasing processing to texture itself.In line segment (i.e. road) junction,
Under different scale rank, fan-shaped display is simulated by triangle fitting as much as possible.Due to texture inherently one figure
Piece is drawn an element online and is in the render scenes (such as high-precision map) of different scale, can generate certain untrue.And
And sector is fitted by triangle, substantially end is not a circular arc, and the purpose most really shown is not achieved.
Such as map symbol is decomposed in the way of combination drafting as shown in Figure 1, showing, and by delta
Domain carries out textures filling to carry out the scheme of antialiasing rendering, and road 1 and road 2, which possess, intersects at O point (inflection point), this is in sight
Point should show arc inflection point, but since graphics processor GPU is rendered as unit of triangle in practical application, be
The feature for adapting to GPU, is often split as multiple triangles for knee region, such as splits triangle as shown in Figure 1
OAB, OBC, OCD, ODE, and then send the related data of each triangle to GPU, each delta-shaped region is carried out respectively
Rendering, the boundary being made of line segment AB, BC, CD, DE is finally showed in knee region, simulates fan-shaped display, but in height
In precision map, when user amplifies the region and checks, it still is able to see that (and actual boundary should be camber line for serrated boundary
AE)。
For the technical problem of the boundary inaccuracy of the knee region of the road rendered on map in the related technology, mesh
It is preceding not yet to put forward effective solutions.
Summary of the invention
The embodiment of the invention provides a kind of rendering methods of map and device, storage medium, electronic device, at least to solve
The technical problem of the boundary inaccuracy of the knee region of the road certainly rendered on map in the related technology.
According to an aspect of an embodiment of the present invention, a kind of rendering method of map is provided, this method comprises: obtaining wash with watercolours
Order is had a finger in every pie, render instruction is at least indicating that the inflection point in map between the first section and the second section is rendered;Response
In render instruction, the first coordinate points and the second coordinate points, the first side on first area where the first vertex are searched in map
The first coordinate points are intersected at the second side where the second vertex on second area, the third on first area where the first vertex
While extended line and second area on where the second vertex the 4th while extended line intersect at the second coordinate points, first area is used
In indicating the first section, second area is for indicating the second section;According to the first coordinate points, the second coordinate points, the first vertex and
Second vertex renders the camber line for connecting the first vertex and the second vertex.
One side according to an embodiment of the present invention additionally provides a kind of rendering device of map, comprising: acquiring unit is used
In obtaining render instruction, render instruction is at least indicating that the inflection point in map between the first section and the second section carries out wash with watercolours
Dye;Response unit searches the first coordinate points and the second coordinate points in response to render instruction in map, on first area
Where first vertex first while with where the second vertex on second area second while intersect at the first coordinate points, first area
Third where upper first vertex while extended line and second area on where the second vertex the 4th while extended line intersect at
Second coordinate points, first area is for indicating the first section, and second area is for indicating the second section;Rendering unit is used for root
According to the first coordinate points, the second coordinate points, the first vertex and the second vertex, render for connecting the first vertex and the second vertex
Camber line.
One side according to an embodiment of the present invention additionally provides a kind of storage medium, which includes the journey of storage
Sequence, program execute above-mentioned method when running.
One side according to an embodiment of the present invention additionally provides a kind of electronic device, including memory, processor and storage
On a memory and the computer program that can run on a processor, processor execute above-mentioned method by computer program.
In embodiments of the present invention, it is used to indicate at least to map between the first section and the second section getting
The render instruction that inflection point is rendered searches the first coordinate points and the second coordinate points, the first vertex on first area in map
The first of place while with where the second vertex on second area second while intersect at the first coordinate points, on first area the first top
Third where point while extended line and second area on where the second vertex the 4th while extended line intersect at the second coordinate
Point, first area is for indicating the first section, and second area is for indicating the second section;According to the first coordinate points, the second coordinate
Point, the first vertex and the second vertex, can render the camber line for connecting the first vertex and the second vertex, can solve phase
The technical problem of the boundary inaccuracy of the knee region of the road rendered on map in the technology of pass, and then reach on map
The technical effect on the boundary of the knee region of the road accurately rendered.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram according to the optional map rendering of one of the relevant technologies;
Fig. 2 is the schematic diagram of the hardware environment of the rendering method of map according to an embodiment of the present invention;
Fig. 3 is a kind of flow chart of the rendering method of optional map according to an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of optional road area according to an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of optional road area according to an embodiment of the present invention;
Fig. 6 is a kind of schematic diagram of optional road area according to an embodiment of the present invention;
Fig. 7 is a kind of schematic diagram of optional road area according to an embodiment of the present invention;
Fig. 8 is a kind of schematic diagram of optional road area according to an embodiment of the present invention;
Fig. 9 is the schematic diagram that a kind of optional line according to an embodiment of the present invention draws component attributes value;
Figure 10 is a kind of schematic diagram of optional road area according to an embodiment of the present invention;
Figure 11 is a kind of schematic diagram of the rendering device of optional map according to an embodiment of the present invention;And
Figure 12 is a kind of structural block diagram of terminal according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Firstly, the part noun or term that occur during the embodiment of the present invention is described are suitable for as follows
It explains:
OpenGL (full name Open Graphics Library), which refers to, defines one across programming language, cross-platform volume
The graphic package interface of the profession of journey interface specification.It, for 3-D image (two-dimensional also can), be one powerful, is called
Convenient underlying graphics library.
GL_LINES: using each vertex as an independent line segment, n item is defined between vertex V (2n-1) and V (2n)
Line segment draws N/2 line segment.That straight line connects between V1 and V2, between V3 and V4, between V5 and V6 such as n=3, V2 with
There is no straight line connection between V3, V4 and V5.
According to embodiments of the present invention, a kind of embodiment of the method for the rendering method of map is provided.
Optionally, in the present embodiment, the rendering method of above-mentioned map can be applied to as shown in Figure 2 by server
202 and the hardware environment that is constituted of terminal 204 in.As shown in Fig. 2, server 202 is attached by network with terminal 204,
Above-mentioned network includes but is not limited to: wide area network, Metropolitan Area Network (MAN) or local area network, terminal 204 be not limited to PC computer, car-mounted terminal,
Mobile terminal (such as mobile phone, tablet computer).The rendering method of the map of the embodiment of the present invention can be held by server 202
Row, can also be executed by terminal 204, be can also be and executed jointly by server 202 and terminal 204.Wherein, terminal 204 is held
The rendering method of the map of the row embodiment of the present invention is also possible to be executed by client mounted thereto.
Such as when terminal 104 executes the present processes, it may include following steps:
Step S21, terminal receives the basic map data that map server is sent, and (such as terminal is currently located the data in region
Packet, current data packet needed after map amplification etc.).
Step S22, terminal carry out rendering processing.
Step S221, in order to which the inflection point at least to map between the first section and the second section is rendered, in map
The first coordinate points of middle lookup and the second coordinate points, on the first side and second area on first area where the first vertex the second top
The second side where point intersects at the first coordinate points, the extended line on the third side on first area where the first vertex and the secondth area
The extended line on the 4th side on domain where the second vertex intersects at the second coordinate points, and first area is used to indicate the first section, the
Two regions are for indicating the second section;
Step S222 is rendered according to the first coordinate points, the second coordinate points, the first vertex and the second vertex for connecting
The camber line on the first vertex and the second vertex.
Step S23 shows the result (shape of map, inflection point including inflection point region of rendering in map client
Condition etc.).
For the rendering method of the map of above-mentioned steps S22, Fig. 3 is a kind of optional map according to an embodiment of the present invention
Rendering method flow chart, as shown in figure 3, this method may comprise steps of:
Step S302 obtains render instruction, and render instruction is at least indicating the first section and the second section in map
Between inflection point rendered.
Above-mentioned render instruction can be user's triggering, terminal triggering or server triggers instructions.The render instruction
It may be used to indicate the inflection point in map between the first section and the second section to be rendered, it may also be used for instruction is to need to currently show
Part in the map area shown in addition to inflection point is rendered.
Step S304 searches the first coordinate points and the second coordinate points in response to render instruction in map, on first area
Where first vertex first while with where the second vertex on second area second while intersect at the first coordinate points, first area
Third where upper first vertex while extended line and second area on where the second vertex the 4th while extended line intersect at
Second coordinate points, first area is for indicating the first section, and second area is for indicating the second section.
Step S306 is rendered according to the first coordinate points, the second coordinate points, the first vertex and the second vertex for connecting
The camber line on the first vertex and the second vertex.
S302 to step S306 through the above steps is used to indicate the first section and second at least to map getting
The render instruction that inflection point between section is rendered searches the first coordinate points and the second coordinate points, first area in map
Where upper first vertex first while with where the second vertex on second area second while intersect at the first coordinate points, the firstth area
Third on domain where the first vertex while extended line with where the second vertex on second area the 4th while extended line intersect
In the second coordinate points, first area is for indicating the first section, and second area is for indicating the second section;According to the first coordinate
Point, the second coordinate points, the first vertex and the second vertex, can render the camber line for connecting the first vertex and the second vertex,
The technical problem of the boundary inaccuracy of the knee region of the road rendered on map in the related technology is can solve, in turn
Reach the technical effect on the boundary of the knee region of the road accurately rendered on map.
It is the stage of triangle surface to each of triangle surface that the technical solution of the application draws element pretreatment online
Vertex is pre-processed, and is carried out Alpha alpha operation to piece member at line segment intersecting in practical GPU render process, is reached anti-
Jaggies draws the purpose of element rendering.It is described in detail below with reference to step shown in Fig. 3.
In the technical solution that step S302 is provided, render instruction is obtained, herein at least indicating first in map
The render instruction that inflection point between section and the second section is rendered includes but is not limited to following generating mode:
(1) operation of the user in map client, the wash with watercolours triggered as opened map, Zone switched, enlarged map etc.
Have a finger in every pie order;
(2) for operation in other clients, such as start map, check position etc. and operate triggered rendering and refer to
It enables;
(3) when the position of terminal changes where map client terminal start-up, map client, client oneself triggering life
At render instruction;
(4) render instruction triggered by the instruction that map server is issued to map client.
In the technical solution that step S304 is provided, in response to render instruction, the first coordinate points and the are searched in map
Two coordinate points, on first area where the first vertex first while with where the second vertex on second area second while intersect at
First coordinate points, on the extended line and second area on the third side on first area where the first vertex where the second vertex
The extended line on four sides intersects at the second coordinate points, and first area is for indicating the first section, and second area is for indicating the second tunnel
Section.
As shown in figure 4, the first vertex D1 be first area Q1 in two vertex of the one end intersected second area Q2 not
A vertex Chong Die with second area;Second vertex D2 is two tops of second area Q2 with the one end intersected first area Q1
Not Chong Die with a first area vertex in point.
The where the first side B1 where the upper first vertex D1 of the first area Q1 and upper second vertex D2 of second area Q2
Two side B2 intersect at the first coordinate points Z1, the extended line Y1 of the third side B3 where upper first vertex first area Q1 and the secondth area
The extended line Y2 of the 4th side B4 where upper second vertex domain Q2 intersects at the second coordinate points Z2.
In the technical solution that step S306 is provided, according to the first coordinate points, the second coordinate points, the first vertex and the second top
Point renders the camber line for connecting the first vertex and the second vertex.
Optionally, step S306 " according to the first coordinate points, the second coordinate points, the first vertex and the second vertex, is rendered
For connecting the camber line on the first vertex and the second vertex " it can be realized by following sub-step:
Step S3062 is determined in third region for connecting the camber line on the first vertex and the second vertex, wherein third area
Domain includes the first vertex being sequentially connected, the first coordinate points, the second vertex and the second coordinate points, i.e. D1, Z2, D2, Z1 tetra-
The region that vertex is constituted.
In the embodiment shown in step S3062, as shown in Figure 5:
Searched in map first while the first perpendicular bisector C1 and second while the second perpendicular bisector C2 between intersection point where
Third coordinate points Z3;4-coordinate point O is searched on target segment B5, wherein include third coordinate points Z3 in target segment
With the second coordinate points Z2, the distance between the distance between 4-coordinate point and the first vertex 4-coordinate point and the second vertex
It is equal, that is, 4-coordinate point is the center of circle of circle where camber line.
Determine camber line according to 4-coordinate point, using camber line using 4-coordinate point as the center of circle and with 4-coordinate point and first
The distance between vertex is radius, is drawn out clockwise using vertex D1 as starting point, and vertex D2 is the camber line of terminal.
Step S3064 (justifies the region other than camber line in third region when rendering third region where camber line
External region) it is rendered by the way of transparent, to region (the i.e. circle round where camber line within camber line in third region
Interior region) rendered using nontransparent mode, due to rendering the difference of mode, by the way of transparent to circle outside area
Domain, which carries out rendering, to form camber line in third region.
Optionally, step S306 " according to the first coordinate points, the second coordinate points, the first vertex and the second vertex, is rendered
For connecting the camber line on the first vertex and the second vertex " it may also include the steps of:
Step S3066 is sat when rendering to the first pixel in third region according to the first pixel and the 4th
Transparency corresponding to the first spacing between punctuate renders the first pixel, wherein the first pixel is located at third
Region in region within camber line, 4-coordinate point are the coordinate points where the center of circle of camber line.
In this embodiment, first threshold can be first obtained, first threshold is less than the radius r of camber line;The first pixel with
In the case that the first spacing between 4-coordinate point is less than first threshold m1, the first pixel is carried out according to the first transparency
Rendering, wherein the first transparency is one.The first spacing d1 between the first pixel and 4-coordinate point is not less than the first threshold
In the case where value m1, the first pixel is rendered according to the second transparency f1, the difference between the first spacing and first threshold
It is inversely proportional to the second transparency.The calculation formula of second transparency is as follows:
F1=1- (d1-m1)/(r-m1).
It is adapted to carry out rendering as unit of triangle with GPU, in the embodiment of step S306, according to first
Coordinate points, the second coordinate points, the first vertex and the second vertex, render the camber line for connecting the first vertex and the second vertex
When: it can be the first Delta Region and the second Delta Region by third region division, the first Delta Region includes the be sequentially connected
One vertex, the second coordinate points and the first coordinate points, the second Delta Region include the first coordinate points being sequentially connected, the second coordinate
Point and the second vertex;By the vertex information of the first Delta Region (including D1, Z2, Z1, so that GPU identifies the first delta
Domain), the vertex information of the second Delta Region (including Z1, Z2, D2, so that GPU identifies the second delta-shaped region) and Alpha
Channel information is sent to graphics processor, by graphics processor to the first Delta Region and the two or three as unit of Delta Region
Angular zone is rendered, and alpha channel information, which is used to indicate, sets zero for the alpha channel value of third pixel, with wash with watercolours
Camber line is dyed, third pixel is the pixel in the region in the first Delta Region and the second Delta Region other than camber line.
Optionally, it according to the first coordinate points, the second coordinate points, the first vertex and the second vertex, renders for connecting
When the camber line on the first vertex and the second vertex, can the region as follows to road in addition to inflection point render:
Second threshold m2 is obtained, second threshold is less than the distance between the first perpendicular bisector of third while with first d2 (such as
Shown in Fig. 6);The second spacing d3 between the second pixel and the first perpendicular bisector in the first region is greater than the feelings of second threshold
Under condition, the second pixel is rendered according to third transparency f2, the difference between the second spacing and second threshold is inversely proportional to
Three transparencies.The calculation formula of third transparency f2 is as follows:
F2=1- (d3-m2)/(d2-m2).
As a kind of optional embodiment, the reality of the application is described in detail for showing navigation map on mobile terminals below
Apply example.
In cell phone map render scenes, the drafting for drawing element comprising various lines has carried " GL_ in OpenGL
This option of LINES ", for the drafting of Support Line, still, it does not support the processing of the end of a thread and line junction, and line width is not
It supports shaping and numerical value is no more than 10 pixels.Therefore, the rendering carried using OpenGL uses high-precision map to render
In, effect is undesirable.The application is split as triangle by splitting the line of bandwidth angle value (such as larger than 10 pixels)
The drafting of dough sheet achievees the purpose that line draws the rendering of element antialiasing to fillet processing is carried out at line segment intersecting.
It is split as several after can obtaining line stroke element (i.e. road) its pattern width using the technical solution of the application
A triangle, each triangle have geographical coordinate (i.e. apex coordinate) and antialiasing attribute value.Then, by triangular apex
Data organization is got up, including geographical coordinate, antialiasing attribute (dividing X-direction and Y direction), is input to graphics rendering pipeline
First processing stage: vertex shader creates memory for storing vertex data (namely vertex information) on GPU.Then,
After vertex shader is disposed, triangular grating is turned into triangle surface, is passed in piece member tinter and handles, at this
In color device, the operation of antialiasing is carried out.Finally, GPU is using previous processed as a result, being uniformly rendered on screen.
Single line stroke element, which is rendered into the process on screen, to be achieved by the steps of:
Step S31 carries out triangle fractionation to line segment (practical for the region where the line segment with width value).Online
It draws element and is split as triangle process, the fractionation and the fractionation at line segment intersecting that line segment main part can be divided into.
For line segment main part, as shown in fig. 7, the line segment for being parallel to X-axis is denoted as line segment D4D3, be parallel to the line segment and
It is denoted as a towards the unit vector of x-axis direction, the line segment for favouring X-axis is denoted as line segment D7D8, is parallel to the line segment and towards X-axis
Opposite direction is denoted as unit vector b.If current line width is W, half of line width is W/2.Herein, by a*W/2* (- 1) and
B*W/2 is added, and Z1Z4 vector can be obtained.
So, in the situation known to each apex coordinate, this two lines section can be split as triangle 1, and (vertex is respectively
D5, D1 and D4), triangle 2 (vertex is respectively D4, D1 and Z4), triangle 3 (vertex is respectively Z4, D1 and Z1), triangle 4
(vertex is respectively Z4, Z1 and D2), triangle 5 (vertex is respectively D7, Z4 and D2), triangle 6 (vertex be respectively D7, D2 and
D6), subsequent directly triangle surface to render.
At line segment intersecting, as shown in figure 5, the friendship of extended line and line segment D6D2 intersection by calculating line segment D5D1
Point can calculate the coordinate of Z2 point, therefore, at line segment intersecting, need newly-increased triangle 7 (vertex D1, Z2, Z1) and
Triangle 8 (vertex Z1, Z2, D2).
It should be noted that in the related art, in line segment junction according under the angle at turning and current scale bar
The size of line width is often fitted circular arc (as shown in Figure 1) by multiple triangles, will increase many additional triangles in this way
Shape expense, and junction is also not real circular arc, changes unnatural.
Using the technical solution of the application, final effect is as shown in Figure 8.
Step S32, vertex storage.
By the vertex storage of triangle 1 obtained above to triangle 8 to vertex shader.
Step S33, the processing of piece member antialiasing.
After above-mentioned line draws the result of element processing, the effect drawn on screen as shown in figure 9, longitudinal axis y indicates attribute value,
It also needs to carry out antialiasing processing, and there is no the processing of fillet at line segment intersecting, therefore can be carried out in piece member tinter
Additional processing.
Vertex information is passed to after vertex shader, and before incoming piece member tinter, OpenGL can be spontaneous by saturating
Interpolation is carried out depending on correction, as shown in Figure 10, triangle surface is broken up as multiple rasterisation pieces member, after each member has interpolation
Result.
For line segment (road) main part, the way of antialiasing is saturating by alpha in two parts up and down of line segment
Lightness gradual change and realize.For triangle 1, a threshold value n2 is defined below in A point, between line segment D1D5 and lines L1
Region in be alpha (i.e. transparency) gradual change processing, rest part retain alpha=1 (i.e. opaque).Due to only
Alpha gradual change is carried out in Y direction, therefore is directed to vertex triangle, and assignment is carried out to its pre-stored antialiasing attribute,
Middle X-direction attribute is 0, and Y direction attribute is respectively set to -1,1, wherein 1 indicates the Y attribute value of Z1 point and D1 point.This
Sample, the triangle surface can only carry out alpha interpolation in the Y-axis direction.
For part at line segment intersecting, as shown in figure 5, for triangle 7 (including vertex D1, Z1 and Z2), equally
The pre-stored antialiasing attribute of opposite vertexes triangle carries out assignment, and Z1 point is assigned a value of (0,0), and D1 point is assigned a value of (0,1), Z2 point
It is assigned a value of (n, 1), wherein the value of n is related with current turning angle.
Therefore, all to reach the piece that Z1 point distance is 1 in the rasterization process before being transmitted to the processing of piece member tinter
Member constitutes a circular arc (camber line), therefore in piece member tinter, it is same define an antialiasing threshold value m1 (be located at 0-1 it
Between).For the antialiasing attribute value of piece member, calculating its distance d1 for reaching center of circle O, (if two road are just orthogonal, O can be with
For Z1) (this operation can be carried out in piece member rasterization process).
If d1 < m1, piece member alpha=1 is opaque;
If m1 < d1 < 1, which does linear interpolation by d1, and alpha value range is 0~1, and gradual change is transparent;
If d1 > 1, piece member alpha=0 is transparent.
Finally, at for line segment intersecting, the form of expression is circular arc.
For single line, in map render scenes, antialiasing wash with watercolours may be implemented by the implementation of the application
Dye, and in line segment junction also available good processing, meet the needs of map render scenes.Using the line of the application
Element rendering scheme is drawn, in map render scenes, line stroke element rendering is more true, and turning is more mellow and full at line segment intersecting.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
According to embodiments of the present invention, a kind of rendering dress for implementing the map of the rendering method of above-mentioned map is additionally provided
It sets.Figure 11 is a kind of schematic diagram of the rendering device of optional map according to an embodiment of the present invention, as shown in figure 11, the device
It may include: acquiring unit 1101, response unit 1103 and rendering unit 1105.
Acquiring unit 1101, for obtaining render instruction, render instruction at least indicate in map the first section and
Inflection point between second section is rendered.
Above-mentioned render instruction can be user's triggering, terminal triggering or server triggers instructions.The render instruction
It may be used to indicate the inflection point in map between the first section and the second section to be rendered, it may also be used for instruction is to need to currently show
Part in the map area shown in addition to inflection point is rendered.
Response unit 1103, for searching the first coordinate points and the second coordinate points in map in response to render instruction, the
On one region where the first vertex first while with where the second vertex on second area second while intersect at the first coordinate points,
Third on first area where the first vertex while extended line and second area on where the second vertex the 4th while extension
Line intersects at the second coordinate points, and first area is for indicating the first section, and second area is for indicating the second section.
Rendering unit 1105, for rendering according to the first coordinate points, the second coordinate points, the first vertex and the second vertex
For connecting the camber line on the first vertex and the second vertex.
It should be noted that the acquiring unit 1101 in the embodiment can be used for executing the step in the embodiment of the present application
S302, the response unit 1103 in the embodiment can be used for executing the step S304 in the embodiment of the present application, in the embodiment
Rendering unit 1105 can be used for executing the step S306 in the embodiment of the present application.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not
It is limited to above-described embodiment disclosure of that.It should be noted that above-mentioned module as a part of device may operate in as
In hardware environment shown in Fig. 2, hardware realization can also be passed through by software realization.
By above-mentioned module, the inflection point being used to indicate at least to map between the first section and the second section is being got
The render instruction rendered searches the first coordinate points and the second coordinate points in map, on first area where the first vertex
First while with where the second vertex on second area second while intersect at the first coordinate points, the first vertex institute on first area
Third while extended line and second area on where the second vertex the 4th while extended line intersect at the second coordinate points,
One region is for indicating the first section, and second area is for indicating the second section;According to the first coordinate points, the second coordinate points,
One vertex and the second vertex, can render the camber line for connecting the first vertex and the second vertex, can solve related skill
The technical problem of the boundary inaccuracy of the knee region of the road rendered on map in art, and then reach accurate on map
The technical effect on the boundary of the knee region of the road rendered.
It is the stage of triangle surface to each of triangle surface that the technical solution of the application draws element pretreatment online
Vertex is pre-processed, and is carried out Alpha alpha operation to piece member at line segment intersecting in practical GPU render process, is reached anti-
Jaggies draws the purpose of element rendering.It is detailed below.
Above-mentioned rendering unit can include: determining module, for determining in third region for connecting the first vertex and the
The camber line on two vertex, wherein third region includes the first vertex being sequentially connected, the first coordinate points, the second vertex and second
Coordinate points;First rendering module, for being used to the region other than camber line in third region transparent when rendering third region
Mode is rendered, wherein is rendered by the way of transparent for forming camber line in third region.
Optionally it is determined that module can also be used in: searched in map first while the first perpendicular bisector and when second second
Third coordinate points where intersection point between perpendicular bisector;4-coordinate point is searched in target segment, wherein wrap in target segment
Include third coordinate points and the second coordinate points, the distance between 4-coordinate point and the first vertex and 4-coordinate point and the second vertex
The distance between it is equal;Camber line is determined according to 4-coordinate point, wherein camber line is sat using 4-coordinate point as the center of circle and with the 4th
The distance between punctuate and the first vertex are radius.
Above-mentioned rendering unit may also include that the second rendering module, for clicking through to the first pixel in third region
When row rendering, the first pixel is clicked through according to transparency corresponding to the first spacing between the first pixel and 4-coordinate point
Row rendering, wherein the first pixel is located at the region in third region within camber line, and 4-coordinate point is the center of circle place of camber line
Coordinate points.
Optionally, above-mentioned second rendering module is also used to: obtaining first threshold, wherein first threshold is less than the half of camber line
Diameter;In the case that the first spacing between the first pixel and 4-coordinate point is less than first threshold, according to the first transparency
First pixel is rendered, wherein the first transparency is one;Between the first pixel and 4-coordinate point first between
Away from not less than in the case where first threshold, the first pixel is rendered according to the second transparency, wherein the first spacing and the
Difference between one threshold value is inversely proportional to the second transparency.
Optionally, rendering unit may also include that division module, for being the first Delta Region and the by third region division
Two Delta Regions, wherein the first Delta Region includes the first vertex being sequentially connected, the second coordinate points and the first coordinate points,
Second Delta Region includes the first coordinate points, the second coordinate points and the second vertex being sequentially connected;Sending module, for by the
The vertex information of one Delta Region, the vertex information of the second Delta Region and alpha channel information are sent to graphics process
Device renders the first Delta Region and the second Delta Region as unit of Delta Region by graphics processor, wherein Ah
Your method channel information, which is used to indicate, sets zero for the alpha channel value of third pixel, to render camber line, third pixel
Point is the pixel in the region in the first Delta Region and the second Delta Region other than camber line.
Optionally, rendering unit is rendered according to the first coordinate points, the second coordinate points, the first vertex and the second vertex
When for connecting the camber line on the first vertex and the second vertex, can also obtain second threshold, wherein second threshold be less than third side with
The distance between first perpendicular bisector on the first side;Between second between the second pixel and the first perpendicular bisector in the first region
In the case where being greater than second threshold, the second pixel is rendered according to third transparency, wherein the second spacing and second
Difference between threshold value is inversely proportional to third transparency.
For single line, in map render scenes, antialiasing wash with watercolours may be implemented by the implementation of the application
Dye, and in line segment junction also available good processing, meet the needs of map render scenes.Using the line of the application
Element rendering scheme is drawn, in map render scenes, line stroke element rendering is more true, and turning is more mellow and full at line segment intersecting.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not
It is limited to above-described embodiment disclosure of that.It should be noted that above-mentioned module as a part of device may operate in as
In hardware environment shown in Fig. 2, hardware realization can also be passed through by software realization, wherein hardware environment includes network
Environment.
According to embodiments of the present invention, it additionally provides a kind of for implementing the server or terminal of the rendering method of above-mentioned map
(namely electronic device).
Figure 12 is a kind of structural block diagram of terminal according to an embodiment of the present invention, and as shown in figure 12, which may include:
One or more (one is only shown in Figure 12) processors 1201, memory 1203 and (such as above-mentioned implementation of transmitting device 1205
Sending device in example), as shown in figure 12, which can also include input-output equipment 1207.
Wherein, memory 1203 can be used for storing software program and module, such as the wash with watercolours of the map in the embodiment of the present invention
Dyeing method and the corresponding program instruction/module of device, the software journey that processor 1201 is stored in memory 1203 by operation
Sequence and module realize the rendering method of above-mentioned map thereby executing various function application and data processing.Memory
1203 may include high speed random access memory, can also include nonvolatile memory, as one or more magnetic storage device,
Flash memory or other non-volatile solid state memories.In some instances, memory 1203 can further comprise relative to processing
The remotely located memory of device 1201, these remote memories can pass through network connection to terminal.The example packet of above-mentioned network
Include but be not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 1205 is used to that data to be received or sent via network, can be also used for processor with
Data transmission between memory.Above-mentioned network specific example may include cable network and wireless network.In an example,
Transmitting device 1205 includes a network adapter (Network Interface Controller, NIC), can pass through cable
It is connected with other network equipments with router so as to be communicated with internet or local area network.In an example, transmission dress
1205 are set as radio frequency (Radio Frequency, RF) module, is used to wirelessly be communicated with internet.
Wherein, specifically, memory 1203 is for storing application program.
The application program that processor 1201 can call memory 1203 to store by transmitting device 1205, it is following to execute
Step:
Obtain render instruction, wherein render instruction is at least indicating in map between the first section and the second section
Inflection point rendered;
In response to render instruction, the first coordinate points and the second coordinate points are searched in map, wherein first on first area
Where vertex first while with where the second vertex on second area second while intersect at the first coordinate points, on first area
Third where one vertex while extended line and second area on where the second vertex the 4th while extended line intersect at second
Coordinate points, first area is for indicating the first section, and second area is for indicating the second section;
According to the first coordinate points, the second coordinate points, the first vertex and the second vertex, render for connect the first vertex and
The camber line on the second vertex.
Processor 1201 is also used to execute following step:
It is the first Delta Region and the second Delta Region by third region division, wherein the first Delta Region includes successively
Connected the first vertex, the second coordinate points and the first coordinate points, the second Delta Region include the first coordinate points being sequentially connected,
Second coordinate points and the second vertex;
The vertex information of first Delta Region, the vertex information of the second Delta Region and alpha channel information are sent
To graphics processor, wash with watercolours is carried out to the first Delta Region and the second Delta Region as unit of Delta Region by graphics processor
Dye, wherein alpha channel information, which is used to indicate, sets zero for the alpha channel value of third pixel, to render arc
Line, third pixel are the pixel in the region in the first Delta Region and the second Delta Region other than camber line.
Using the embodiment of the present invention, it is used to indicate at least to map between the first section and the second section getting
The render instruction that inflection point is rendered searches the first coordinate points and the second coordinate points, the first vertex on first area in map
The first of place while with where the second vertex on second area second while intersect at the first coordinate points, on first area the first top
Third where point while extended line and second area on where the second vertex the 4th while extended line intersect at the second coordinate
Point, first area is for indicating the first section, and second area is for indicating the second section;According to the first coordinate points, the second coordinate
Point, the first vertex and the second vertex, can render the camber line for connecting the first vertex and the second vertex, can solve phase
The technical problem of the boundary inaccuracy of the knee region of the road rendered on map in the technology of pass, and then reach on map
The technical effect on the boundary of the knee region of the road accurately rendered.
Optionally, the specific example in the present embodiment can be with reference to example described in above-described embodiment, the present embodiment
Details are not described herein.
It will appreciated by the skilled person that structure shown in Figure 12 is only to illustrate, terminal can be smart phone
(such as Android phone, iOS mobile phone), tablet computer, palm PC and mobile internet device (Mobile Internet
Devices, MID), the terminal devices such as PAD.Figure 12 it does not cause to limit to the structure of above-mentioned electronic device.For example, terminal is also
May include than shown in Figure 12 more perhaps less component (such as network interface, display device) or have and Figure 12 institute
Show different configurations.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing the relevant hardware of terminal device by program, which can store in a computer readable storage medium
In, storage medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random
Access Memory, RAM), disk or CD etc..
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can
With the program code of the rendering method for executing map.
Optionally, in the present embodiment, above-mentioned storage medium can be located at multiple in network shown in above-described embodiment
On at least one network equipment in the network equipment.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
S11 obtains render instruction, wherein render instruction is at least indicating the first section and the second section in map
Between inflection point rendered;
S12 searches the first coordinate points and the second coordinate points, wherein on first area in response to render instruction in map
Where first vertex first while with where the second vertex on second area second while intersect at the first coordinate points, first area
Third where upper first vertex while extended line and second area on where the second vertex the 4th while extended line intersect at
Second coordinate points, first area is for indicating the first section, and second area is for indicating the second section;
S13 is rendered according to the first coordinate points, the second coordinate points, the first vertex and the second vertex for connecting the first top
The camber line of point and the second vertex.;
Optionally, storage medium is also configured to store the program code for executing following steps:
Third region division is the first Delta Region and the second Delta Region, wherein the first Delta Region includes by S21
The first vertex, the second coordinate points and the first coordinate points being sequentially connected, the second Delta Region include that first be sequentially connected sits
Punctuate, the second coordinate points and the second vertex;
S22, by the vertex information of the first Delta Region, the vertex information of the second Delta Region and alpha channel information
Be sent to graphics processor, by graphics processor as unit of Delta Region to the first Delta Region and the second Delta Region into
Row rendering, wherein alpha channel information, which is used to indicate, sets zero for the alpha channel value of third pixel, to render
Camber line, third pixel are the pixel in the region in the first Delta Region and the second Delta Region other than camber line.
Optionally, the specific example in the present embodiment can be with reference to example described in above-described embodiment, the present embodiment
Details are not described herein.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or
The various media that can store program code such as CD.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product
When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention
Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme
The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one
Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention
State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side
Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one
Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (15)
1. a kind of rendering method of map characterized by comprising
Obtain render instruction, wherein the render instruction is at least indicating in map between the first section and the second section
Inflection point rendered;
In response to the render instruction, the first coordinate points and the second coordinate points are searched in the map, wherein on first area
Where first vertex first while with where the second vertex on second area second while intersect at first coordinate points, it is described
On the extended line and the second area on the third side on first area where first vertex where second vertex
The extended line on the 4th side intersects at second coordinate points, and the first area is for indicating first section, and described second
Region is for indicating second section;
According to first coordinate points, second coordinate points, first vertex and second vertex, render for connecting
Connect the camber line on first vertex and second vertex.
2. the method according to claim 1, wherein according to first coordinate points, second coordinate points, institute
The first vertex and second vertex are stated, rendering the camber line for connecting first vertex and second vertex includes:
It determines in third region for connecting the camber line on first vertex and second vertex, wherein the third
Region includes first vertex being sequentially connected, first coordinate points, second vertex and second coordinate points;
When rendering the third region, the region other than camber line described in the third region is carried out by the way of transparent
Rendering, wherein using it is described it is transparent by the way of rendered for forming the camber line in the third region.
3. according to the method described in claim 2, it is characterized in that, determine third region in for connect first vertex and
The camber line on second vertex includes:
Searched in the map described first while the first perpendicular bisector and it is described second while the second perpendicular bisector between intersection point
The third coordinate points at place;
4-coordinate point is searched in target segment, wherein include the third coordinate points and described the in the target segment
Two coordinate points, the distance between the 4-coordinate point and first vertex and the 4-coordinate point and second vertex
The distance between it is equal;
The camber line is determined according to the 4-coordinate point, wherein the camber line is using the 4-coordinate point as the center of circle and with institute
Stating the distance between 4-coordinate point and first vertex is radius.
4. the method according to claim 1, which is characterized in that according to first coordinate points, described
Second coordinate points, first vertex and second vertex are rendered for connecting first vertex and second top
Point camber line include:
When being rendered to the first pixel in third region, according between first pixel and 4-coordinate point
Transparency corresponding to first spacing renders first pixel, wherein first pixel is located at described the
Region within camber line described in three regions, the 4-coordinate point are the coordinate points where the center of circle of the camber line.
5. according to the method described in claim 4, it is characterized in that, according between first pixel and 4-coordinate point
Transparency corresponding to first spacing carries out rendering to first pixel
Obtain first threshold, wherein the first threshold is less than the radius of the camber line;
In the case that the first spacing between first pixel and the 4-coordinate point is less than the first threshold, press
First pixel is rendered according to the first transparency, wherein first transparency is one;
In the case that the first spacing between first pixel and the 4-coordinate point is not less than the first threshold,
First pixel is rendered according to the second transparency, wherein the difference between first spacing and the first threshold
Value is inversely proportional to second transparency.
6. the method according to claim 1, wherein according to first coordinate points, second coordinate points, institute
The first vertex and second vertex are stated, rendering the camber line for connecting first vertex and second vertex includes:
It is the first Delta Region and the second Delta Region by third region division, wherein first Delta Region includes successively
Connected first vertex, second coordinate points and first coordinate points, second Delta Region include successively
Connected first coordinate points, second coordinate points and second vertex;
By the vertex information of first Delta Region, the vertex information and alpha channel information of second Delta Region
It is sent to graphics processor, by the graphics processor to first Delta Region and described as unit of Delta Region
Two Delta Regions are rendered, wherein the alpha channel information is used to indicate the alpha channel value of third pixel
It is set as zero, to render the camber line, the third pixel is first Delta Region and second Delta Region
Described in region other than camber line pixel.
7. the method according to claim 1, wherein according to first coordinate points, second coordinate points,
First vertex and second vertex, when rendering the camber line for connecting first vertex and second vertex,
The method also includes:
Obtain second threshold, wherein the second threshold is less than the third between the first perpendicular bisector at described first
Distance;
The second spacing between the second pixel and first perpendicular bisector in the first area is greater than second threshold
In the case where value, second pixel is rendered according to third transparency, wherein second spacing and described second
Difference between threshold value is inversely proportional to the third transparency.
8. a kind of rendering device of map characterized by comprising
Acquiring unit, for obtaining render instruction, wherein the render instruction at least indicate to map in the first section and
Inflection point between second section is rendered;
Response unit, for searching the first coordinate points and the second coordinate points in the map in response to the render instruction,
In, on first area where the first vertex first while with where the second vertex on second area second while intersect at described
One coordinate points, described the on the extended line and the second area on the third side on the first area where first vertex
The extended line on the 4th side where two vertex intersects at second coordinate points, and the first area is for indicating the first via
Section, the second area is for indicating second section;
Rendering unit, for according to first coordinate points, second coordinate points, first vertex and second top
Point renders the camber line for connecting first vertex and second vertex.
9. device according to claim 8, which is characterized in that the rendering unit includes:
Determining module, for determining for connecting the camber line on first vertex and second vertex in third region,
Wherein, the third region includes first vertex being sequentially connected, first coordinate points, second vertex and institute
State the second coordinate points;
First rendering module is used for when rendering the third region, to the region other than camber line described in the third region
Rendered by the way of transparent, wherein using it is described it is transparent by the way of rendered for the shape in the third region
At the camber line.
10. device according to claim 9, which is characterized in that the determining module is also used to:
Searched in the map described first while the first perpendicular bisector and it is described second while the second perpendicular bisector between intersection point
The third coordinate points at place;
4-coordinate point is searched in target segment, wherein include the third coordinate points and described the in the target segment
Two coordinate points, the distance between the 4-coordinate point and first vertex and the 4-coordinate point and second vertex
The distance between it is equal;
The camber line is determined according to the 4-coordinate point, wherein the camber line is using the 4-coordinate point as the center of circle and with institute
Stating the distance between 4-coordinate point and first vertex is radius.
11. the device according to any one of claim 8 to 10, which is characterized in that the rendering unit includes:
Second rendering module, for when being rendered to the first pixel in third region, according to first pixel
Transparency corresponding to the first spacing between 4-coordinate point renders first pixel, wherein described
One pixel is located at the region within camber line described in the third region, the 4-coordinate point for the camber line center of circle institute
Coordinate points.
12. device according to claim 11, which is characterized in that second rendering module is also used to:
Obtain first threshold, wherein the first threshold is less than the radius of the camber line;
In the case that the first spacing between first pixel and the 4-coordinate point is less than the first threshold, press
First pixel is rendered according to the first transparency, wherein first transparency is one;
In the case that the first spacing between first pixel and the 4-coordinate point is not less than the first threshold,
First pixel is rendered according to the second transparency, wherein the difference between first spacing and the first threshold
Value is inversely proportional to second transparency.
13. device according to claim 8, which is characterized in that the rendering unit includes:
Division module, for being the first Delta Region and the second Delta Region by third region division, wherein first triangle
Region includes first vertex being sequentially connected, second coordinate points and first coordinate points, second triangle
Region includes first coordinate points, second coordinate points and second vertex being sequentially connected;
Sending module, for by the vertex information of the vertex information of first Delta Region, second Delta Region and
Alpha channel information is sent to graphics processor, by the graphics processor to the described 1st as unit of Delta Region
Angular zone and second Delta Region are rendered, wherein the alpha channel information is used to indicate third pixel
Alpha channel value be set as zero, to render the camber line, the third pixel is first Delta Region and institute
State the pixel in the region other than camber line described in the second Delta Region.
14. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein when described program is run
Execute method described in 1 to 7 any one of the claims.
15. a kind of electronic device, including memory, processor and it is stored on the memory and can transports on the processor
Capable computer program, which is characterized in that the processor executes the claims 1 to 7 by the computer program
Method described in one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710860484.0A CN109544658B (en) | 2017-09-21 | 2017-09-21 | Map rendering method and device, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710860484.0A CN109544658B (en) | 2017-09-21 | 2017-09-21 | Map rendering method and device, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109544658A true CN109544658A (en) | 2019-03-29 |
CN109544658B CN109544658B (en) | 2022-03-25 |
Family
ID=65827998
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710860484.0A Active CN109544658B (en) | 2017-09-21 | 2017-09-21 | Map rendering method and device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109544658B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111121794A (en) * | 2019-12-31 | 2020-05-08 | 广州文远知行科技有限公司 | Map rendering method and device, terminal equipment and storage medium |
CN111197993A (en) * | 2019-12-26 | 2020-05-26 | 广州文远知行科技有限公司 | Map rendering method and device, computer equipment and storage medium |
CN111797192A (en) * | 2020-07-27 | 2020-10-20 | 平安科技(深圳)有限公司 | GIS point data rendering method and device, computer equipment and storage medium |
CN112597258A (en) * | 2020-11-20 | 2021-04-02 | 上海莉莉丝网络科技有限公司 | Splitting method and splitting system for dynamic area boundary in game map and computer readable storage medium |
CN113532450A (en) * | 2021-06-29 | 2021-10-22 | 广州小鹏汽车科技有限公司 | Virtual parking map data processing method and system |
CN113568992A (en) * | 2020-04-28 | 2021-10-29 | 阿里巴巴集团控股有限公司 | Rendering method and device for intersection area and electronic equipment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5777618A (en) * | 1993-07-29 | 1998-07-07 | Digital Equipment Corporation | Method and apparatus for graphical panning |
DE19750171B4 (en) * | 1996-11-12 | 2006-12-14 | Honda Giken Kogyo K.K. | Vehicle control system |
CN101415079A (en) * | 2008-11-04 | 2009-04-22 | 新奥特(北京)视频技术有限公司 | Method for transforming subtitling object into Bessel curve |
CN102157001A (en) * | 2011-04-14 | 2011-08-17 | 中国测绘科学研究院 | Method and system for drawing electronic map |
CN102436678A (en) * | 2010-09-29 | 2012-05-02 | 比亚迪股份有限公司 | Method and system for generating three-dimensional road model |
CN104536743A (en) * | 2014-12-19 | 2015-04-22 | 中国电子科技集团公司第十五研究所 | Map plotting method and system based on Android operating system |
CN104599346A (en) * | 2013-12-11 | 2015-05-06 | 腾讯科技(深圳)有限公司 | Driving behavior evaluation method and driving behavior evaluation apparatus |
CN106687891A (en) * | 2014-09-15 | 2017-05-17 | 微软技术许可有限责任公司 | Smooothing and GPU-enabled rendering of digital ink |
CN106843239A (en) * | 2017-04-11 | 2017-06-13 | 珠海市微半导体有限公司 | Motion planning and robot control method based on map prediction |
-
2017
- 2017-09-21 CN CN201710860484.0A patent/CN109544658B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5777618A (en) * | 1993-07-29 | 1998-07-07 | Digital Equipment Corporation | Method and apparatus for graphical panning |
DE19750171B4 (en) * | 1996-11-12 | 2006-12-14 | Honda Giken Kogyo K.K. | Vehicle control system |
CN101415079A (en) * | 2008-11-04 | 2009-04-22 | 新奥特(北京)视频技术有限公司 | Method for transforming subtitling object into Bessel curve |
CN102436678A (en) * | 2010-09-29 | 2012-05-02 | 比亚迪股份有限公司 | Method and system for generating three-dimensional road model |
CN102157001A (en) * | 2011-04-14 | 2011-08-17 | 中国测绘科学研究院 | Method and system for drawing electronic map |
CN104599346A (en) * | 2013-12-11 | 2015-05-06 | 腾讯科技(深圳)有限公司 | Driving behavior evaluation method and driving behavior evaluation apparatus |
CN106687891A (en) * | 2014-09-15 | 2017-05-17 | 微软技术许可有限责任公司 | Smooothing and GPU-enabled rendering of digital ink |
CN104536743A (en) * | 2014-12-19 | 2015-04-22 | 中国电子科技集团公司第十五研究所 | Map plotting method and system based on Android operating system |
CN106843239A (en) * | 2017-04-11 | 2017-06-13 | 珠海市微半导体有限公司 | Motion planning and robot control method based on map prediction |
Non-Patent Citations (2)
Title |
---|
MANKYU SUNG等: "Selective Anti-Aliasing for Virtual Reality Based on Saliency Map", 《 2017 INTERNATIONAL SYMPOSIUM ON UBIQUITOUS VIRTUAL REALITY (ISUVR)》 * |
孙杨: "基于先验知识的GIS矢量边界更新方法研究", 《中国优秀博硕士学位论文全文数据库(硕士)-基础科学辑》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111197993A (en) * | 2019-12-26 | 2020-05-26 | 广州文远知行科技有限公司 | Map rendering method and device, computer equipment and storage medium |
CN111121794A (en) * | 2019-12-31 | 2020-05-08 | 广州文远知行科技有限公司 | Map rendering method and device, terminal equipment and storage medium |
CN113568992A (en) * | 2020-04-28 | 2021-10-29 | 阿里巴巴集团控股有限公司 | Rendering method and device for intersection area and electronic equipment |
CN111797192A (en) * | 2020-07-27 | 2020-10-20 | 平安科技(深圳)有限公司 | GIS point data rendering method and device, computer equipment and storage medium |
CN111797192B (en) * | 2020-07-27 | 2023-09-01 | 平安科技(深圳)有限公司 | GIS point data rendering method and device, computer equipment and storage medium |
CN112597258A (en) * | 2020-11-20 | 2021-04-02 | 上海莉莉丝网络科技有限公司 | Splitting method and splitting system for dynamic area boundary in game map and computer readable storage medium |
CN112597258B (en) * | 2020-11-20 | 2022-03-04 | 上海莉莉丝网络科技有限公司 | Splitting method and splitting system for dynamic area boundary in game map and computer readable storage medium |
CN113532450A (en) * | 2021-06-29 | 2021-10-22 | 广州小鹏汽车科技有限公司 | Virtual parking map data processing method and system |
CN113532450B (en) * | 2021-06-29 | 2024-04-30 | 广州小鹏汽车科技有限公司 | Virtual parking map data processing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN109544658B (en) | 2022-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109544658A (en) | The rendering method and device of map, storage medium, electronic device | |
CN111145326B (en) | Processing method of three-dimensional virtual cloud model, storage medium, processor and electronic device | |
CN110211218B (en) | Picture rendering method and device, storage medium and electronic device | |
CN103164839B (en) | A kind of drawing practice, device and terminal | |
CN109903385A (en) | Rendering method, device, processor and the terminal of threedimensional model | |
CN112288665B (en) | Image fusion method and device, storage medium and electronic equipment | |
US9495767B2 (en) | Indexed uniform styles for stroke rendering | |
CN108765520B (en) | Text information rendering method and device, storage medium and electronic device | |
US20110090228A1 (en) | Method of and Arrangement for Rendering a Path | |
CN107657648B (en) | Real-time efficient dyeing method and system in mobile game | |
CN107481200B (en) | Image processing method and device | |
CN108399646B (en) | Image rendering method and device | |
CN112102437A (en) | Canvas-based radar map generation method and device, storage medium and terminal | |
CN102122502A (en) | Method and related device for displaying three-dimensional (3D) font | |
CN113256782B (en) | Three-dimensional model generation method and device, storage medium and electronic equipment | |
US20150325022A1 (en) | Technique for processing a character string for graphical representation on a man/machine interface | |
CN114742931A (en) | Method and device for rendering image, electronic equipment and storage medium | |
CN108230434B (en) | Image texture processing method and device, storage medium and electronic device | |
US20160307294A1 (en) | Systems and Methods for Displaying Patterns of Recurring Graphics on Digital Maps | |
WO2019088865A1 (en) | Method and system for removing hidden surfaces from a three-dimensional scene | |
CN109724617A (en) | A kind of method for drafting and relevant device of navigation routine | |
CN109598672B (en) | Map road rendering method and device | |
JP4664169B2 (en) | Graphic drawing apparatus and graphic drawing program | |
US11989807B2 (en) | Rendering scalable raster content | |
CN115471592A (en) | Dynamic image processing method and system |
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 |