CN106599217B - Road conditions display methods and device - Google Patents
Road conditions display methods and device Download PDFInfo
- Publication number
- CN106599217B CN106599217B CN201611169717.4A CN201611169717A CN106599217B CN 106599217 B CN106599217 B CN 106599217B CN 201611169717 A CN201611169717 A CN 201611169717A CN 106599217 B CN106599217 B CN 106599217B
- Authority
- CN
- China
- Prior art keywords
- road
- map
- layer
- color
- traffic information
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000009877 rendering Methods 0.000 claims abstract description 88
- 241000209094 Oryza Species 0.000 claims description 34
- 235000007164 Oryza sativa Nutrition 0.000 claims description 34
- 235000009566 rice Nutrition 0.000 claims description 34
- 238000005070 sampling Methods 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 claims description 4
- 230000000694 effects Effects 0.000 description 8
- 238000004040 coloring Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000007796 conventional method Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 241001269238 Data Species 0.000 description 2
- 235000013399 edible fruits Nutrition 0.000 description 2
- 238000002360 preparation method Methods 0.000 description 2
- 239000003086 colorant Substances 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/56—Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/54—Browsing; Visualisation therefor
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/01—Detecting movement of traffic to be counted or controlled
- G08G1/0104—Measuring and analyzing of parameters relative to traffic conditions
- G08G1/0125—Traffic data processing
- G08G1/0129—Traffic data processing for creating historical data or processing based on historical data
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Remote Sensing (AREA)
- Chemical & Material Sciences (AREA)
- Analytical Chemistry (AREA)
- Instructional Devices (AREA)
- Navigation (AREA)
Abstract
The present invention relates to a kind of road conditions display methods and devices.The method includes the steps: load the map of target area and display;The traffic information of whole roads in the target area is obtained from server end;The configuration information for obtaining whole roads in the target area obtains the corresponding state rendering parameter of each road according to the configuration information and traffic information of each road;According to color value corresponding to the state rendering parameter and preset each road condition, the corresponding color rendering parameter of each road is obtained;The map is sampled, each road in the target area is identified according to the color value and road default color values that sample, each road in the target area is rendered by corresponding target color values according to the color rendering parameter respectively.The present invention effectively saves network flow when road conditions display.
Description
Technical field
The present invention relates to image display technology fields, more particularly to a kind of road conditions display methods, a kind of road conditions display dress
It sets, another road conditions display methods and another highway condition displaying device.
Background technique
At present on many of internet map application, such as the map application of manufacturer of Baidu and Gao De etc., these ground
Figure application generally has road conditions display function, convenient for users to understanding the road conditions of certain roads in current city, such as which road
Congestion is compared on road, which road ratio smoothly, to select suitable route according to the road conditions of the road of display, is saved when driving
Between.
The method that map application in traditional technology shows road conditions are as follows: the base map for first showing some region, then in base map
One road figure layer of upper superposition, which be spliced by several pictures with transparency, includes in every picture
The image of road condition in one corresponding geographical section.With the PC (personal in certain resolution ratio for 1920*1080
Computer, computer) in check for the road conditions of Baidu map, include at least several processes: the display of base map, PC is in this equipment
Middle display base map;The generation and display of road figure layer, the road conditions request that server end is sent according to PC generate road figure layer, concurrently
PC is given to be shown.
But above-mentioned road conditions display methods, even if basemap data are used as off-line data to be buffered in PC in advance, but road
Figure layer needs server end to be generated according to the road condition that real-time collecting arrives, and server end also needs the road figure layer that will be generated to send out
PC is given, and the transmission of the road figure layer then needs to expend more network flow, for example, carrying out primary full screen display road conditions consumption
The flow of expense is 1920*1080*4/1024=8100Kb (kilobytes), if with carrying out multiple Pan and Zoom on PC
Figure, then the flow is by growth at double.Therefore, the road conditions display mode in traditional technology expends big wait there are network flow and lacks
It falls into.
Summary of the invention
Based on this, it is necessary in view of the above-mentioned problems, providing a kind of road conditions display methods and device, can effectively save road
Network flow when condition is shown.
A kind of road conditions display methods, comprising steps of
Load the map of target area and display;
The traffic information of whole roads in the target area is obtained from server end, is wrapped in the traffic information of every road
Id containing road and road condition;
The configuration information for obtaining whole roads in the target area, according to the configuration information and road conditions letter of each road
Breath obtains the corresponding state rendering parameter of each road, wherein silent comprising road id and road in the configuration information of every road
Recognize color value, each road default color values are different, include road default color values and road in the state rendering parameter
Status information;
According to color value corresponding to the state rendering parameter and preset each road condition, each road is obtained
Corresponding color rendering parameter includes road default color values and target color values in the color rendering parameter;
The map is sampled, the target area is identified according to the color value and road default color values sampled
Each road in the target area is rendered into corresponding mesh according to the color rendering parameter by each interior road respectively
Mark color value.
A kind of highway condition displaying device, comprising:
Map display module, for loading map and the display of target area;
Traffic information obtains module, for obtaining the traffic information of whole roads in the target area from server end,
It include road id and road condition in the traffic information of every road;
State rendering parameter obtains module, for obtaining the configuration information of whole roads in the target area, according to each
The configuration information and traffic information of road obtain the corresponding state rendering parameter of each road, wherein the configuration of every road
It include road id and road default color values in information, each road default color values are different, in the state rendering parameter
Include road default color values and road status information;
Color rendering gain of parameter module, for according to the state rendering parameter and preset each road condition institute
Corresponding color value obtains the corresponding color rendering parameter of each road, includes road default face in the color rendering parameter
Color value and target color values;
Road rendering module, for being sampled to the map, according to the color value and road default color sampled
Value identifies each road in the target area, according to the color rendering parameter by each road in the target area
It is rendered into corresponding target color values respectively.
Above-mentioned road conditions display methods and device preset in the map and the region in certain region matching for whole roads
Confidence breath, the configuration information include each road id and the different default color values of each road.When needing to show certain region
When road conditions, the geographical range information in the region is sent to server end, asked by the map in the pre-set region of loaded and displayed
The traffic information in the region is sought, the traffic information in the region is obtained after received server-side to the request, then by the region
Traffic information is transmitted directly to client, and client is according to the traffic information in the region received, the default face of each road
The display mode of color value and pre-set road condition obtains rendering parameter, i.e., face corresponding to each default color values
Then color value is rendered, it can show the traffic information in the region according to the rendering parameter to map corresponding data.Phase
Road figure layer is generated according to the state of each road and each road compared with server end in traditional technology, then by mileage chart
Layer is transferred to the mode of client, and server end of the present invention is not necessarily to carry out the generation of picture, it is only necessary to be sent to traffic information
Client, and the data volume of traffic information is much smaller than the data volume of road figure layer, therefore the present invention effectively saves road conditions and shows
When network flow.It does not need to generate road figure layer additionally, due to server end, directly return traffic information, saves server
The processing time at end.
Another road conditions display methods, comprising steps of
Receive the request for obtaining the traffic information of whole roads in target area that client is sent;
According to the traffic information of roads whole in target area described in the request, in the traffic information of every road
Include road id and road condition;
The traffic information of each road is sent to the client, so that the client receives the road conditions of each road
The corresponding color rendering parameter of each road is obtained after information, includes road default color values and mesh in the color rendering parameter
Color value is marked, and is rendered into each road in the map of the target area of display pair respectively according to the color rendering parameter
The default color values of the target color values answered, each road are not identical.
Another highway condition displaying device, comprising:
Request receiving module, the traffic information of whole roads is asked in the acquisitions target area for receiving client transmission
It asks;
Traffic information obtains module, the road conditions letter for roads whole in the target area according to the request
It ceases, includes road id and road condition in the traffic information of every road;
Traffic information sending module, for sending the traffic information of each road to the client, so that the client
Termination, which receives, obtains the corresponding color rendering parameter of each road after the traffic information of each road, in the color rendering parameter
Comprising road default color values and target color values, and according to the color rendering parameter by the map of the target area of display
In each road be rendered into corresponding target color values respectively, the default color values of each road are not identical.
Above-mentioned road conditions display methods and device preset in the map and the region in certain region matching for whole roads
Confidence breath, the configuration information include each road id and the different default color values of each road.When needing to show certain region
When road conditions, the geographical range information in the region is sent to server end, asked by the map in the pre-set region of loaded and displayed
The traffic information in the region is sought, the traffic information in the region is obtained after received server-side to the request, then by the region
Traffic information is transmitted directly to client, and client is according to the traffic information in the region received, the default face of each road
The display mode of color value and pre-set road condition obtains rendering parameter, i.e., face corresponding to each default color values
Then color value is rendered, it can show the traffic information in the region according to the rendering parameter to map corresponding data.Phase
Road figure layer is generated according to the state of each road and each road compared with server end in traditional technology, then by mileage chart
Layer is transferred to the mode of client, and server end of the present invention is not necessarily to carry out the generation of picture, it is only necessary to be sent to traffic information
Client, and the data volume of traffic information is much smaller than the data volume of road figure layer, therefore the present invention effectively saves road conditions and shows
When network flow.It does not need to generate road figure layer additionally, due to server end, directly return traffic information, saves server
The processing time at end.
Detailed description of the invention
Fig. 1 is the flow diagram of the road conditions display methods of an embodiment;
Fig. 2 is the structural schematic diagram of the highway condition displaying device of an embodiment;
Fig. 3 is the flow diagram of the road conditions display methods of another embodiment;
Fig. 4 is the structural schematic diagram of the highway condition displaying device of another embodiment.
Specific embodiment
It is with reference to the accompanying drawing and preferably real for the effect for further illustrating technological means adopted by the present invention and acquirement
Example is applied, clear and complete description is carried out to technical solution of the present invention from client, the angle of server end.
First from the angle of client, the specific embodiment of road conditions display methods and device of the invention is done
Detailed description.
As shown in Figure 1, a kind of road conditions display methods, comprising steps of
S110, the map for loading target area and display;
S120, the traffic information that whole roads in the target area are obtained from server end, the road conditions letter of every road
It include road id and road condition in breath;
S130, the configuration information for obtaining whole roads in the target area, according to the configuration information of each road and road
Condition information obtains the corresponding state rendering parameter of each road, wherein includes road id and road in the configuration information of every road
Road default color values, each road default color values are different, in the state rendering parameter comprising road default color values and
Road status information;
S140, the color value according to corresponding to the state rendering parameter and preset each road condition are obtained each
Road corresponding color rendering parameter includes road default color values and target color values in the color rendering parameter;
S150, the map is sampled, the mesh is identified according to the color value and road default color values sampled
Each road in region is marked, is rendered into each road in the target area pair respectively according to the color rendering parameter
The target color values answered.
Above-mentioned road conditions display methods, server end are not necessarily to carry out the generation of picture, it is only necessary to which traffic information is sent to visitor
Family end, and the data volume of traffic information be much smaller than road figure layer data volume, therefore the present invention effectively save road conditions display when
Network flow and save the time.Each step in order to better understand, the first generating mode of to map carry out simple
It introduces.
The various vector datas of composition of preparation map first, such as non-rice habitats figure layer and road figure layer, non-rice habitats figure layer
For the figure layer in addition to road figure layer, i.e. basemap data in traditional technology, such as administrative region figure layer etc., mileage chart layer data
One element or a record are a road.
By various non-rice habitats map overlays, and their pattern is set, such as the color and width of each figure layer is arranged
Deng.The sequence of each non-rice habitats map overlay can be configured according to actual needs.
In order to guarantee effect that road conditions are shown, when mileage chart stacking being avoided to be added in centre or the bottom of other figure layers,
His figure layer causes road conditions that can not show the covering of road figure layer, and in one embodiment, the mileage chart stacking is added in institute
State the top layer of non-rice habitats figure layer.After being superimposed good various non-rice habitats figure layers, mileage chart stacking is added to top layer.
In order to realize the display of road conditions, a kind of unique color is set to each road in road figure layer.It is uniquely
Refer in all data of map, is used without other data and the duplicate color of the road, i.e., the default color of each road
Value is not identical, and the default color values of each road are not also identical as the color value in the non-rice habitats figure layer.Therefore each road
Lu Youyi unique road configuration informations, structure<road id of the configuration information, road native color value>.Color value can be
RGB (red, green, blue) color value, can also be the color value of other color modes, and the present invention makes restriction not to this.
Above-mentioned configured each figure layer is handled, one layer of figure layer is generated.So in one embodiment, it is described
Map is the figure layer generated according to road figure layer and non-rice habitats map overlay.The base map that the map contains each rank is cut
Piece.One figure layer of each figure layer generation can be realized according to existing mode in the prior art, for example, using ArcGIS tool
Configured each figure layer is converted into one layer of figure layer.
The map including road data can be generated through the above way, and subsequent road is then carried out based on the map
The display of condition.It describes in detail below to each step.
In step s 110, road conditions display methods is in client executing.As long as to service data, trade road of going forward side by side
Figure layer is shown, is client, and client includes PC, mobile phone and Intelligent flat etc..In order not to expend real-time network flow,
The map of above-mentioned generation is generally copied or be cached to client, is similar in traditional technology using basemap data as offline number
In a device according to caching.
When the road conditions for needing to carry out some region are shown, the map in the region and display are loaded.Compared to traditional technology
The base map of middle loaded and displayed, the map that the present invention loads further include the colouring information of road figure layer.
In the step s 120, the geographical range information of target area is sent to server end by client, requests the target
Traffic information in region.After received server-side to the request of client, geographic range is got, and according to the geography model
It encloses, finds each road id in the geographic range, and the state of each road id and each road are returned to client, number
According to structure be<road id, road status>.
In traditional technology, server end obtains the shape of each vector road id and each vector road according to client request
After state, needs the state of vector road and the vector road generating corresponding road conditions picture, then road conditions picture is sent to
Client.And the present invention is not necessarily to carry out the generation of road conditions picture in server end, it only need to be by the state of road id and road
(status) it sends, saves the processing time of server end, save the stream that server end sends road conditions picture to client
Amount.
In step S130 and step S140, in order to show that road conditions, client need to be arranged the face of each state of road
Color display mode.For example,<heavy congestion, brown shows>,<crowded, red display>,<smooth, green display>}, seriously gather around
Stifled, crowded and smooth each state for road, brown is shown, red display and the green color for being shown as each state are shown
Mode.
It is previously stored in the target area configuration information of whole roads in client, that is to say previously positioned every
Configuration information<road id of road, road native color value>.Client receives the traffic information data of server end return:
<road id, road status>, according to traffic information data<road id, road status>and the configuration of pre-set road
Information<road id, road native color value>, state rendering parameter is obtained, i.e. the corresponding of road native color value and road status is closed
System:<road native color value, road status>.According to<road native color value, road status>corresponding relationship and each
The color display mode of state, obtains the rendering parameter of road conditions: < road native color value, and brown shows/red display/green
Color shows >.
In step S150, the coloring process of road conditions rendering can establish, the unit of coloring process processing is one
The map opened, default is the primary colors for showing map.When there is road conditions to need to update, which receives rendering parameter, first
The sampling for carrying out map, gets the default color values of any pixel in current map, it is possible thereby to determine the sampled data
It is the road of which kind, and modifying sampled data is the data for finally needing to render, i.e., corresponding color is shown, to realize
The displays of road conditions.For example, the rendering parameter of road A is the<color value of pink colour, brown shows>, sample pink colour in the map
Color value when, it can the color value for determining the pink colour is the native color value of road A, then according to the rendering parameter by the road
Road A is rendered into brown, and user can determine that road A is heavy congestion according to the brown that road A is shown.It can use
GLSL (OpenGL Shading Language, shading language) method carries out the sampling of map, sweeps without carrying out individual element
It retouches, pixel acquisition speed is faster.
Client needs to show two figure layers of base map and road in traditional technology, needs to consume more resources.And this hair
Bright need to render a figure layer, it can complete the road conditions as being superimposed road figure layer on the base map in conventional method and show effect
Fruit.Due to render figure layer is few, reduce CPU (Central Processing Unit, central processing unit) and video memory etc.
The consumption of hardware resource.
Based on the same inventive concept, the present invention also provides a kind of highway condition displaying devices, below to the specific implementation of the device
Mode is described in detail.
As shown in Fig. 2, a kind of highway condition displaying device, comprising:
Map display module 110, for loading map and the display of target area;
Traffic information obtains module 120, for obtaining the road conditions letter of whole roads in the target area from server end
It ceases, includes road id and road condition in the traffic information of every road;
State rendering parameter obtains module 130, for obtaining the configuration information of whole roads in the target area, according to
The configuration information and traffic information of each road obtain the corresponding state rendering parameter of each road, wherein every road is matched
It include road id and road default color values in confidence breath, each road default color values are different, the state rendering parameter
In include road default color values and road status information;
Color rendering gain of parameter module 140, for according to the state rendering parameter and preset each road like
Color value corresponding to state obtains the corresponding color rendering parameter of each road, writes from memory in the color rendering parameter comprising road
Recognize color value and target color values;
Road rendering module 150 defaults face according to the color value and road sampled for sampling to the map
Color value identifies each road in the target area, according to the color rendering parameter by the road the target area Nei Getiao
Road is rendered into corresponding target color values respectively.
Above-mentioned highway condition displaying device, server end are not necessarily to carry out the generation of picture, it is only necessary to which traffic information is sent to visitor
Family end, and the data volume of traffic information be much smaller than road figure layer data volume, therefore the present invention effectively save road conditions display when
Network flow and save the time.It describes in detail below to the function of modules.
In one embodiment, the map is the figure layer generated according to road figure layer and non-rice habitats map overlay.
Non-rice habitats figure layer is the basemap data, such as administrative region figure layer etc. in traditional technology, an element of mileage chart layer data or
Person one record is a road.Each figure layer of superposition is generated a figure layer can be according to existing side in the prior art
Formula is realized.
In one embodiment, the default color values of each road also with the not phase of the color value in the non-rice habitats figure layer
Together.In order to which the road conditions of realization are shown, a kind of unique color is set to each road in road figure layer.Uniquely refer to
It in all data of map, is used without other data and the duplicate color of the road, i.e., the default color values of each road are not
Identical, the default color values of each road are not also identical as the color value of the non-rice habitats figure layer.
In order to guarantee effect that road conditions are shown, when mileage chart stacking being avoided to be added in centre or the bottom of other figure layers,
His figure layer causes road conditions that can not show the covering of road figure layer, and in one embodiment, the mileage chart stacking is added in institute
State the top layer of non-rice habitats figure layer.After being superimposed good various non-rice habitats figure layers, mileage chart stacking is added to top layer.
When the road conditions for needing to carry out some region are shown, map display module 110 loads the map in the region and display.
Compared to the base map of loaded and displayed in traditional technology, the map that map display module 110 loads further includes the color of road figure layer
Information.
Traffic information obtains module 120 and the geographical range information of target area is sent to server end, requests the target
Traffic information in region.After received server-side to the request of client, geographic range is got, and according to the geography model
It encloses, finds each road in the geographic range, and the state of each road id and each road are returned to traffic information and obtained
Modulus block 120, data structure be<road id, road status>.Due to being not necessarily to carry out the generation of road conditions picture in server end,
And the state of road id and road need to only be sent, the processing time for saving server end and server end are to client
End sends the flow of road conditions picture.
In order to show that road conditions, client need to be arranged the color display mode of each state of road.For example, < seriously gather around
It is stifled, brown show>,<it is crowded, red display>,<smooth, green display>}, heavy congestion, it is crowded and it is smooth be each of road
State, brown shows, red display and green are shown as the color display mode of each state.
State rendering parameter obtains the traffic information data that module 130 receives server end return: < road id, road
Status>, according to traffic information data<road id, road status>and pre-set road configuration information<road id,
Road native color value>, obtain the corresponding relationship of road native color value and road status:<road native color value, road status
>.Color rendering gain of parameter module 140 according to<road native color value, road status>corresponding relationship and each state
Color display mode, obtain the rendering parameter of road conditions: < road native color value, brown shows/red display/green is aobvious
Show >.
When there is road conditions to need to update, road rendering module 150 receives rendering parameter, first carries out the sampling of map, obtains
The default color values of any pixel in current map are got, it is possible thereby to determine that the point is the road of which kind, and are modified
Sampled data is the data for finally needing to render, i.e., corresponding color is shown, to realize the display of road conditions.
Below from the angle of server end, the specific embodiment of road conditions display methods of the present invention and device is done
Detailed description.
As shown in figure 3, a kind of road conditions display methods, comprising steps of
S210, the request for obtaining the traffic information of whole roads in target area that client is sent is received;
The traffic information of whole roads, the road conditions of every road in S220, the target area according to the request
It include road id and road condition in information;
S230, Xiang Suoshu client send the traffic information of each road, so that the client receives each road
Traffic information after obtain the corresponding color rendering parameter of each road, include road default color in the color rendering parameter
Value and target color values, and each road in the map of the target area of display is distinguished by wash with watercolours according to the color rendering parameter
Dye is corresponding target color values, and the default color values of each road are not identical.
Above-mentioned road conditions display methods, server end are not necessarily to carry out the generation of picture, it is only necessary to which traffic information is sent to visitor
Family end, and the data volume of traffic information be much smaller than road figure layer data volume, therefore the present invention effectively save road conditions display when
Network flow and save the time.Each step in order to better understand, the first generating mode of to map carry out simple
It introduces.
The various vector datas of composition of preparation map first, such as non-rice habitats figure layer and road figure layer, non-rice habitats figure layer
For basemap data in traditional technology, such as administrative region figure layer etc., an element of mileage chart layer data or a record
It is a road.
By various non-rice habitats map overlays, and their pattern is set, such as the color and width of each figure layer is arranged
Deng.The sequence of each non-rice habitats map overlay can be configured according to actual needs.
In order to guarantee effect that road conditions are shown, when mileage chart stacking being avoided to be added in centre or the bottom of other figure layers,
His figure layer causes road conditions that can not show the covering of road figure layer, and in one embodiment, the mileage chart stacking is added in institute
State the top layer of non-rice habitats figure layer.After being superimposed good various non-rice habitats figure layers, mileage chart stacking is added to top layer.
In order to realize the display of road conditions, a kind of unique color is set to each road in road figure layer.It is uniquely
Refer in all data of map, is used without other data and the duplicate color of the road, i.e., the default color of each road
Value is not identical, and the default color values of each road are not also identical as the color value in the non-rice habitats figure layer.Therefore each road
Lu Youyi unique road configuration informations, structure<road id of the configuration information, road native color value>.Color value can be
RGB (red, green, blue) color value, can also be the color value of other color modes, and the present invention makes restriction not to this.
Above-mentioned configured each figure layer is handled, one layer of figure layer is generated.So in one embodiment, it is described
Map is the figure layer generated according to road figure layer and non-rice habitats map overlay.The base map that the map contains each rank is cut
Piece.One figure layer of each figure layer generation can be realized according to existing mode in the prior art, for example, using ArcGIS tool
Configured each figure layer is converted into one layer of figure layer.
The map including road data can be generated through the above way, and subsequent road is then carried out based on the map
The display of condition.It describes in detail below to each step.
In step S210, road conditions display methods is in client executing.As long as to service data, trade road of going forward side by side
Figure layer is shown, is client, and client includes PC, mobile phone and Intelligent flat etc..In order not to expend real-time network flow,
The map of above-mentioned generation is generally copied or is cached to client.
When the road conditions for needing to carry out some region are shown, client loads the map in the region and display.Compared to biography
The base map of loaded and displayed in system technology, the map that the present invention loads further include the colouring information of road figure layer.Client is by target
The geographical range information in region is sent to server end, requests the traffic information in the target area, received server-side client
The request at end.
In step S220 and step S230, after the request of received server-side to client, geographic range is got,
And according to the geographic range, each road in the geographic range is found, the state of each road is then obtained.By traffic information
Returning to client, data structure is<road id, road status>.
In traditional technology, server end obtains the shape of each vector road id and each vector road according to client request
After state, needs the state of vector road id and the vector road generating corresponding road conditions picture, then road conditions picture is sent
To client.And the present invention is not necessarily to carry out the generation of road conditions picture in server end, it only need to be by the state of road id and road
(status) it sends, saves the processing time of server end, save the stream that server end sends road conditions picture to client
Amount.
It is previously stored in the target area configuration information of whole roads in client, that is to say previously positioned every
Configuration information<road id of road, road native color value>.Client receives the traffic information data of server end return:
<road id, road status>, according to traffic information data<road id, road status>and the configuration of pre-set road
Information<road id, road native color value>, state rendering parameter is obtained, i.e. the corresponding of road native color value and road status is closed
System:<road native color value, road status>.According to<road native color value, road status>corresponding relationship and each
The color display mode of state, obtains the color rendering parameter of road conditions:<road native color value, and color display mode>.Root
According to the rendering parameter, client first carries out the sampling of map, gets the default color values of any pixel in current map, by
Pair this can determine that the sampled data is the road of which kind, and modifying sampled data is the data for finally needing to render, i.e.,
The color answered is shown, to realize the display of road conditions.Client can using GLSL method carry out map sampling, do not have into
The scanning of row individual element, pixel acquisition speed is faster.
Client needs to show two figure layers of base map and road in traditional technology, needs to consume more resources.And this hair
Bright need to render a figure layer, it can complete the road conditions as being superimposed road figure layer on the base map in conventional method and show effect
Fruit.Due to render figure layer is few, reduce the consumption of the hardware resources such as CPU and video memory.
Based on the same inventive concept, the present invention also provides a kind of highway condition displaying devices, fill with reference to the accompanying drawing to the present invention
The specific embodiment set is described in detail.
As shown in figure 4, a kind of highway condition displaying device, comprising:
Request receiving module 210, for receiving the traffic information for obtaining whole roads in target area of client transmission
Request;
Traffic information obtains module 220, the road conditions for roads whole in the target area according to the request
Information includes road id and road condition in the traffic information of every road;
Traffic information sending module 230, for sending the traffic information of each road to the client, so that the visitor
Family obtains the corresponding color rendering parameter of each road, the color rendering parameter after terminating the traffic information for receiving each road
In include road default color values and target color values, and according to the color rendering parameter by the ground of the target area of display
Each road is rendered into corresponding target color values respectively in figure, and the default color values of each road are not identical.
Above-mentioned highway condition displaying device, server end are not necessarily to carry out the generation of picture, it is only necessary to which traffic information is sent to visitor
Family end, and the data volume of traffic information be much smaller than road figure layer data volume, therefore the present invention effectively save road conditions display when
Network flow and save the time.It describes in detail below to the function of modules.
In one embodiment, the map is the figure layer generated according to road figure layer and non-rice habitats map overlay.
Non-rice habitats figure layer is the basemap data, such as administrative region figure layer etc. in traditional technology, an element of mileage chart layer data or
Person one record is a road.Each figure layer of superposition is generated a figure layer can be according to existing side in the prior art
Formula is realized.
In one embodiment, the default color values of each road also with the not phase of the color value in the non-rice habitats figure layer
Together.In order to which the road conditions of realization are shown, a kind of unique color is set to each road in road figure layer.Uniquely refer to
It in all data of map, is used without other data and the duplicate color of the road, i.e., the default color values of each road are not
Identical, the default color values of each road are not also identical as the color value of the non-rice habitats figure layer.
In order to guarantee effect that road conditions are shown, when mileage chart stacking being avoided to be added in centre or the bottom of other figure layers,
His figure layer causes road conditions that can not show the covering of road figure layer, and in one embodiment, the mileage chart stacking is added in institute
State the top layer of non-rice habitats figure layer.After being superimposed good various non-rice habitats figure layers, mileage chart stacking is added to top layer.
The geographical range information of target area is sent to the request receiving module 210 of server end by client, and request should
Traffic information in target area.After the request receiving module 210 of server end receives the request of client, traffic information is obtained
It obtains module 220 and gets geographic range, and according to the geographic range, find each road in the geographic range, then obtain
The state of each road.Traffic information is returned to client by traffic information sending module 230, and data structure is < road id, road
Road status >.Due to being not necessarily to carry out the generation of road conditions picture in server end, and the state of road id and road need to only be sent out
It send, the processing time and server end that save server end send the flow of road conditions picture to client.
Client receive server end return traffic information data:<road id, road status>, believed according to road conditions
Cease data<road id, road status>and pre-set road configuration information<road id, road native color value>obtain
State rendering parameter, the i.e. corresponding relationship of road native color value and road status:<road native color value, road status>.
According to<road native color value, road status>corresponding relationship and each state color display mode, obtain Road
The rendering parameter of condition:<road native color value, color display mode>.According to the rendering parameter, client first carries out adopting for map
Sample gets the default color values of any pixel in current map, it is possible thereby to determine that the sampled data is which kind
Road, and modifying sampled data is the data for finally needing to render, i.e., corresponding color is shown, to realize the aobvious of road conditions
Show.
Above-mentioned road conditions display methods and device need to only render a figure layer, it can realize the base map in conventional method
It is upper superposition road figure layer as display effect, and due to render figure layer is few, reduce the hardware resources such as CPU and video memory
Consumption, while not needing to carry out the generation of road conditions picture in server end, save the server-side processes time, and service
Device end sends the flow of road conditions tile to client.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (10)
1. a kind of road conditions display methods, which is characterized in that comprising steps of
Load the map of target area and display;
The traffic information of whole roads in the target area is obtained from server end, includes road in the traffic information of every road
Road id and road condition;
The configuration information for obtaining whole roads in the target area is obtained according to the configuration information and traffic information of each road
Obtain the corresponding state rendering parameter of each road, wherein default face comprising road id and road in the configuration information of every road
Color value, also, in the map, each road default color values and each road correspond, and wrap in the state rendering parameter
Default color values containing road and road condition;
According to target color values corresponding to the state rendering parameter and preset each road condition, each road is obtained
Corresponding color rendering parameter includes road default color values and target color values in the color rendering parameter;
The map is sampled, is identified in the target area according to the color value and road default color values that sample
Each road in the target area is rendered into corresponding target face according to the color rendering parameter by each road respectively
Color value.
2. road conditions display methods according to claim 1, which is characterized in that the map is according to road figure layer and Fei Dao
The figure layer that road map overlay generates;
Each road default color values are not also identical as the color value in the non-rice habitats figure layer.
3. road conditions display methods according to claim 2, which is characterized in that the mileage chart stacking is added in the non-rice habitats
The top layer of figure layer.
4. a kind of road conditions display methods, which is characterized in that comprising steps of
Receive the request for obtaining the traffic information of whole roads in target area that client is sent;
According to the traffic information of roads whole in target area described in the request, include in the traffic information of every road
Road id and road condition;
The traffic information of each road is sent to the client, so that the client receives the traffic information of each road
After obtain the corresponding color rendering parameter of each road, include road default color values and target face in the color rendering parameter
Color value, and according to the color rendering parameter be rendered into each road in the map of the target area of display respectively corresponding
Target color values, wherein in the map, each road default color values and each road are corresponded.
5. road conditions display methods according to claim 4, which is characterized in that the map is according to road figure layer and Fei Dao
The figure layer that road map overlay generates;The default color values of each road also with the not phase of the color value in the non-rice habitats figure layer
Together;The mileage chart stacking is added in the top layer of the non-rice habitats figure layer.
6. a kind of highway condition displaying device characterized by comprising
Map display module, for loading map and the display of target area;
Traffic information obtains module, for obtaining in the target area traffic information of whole roads from server end, every
It include road id and road condition in the traffic information of road;
State rendering parameter obtains module, for obtaining the configuration information of whole roads in the target area, according to each road
The configuration information and traffic information on road obtain the corresponding state rendering parameter of each road, wherein the configuration information of every road
In include road id and road default color values, also, in the map, each road default color values and each road one are a pair of
It answers, includes road default color values and road condition in the state rendering parameter;
Color rendering gain of parameter module, for according to corresponding to the state rendering parameter and preset each road condition
Target color values, obtain the corresponding color rendering parameter of each road, default face comprising road in the color rendering parameter
Color value and target color values;
Road rendering module is known for sampling to the map according to the color value and road default color values sampled
Each road in the not described target area distinguishes each road in the target area according to the color rendering parameter
It is rendered into corresponding target color values.
7. highway condition displaying device according to claim 6, which is characterized in that the map is according to road figure layer and Fei Dao
The figure layer that road map overlay generates;
Each road default color values are not also identical as the color value in the non-rice habitats figure layer.
8. highway condition displaying device according to claim 7, which is characterized in that the mileage chart stacking is added in the non-rice habitats
The top layer of figure layer.
9. a kind of highway condition displaying device characterized by comprising
Request receiving module, for receiving the request for obtaining the traffic information of whole roads in target area of client transmission;
Traffic information obtains module, for the traffic information of roads whole in the target area according to the request, often
It include road id and road condition in the traffic information of road;
Traffic information sending module, for sending the traffic information of each road to the client, so that the client terminates
The corresponding color rendering parameter of each road is obtained after receiving the traffic information of each road, includes in the color rendering parameter
Road default color values and target color values, and will be each in the map of the target area of display according to the color rendering parameter
Road is rendered into corresponding target color values respectively, wherein in the map, each road default color values and each road one
One is corresponding.
10. highway condition displaying device according to claim 9, which is characterized in that the map is according to road figure layer and non-
The figure layer that road map overlay generates;The default color values of each road also with the color value in the non-rice habitats figure layer not
It is identical;The mileage chart stacking is added in the top layer of the non-rice habitats figure layer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611169717.4A CN106599217B (en) | 2016-12-16 | 2016-12-16 | Road conditions display methods and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611169717.4A CN106599217B (en) | 2016-12-16 | 2016-12-16 | Road conditions display methods and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106599217A CN106599217A (en) | 2017-04-26 |
CN106599217B true CN106599217B (en) | 2019-10-11 |
Family
ID=58600915
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611169717.4A Expired - Fee Related CN106599217B (en) | 2016-12-16 | 2016-12-16 | Road conditions display methods and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106599217B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109976600B (en) * | 2017-12-28 | 2022-04-15 | 上海擎感智能科技有限公司 | Map color matching method and intelligent terminal |
CN110716682A (en) * | 2018-07-13 | 2020-01-21 | 上海擎感智能科技有限公司 | Map custom color matching method and system, storage medium and terminal |
CN110874951B (en) * | 2018-08-31 | 2023-03-14 | 阿里巴巴(中国)有限公司 | Road condition rendering method, device, equipment and medium |
CN109410576A (en) * | 2018-11-08 | 2019-03-01 | 深圳北斗应用技术研究院有限公司 | Road condition analyzing method, apparatus, storage medium and the system of multisource data fusion |
CN110274611B (en) * | 2019-06-24 | 2022-09-23 | 腾讯科技(深圳)有限公司 | Information display method, device, terminal and storage medium |
CN112131326B (en) * | 2019-06-25 | 2024-04-12 | 上海擎感智能科技有限公司 | Map display method and device |
CN111586108B (en) * | 2020-04-15 | 2022-02-25 | 阿里巴巴集团控股有限公司 | Traffic map rendering method, device, terminal equipment, server and system |
CN111815954A (en) * | 2020-09-08 | 2020-10-23 | 蘑菇车联信息科技有限公司 | Real-time traffic data transmission and display method, system and electronic equipment |
CN113936476B (en) * | 2021-09-01 | 2023-03-03 | 深圳云天励飞技术股份有限公司 | Signal lamp control method and device, computer equipment and storage medium |
CN115273519A (en) * | 2022-07-28 | 2022-11-01 | 北京百度网讯科技有限公司 | Road information display method, apparatus, device and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101777265A (en) * | 2010-01-08 | 2010-07-14 | 北京世纪高通科技有限公司 | Method and system for displaying road conditions |
CN101847319A (en) * | 2010-05-11 | 2010-09-29 | 北京世纪高通科技有限公司 | Method and system for providing graphical real-time traffic information |
CN103778797A (en) * | 2012-10-25 | 2014-05-07 | 北京掌城科技有限公司 | Multimode response method of voice transportation information |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6606558B2 (en) * | 2001-03-15 | 2003-08-12 | Matsushita Electric Industrial Co., Ltd. | Rendering device and method |
-
2016
- 2016-12-16 CN CN201611169717.4A patent/CN106599217B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101777265A (en) * | 2010-01-08 | 2010-07-14 | 北京世纪高通科技有限公司 | Method and system for displaying road conditions |
CN101847319A (en) * | 2010-05-11 | 2010-09-29 | 北京世纪高通科技有限公司 | Method and system for providing graphical real-time traffic information |
CN103778797A (en) * | 2012-10-25 | 2014-05-07 | 北京掌城科技有限公司 | Multimode response method of voice transportation information |
Also Published As
Publication number | Publication date |
---|---|
CN106599217A (en) | 2017-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106599217B (en) | Road conditions display methods and device | |
RU2718167C1 (en) | Method and apparatus for rendering color images | |
CN106294474A (en) | The processing method of video data, Apparatus and system | |
CN112256897B (en) | Vector tile loading method in three-dimensional scene | |
CN104536771B (en) | According to the icon sequencing display method and system of Icon Color | |
JP2010040050A (en) | Apparatus and method for sending image data | |
CN108446310A (en) | Virtual streetscape map generation method, device and client device | |
CN108053381A (en) | Dynamic tone mapping method, mobile terminal and computer readable storage medium | |
DE202012013434U1 (en) | Prefetching map tile data along a route | |
CN110443877B (en) | Model rendering method, device, terminal equipment and storage medium | |
JP4303956B2 (en) | Image processing apparatus for faithfully transmitting color and image data providing method | |
Touya et al. | Clutter and map legibility in automated cartography: A research agenda | |
WO2022148292A1 (en) | Method and apparatus for displaying virtual picture of ground surface, storage medium, and electronic device | |
CN106713968A (en) | Live broadcast data display method and device | |
CN108615496A (en) | Image processing method and device | |
US20080267145A1 (en) | Methods and Apparatus for Managing Wireless Networks Using Geographical-Level and Site-Level Visualization | |
EP1669929A2 (en) | Systems and methods for presenting descriptions of conditions with respect to a surface | |
CN114286172B (en) | Data processing method and device | |
KR100467573B1 (en) | Geographic information system and method for providing geographic information | |
CN106776699A (en) | The acquisition methods of online 3D models, provide method, device and management system | |
US6721069B1 (en) | Mapping from full color to highlight color and texture | |
CN114996374A (en) | Online data visualization implementation method, system, device and medium | |
CN105069058B (en) | Network map for high frequency interactive environment requests fast response method | |
JP3507685B2 (en) | Image communication display system and its program storage medium | |
US9280843B1 (en) | Hybrid images for maps combining low frequency map data and high frequency satellite image data |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191011 |