CN106599217A - Road condition display method and apparatus - Google Patents
Road condition display method and apparatus Download PDFInfo
- Publication number
- CN106599217A CN106599217A CN201611169717.4A CN201611169717A CN106599217A CN 106599217 A CN106599217 A CN 106599217A CN 201611169717 A CN201611169717 A CN 201611169717A CN 106599217 A CN106599217 A CN 106599217A
- Authority
- CN
- China
- Prior art keywords
- road
- layer
- map
- traffic information
- color values
- 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
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000009877 rendering Methods 0.000 claims abstract description 88
- 238000005070 sampling Methods 0.000 claims abstract description 10
- 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
- 230000005540 biological transmission Effects 0.000 claims description 5
- 230000000694 effects Effects 0.000 description 8
- 238000004040 coloring Methods 0.000 description 5
- 238000007796 conventional method Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 241001269238 Data Species 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
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)
- Chemical & Material Sciences (AREA)
- Analytical Chemistry (AREA)
- Remote Sensing (AREA)
- Instructional Devices (AREA)
- Navigation (AREA)
Abstract
The invention relates to a road condition display method and apparatus. The method comprises the steps of loading and displaying a map of a target region; obtaining road condition information of all roads in the target region from a server; obtaining configuration information of all the roads in the target region, and obtaining state rendering parameters corresponding to the roads according to the configuration information and the road condition information of the roads; obtaining color rendering parameters corresponding to the roads according to the state rendering parameters and color values corresponding to preset road states; and sampling the map, identifying the roads in the target region according to the sampled color values and default color values of the roads, and rendering the roads in the target region to have corresponding target color values according to the color rendering parameters. According to the method and the apparatus, the network flow during road condition display is effectively saved.
Description
Technical field
The present invention relates to image display technology field, more particularly to a kind of road conditions display methods, a kind of road conditions show dress
Put, another kind of road conditions display methods and another kind of highway condition displaying device.
Background technology
There are many map applications, such as the map application of manufacturer of Baidu and Gao De etc. in internet at present, these ground
Figure application typically has road conditions display function, and convenient use person understands the road conditions of some roads in current city, such as which road
Congestion is compared on road, which road ratio smoothly, so as to select suitable circuit according to the road conditions of the road for showing, when saving traveling
Between.
Map application in conventional art shows that the method for road conditions is:The base map in certain region is first shown, then in base map
One road figure layer of upper superposition, the road figure layer is spliced by several pictures with transparency, is included in every pictures
The image of the road condition in one correspondence geography section.With the PC (personal in certain resolution ratio as 1920*1080
Computer, computer) in check as a example by the road conditions of Baidu map, including 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, server end generates road figure layer according to the road conditions request that PC sends, concurrently
Give PC to be shown.
But above-mentioned road conditions display methods, even if base map data are buffered in PC in advance as off-line data, but road
Figure layer needs server end to be generated according to the road condition that real-time collecting is arrived, and the road figure layer that server end also needs to generate is sent out
PC is given, and the transmission of the road figure layer then needs to expend more network traffics, for example, is once displayed in full screen road conditions consumption
The flow of expense is 1920*1080*4/1024=8100Kb (kilobytes), if carrying out multiple Pan and Zoom ground on PC
Figure, then the flow is by growth at double.Therefore, there is big grade of network traffics consuming and lack in the road conditions display mode in conventional art
Fall into.
The content of the invention
Based on this, it is necessary to for the problems referred to above, there is provided a kind of road conditions display methods and device, road can be effectively saved
Network traffics when condition shows.
A kind of road conditions display methods, including step:
The map in loaded targets region simultaneously shows;
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 of whole roads in the target area is obtained, is believed according to the configuration information and road conditions of each bar road
Breath, obtains the corresponding state rendering parameter of each bar road, wherein, it is silent comprising road id and road in the configuration information of every road
Color value is recognized, each road default color values are different, comprising road default color values and road in the state rendering parameter
Status information;
Color value according to corresponding to the state rendering parameter and default each road condition, obtains each bar road
Corresponding color rendering parameter, comprising road default color values and target color values in the color rendering parameter;
The map is sampled, the target area is recognized according to the color value and road default color values that sample
Interior each bar road, corresponding mesh is rendered into respectively according to the color rendering parameter by each bar road in the target area
Mark color value.
A kind of highway condition displaying device, including:
Map display module, the map for loaded targets region simultaneously shows;
Traffic information obtains module, for obtaining the traffic information of whole roads in the target area from server end,
Comprising 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 bar road, obtains the corresponding state rendering parameter of each bar road, wherein, the configuration of every road
Comprising road id and road default color values in information, each road default color values are different, in the state rendering parameter
Comprising road default color values and road status information;
Color rendering gain of parameter module, for according to the state rendering parameter and default each road condition institute
Corresponding color value, obtains the corresponding color rendering parameter of each bar road, and face is given tacit consent to comprising road in the color rendering parameter
Colour and target color values;
Road rendering module, for sampling to the map, according to the color value and road default color that sample
Each bar road in the value identification target area, according to the color rendering parameter by each bar road in the target area
Corresponding target color values are rendered into respectively.
Above-mentioned road conditions display methods and device, pre-set the map in certain region and matching somebody with somebody for whole roads in the region
Confidence ceases, and the configuration information includes the different default color values of each road id and each road.When needing to show certain region
During road conditions, the geographical range information in the region is sent to server end by the map in the region that loaded and displayed pre-sets, please
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 for receiving, the acquiescence face of each road
The display mode of colour and the road condition for pre-setting, obtains rendering parameter, i.e. face corresponding to each default color values
Colour, then renders according to the rendering parameter to map corresponding data, you can to show the traffic information in the region.Phase
Road figure layer is generated according to the state of each road and each road compared with server end in conventional art, then by mileage chart
Layer is transferred to the mode of client, and server end of the present invention need not carry out the generation of picture, it is only necessary to be sent to traffic information
Client, and the data volume of traffic information effectively saves road conditions and shows much smaller than the data volume of road figure layer, therefore the present invention
When network traffics.Road figure layer need not be generated additionally, due to server end, traffic information is directly returned, server is saved
The process time at end.
Another kind of road conditions display methods, including step:
Receive the request for obtaining the traffic information of whole roads in target area that client sends;
The traffic information of whole roads in the target area according to the acquisition request, in the traffic information of every road
Comprising road id and road condition;
The traffic information of each bar road is sent to the client, so that the client receives the road conditions of each bar road
The corresponding color rendering parameter of each bar road is obtained after information, comprising road default color values and mesh in the color rendering parameter
Mark color value, and each bar road in the map of the target area of display is rendered into respectively according to the color rendering parameter it is right
The target color values answered, the default color values of each road are differed.
Another kind of highway condition displaying device, including:
Request receiving module, for receive client transmission obtain the traffic information of whole roads in target area please
Ask;
Traffic information obtains module, for the road conditions letter of whole roads in the target area according to the acquisition request
Breath, comprising road id and road condition in the traffic information of every road;
Traffic information sending module, for sending the traffic information of each bar road to the client, so that the client
Terminate and obtain the corresponding color rendering parameter of each bar road after the traffic information for receiving each bar road, in the color rendering parameter
Comprising road default color values and target color values, and according to the color rendering parameter by show target area map
In each bar road be rendered into corresponding target color values respectively, the default color values of each road are differed.
Above-mentioned road conditions display methods and device, pre-set the map in certain region and matching somebody with somebody for whole roads in the region
Confidence ceases, and the configuration information includes the different default color values of each road id and each road.When needing to show certain region
During road conditions, the geographical range information in the region is sent to server end by the map in the region that loaded and displayed pre-sets, please
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 for receiving, the acquiescence face of each road
The display mode of colour and the road condition for pre-setting, obtains rendering parameter, i.e. face corresponding to each default color values
Colour, then renders according to the rendering parameter to map corresponding data, you can to show the traffic information in the region.Phase
Road figure layer is generated according to the state of each road and each road compared with server end in conventional art, then by mileage chart
Layer is transferred to the mode of client, and server end of the present invention need not carry out the generation of picture, it is only necessary to be sent to traffic information
Client, and the data volume of traffic information effectively saves road conditions and shows much smaller than the data volume of road figure layer, therefore the present invention
When network traffics.Road figure layer need not be generated additionally, due to server end, traffic information is directly returned, server is saved
The process time at end.
Description of the drawings
Fig. 1 is the schematic flow sheet of the road conditions display methods of an embodiment;
Fig. 2 is the structural representation of the highway condition displaying device of an embodiment;
Fig. 3 is the schematic flow sheet of the road conditions display methods of another embodiment;
Fig. 4 is the structural representation of the highway condition displaying device of another embodiment.
Specific embodiment
It is below in conjunction with the accompanying drawings and preferably real further to illustrate the effect of the technological means taken of the invention and acquirement
Example is applied, from client, the angle of server end, to technical scheme, clear and complete description is carried out.
First from the angle of client, the specific embodiment of road conditions display methods and device to the present invention is done
Describe in detail.
As shown in figure 1, a kind of road conditions display methods, including step:
S110, the map in loaded targets region simultaneously show;
S120, the traffic information that whole roads in the target area are obtained from server end, the road conditions letter of every road
Comprising road id and road condition in breath;
S130, the configuration information for obtaining whole roads in the target area, the configuration information and road according to each bar road
Condition information, obtains the corresponding state rendering parameter of each bar road, wherein, comprising 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 default each road condition, obtain each
The corresponding color rendering parameter of bar road, comprising road default color values and target color values in the color rendering parameter;
S150, the map is sampled, the mesh is recognized according to the color value and road default color values that sample
Each bar road in mark region, it is right to be respectively rendered into each bar road in the target area according to the color rendering parameter
The target color values answered.
Above-mentioned road conditions display methods, server end need not carry out the generation of picture, it is only necessary to which traffic information is sent to into visitor
Family end, and the data volume of traffic information much smaller than road figure layer data volume, therefore the present invention effectively save road conditions show when
Network traffics and save the time.In order to more fully understand each step, first over the ground map generalization mode is carried out simply
Introduce.
The various vector datas of composition of preparation map, such as non-rice habitats figure layer and road figure layer first, non-rice habitats figure layer
It is the base map data in the figure layer in addition to road figure layer, i.e. conventional art, such as administrative region figure layer etc., mileage chart layer data
One key element or a record are a road.
By various non-rice habitats map overlays, and their pattern is set, for example, the color and width of each figure layer are set
Deng.The order of each non-rice habitats map overlay can be configured according to actual needs.
In order to ensure the effect that road conditions show, it is to avoid when mileage chart stacking is added in centre or the bottom of other figure layers, its
He causes road conditions to show the covering of road figure layer at figure layer, and in one embodiment, the mileage chart stacking is added in institute
State the superiors of non-rice habitats figure layer.After being superimposed good various non-rice habitats figure layers, mileage chart stacking is added to into the superiors.
In order to realize the display of road conditions, to road figure layer in each road a kind of unique color is set.It is uniquely
Refer in all of data of map, use without other data and road color repeatedly, the i.e. default color of each road
Value is differed, and the default color values of each road are also differed with the color value in the non-rice habitats figure layer.Therefore each road
Lu Youyi unique road configuration information, the structure of the configuration information<Road id, 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 does not make restriction to this.
Each figure layer good to above-mentioned configuration is processed, and generates one layer of figure layer.So, it is in one embodiment, described
Map is the figure layer generated according to road figure layer and non-rice habitats map overlay.The map contains the base map of each rank and cuts
Piece.Each figure layer is generated into a figure layer can be to realize, for example, using ArcGIS instruments according to existing mode in prior art
Each figure layer for having configured is converted into into one layer of figure layer.
The map including road data can be generated by the way, and follow-up road is then carried out based on the map
The display of condition.Each step is described in detail below.
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 shows, is client, and client includes PC, mobile phone and Intelligent flat etc..In order to not expend real-time network traffics,
The general map by above-mentioned generation copies or is cached to client, counts base map data as offline similar in conventional art
According to caching in a device.
When needing the road conditions for carrying out certain region to show, load the map in the region and show.Compared to conventional art
The base map of middle loaded and displayed, the map of present invention loading is also including 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, asks the target
Traffic information in region.Received server-side gets geographic range to after the request of client, and according to the geographical model
Enclose, find each road id in the geographic range, and the state of each road id and each road is returned to client, number
It is according to structure<Road id, road status>.
In conventional art, server end obtains each vector road id and the shape of each vector road according to client request
After state, need for the state of vector road and the vector road to generate corresponding road conditions picture, then road conditions picture is sent to
Client.And the present invention need not carry out the generation of road conditions picture in server end, only need to be by road id and the state of road
(status) send, save the process 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 road conditions, client needs the face of each state for arranging road
Color display mode.For example,<Heavy congestion, brown shows>,<It is crowded, red display>,<Smooth, green shows>, seriously gather around
Stifled, crowded and smooth each state for road, brown shows, red display and green are shown as the color of each state and show
Mode.
The configuration information of whole roads is previously stored with the target area in client, be that is to say previously positioned every
The configuration information of bar road<Road id, 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 road configuration for pre-setting
Information<Road id, road native color value>, obtain the correspondence pass of state rendering parameter, i.e. road native color value and road status
System:<Road native color value, road status>.According to<Road native color value, road status>Corresponding relation, and each
The color display mode of state, obtains the rendering parameter of road conditions:<Road native color value, brown shows/red display/green
Color shows>.
In step S150, the coloring process that a road conditions are rendered can be set up, the unit of coloring process process is one
The map opened, acquiescence is the primary colors of show map.When there is road conditions to need to update, the coloring process receives rendering parameter, first
The sampling of map is carried out, the default color values of any pixel in current map is got, it is possible thereby to determine the sampled data
It is the road of which kind, and it is the data for finally needing to render to change sampled data, i.e., corresponding color shows, so as to realize
The display 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, you can the native color value to determine the color value of the pink colour as 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 shows.Can adopt
GLSL (OpenGL Shading Language, shading language) method carries out the sampling of map, sweeps without carrying out individual element
Retouch, pixel acquisition speed is faster.
Client needs to show two figure layers of base map and road in conventional art, needs to consume more resources.And this
Bright need render a figure layer, you can the road conditions as road figure layer are superimposed on the base map in complete conventional method and show effect
Really.Due to render figure layer is few, therefore reduce CPU (Central Processing Unit, central processing unit) and video memory etc.
The consumption of hardware resource.
Based on same inventive concept, the present invention also provides a kind of highway condition displaying device, the device is embodied as below
Mode is described in detail.
As shown in Fig. 2 a kind of highway condition displaying device, including:
Map display module 110, the map for loaded targets region simultaneously shows;
Traffic information obtains module 120, for obtaining the road conditions letter of whole roads in the target area from server end
Breath, comprising 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 bar road, obtains the corresponding state rendering parameter of each bar road, wherein, every road is matched somebody with somebody
, the state rendering parameter different comprising road id and road default color values, each road default color values in confidence breath
In comprising road default color values and road status information;
Color rendering gain of parameter module 140, for according to the state rendering parameter and default each road like
Color value corresponding to state, obtains the corresponding color rendering parameter of each bar road, silent comprising road in the color rendering parameter
Recognize color value and target color values;
Road rendering module 150, for sampling to the map, according to the color value and road acquiescence face for sampling
Colour recognizes each bar road in the target area, according to the color rendering parameter by the target area Nei Getiao roads
Road is rendered into respectively corresponding target color values.
Above-mentioned highway condition displaying device, server end need not carry out the generation of picture, it is only necessary to which traffic information is sent to into visitor
Family end, and the data volume of traffic information much smaller than road figure layer data volume, therefore the present invention effectively save road conditions show when
Network traffics and save the time.The function of modules is described in detail below.
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 be conventional art in base map data, such as administrative region figure layer etc., a key element of mileage chart layer data or
One record of person is a road.Each figure layer of superposition is generated into a figure layer can be according to existing side in prior art
Formula is realized.
In one embodiment, the default color values of each road also with the non-rice habitats figure layer in color value not phase
Together.I.e. in order to the road conditions realized show, to road figure layer in a kind of each road unique color of setting.Uniquely refer to
In all of data of map, use without other data and color that the road repeats, i.e., the default color values of each road are not
Identical, the default color values of each road are also differed with the color value of the non-rice habitats figure layer.
In order to ensure the effect that road conditions show, it is to avoid when mileage chart stacking is added in centre or the bottom of other figure layers, its
He causes road conditions to show the covering of road figure layer at figure layer, and in one embodiment, the mileage chart stacking is added in institute
State the superiors of non-rice habitats figure layer.After being superimposed good various non-rice habitats figure layers, mileage chart stacking is added to into the superiors.
When needing the road conditions for carrying out certain region to show, map display module 110 loads the map in the region and shows.
Compared to the base map of loaded and displayed in conventional art, the map of the loading of map display module 110 is also including the color of road figure layer
Information.
The geographical range information of target area is sent to server end by traffic information acquisition module 120, asks the target
Traffic information in region.Received server-side gets geographic range to after the request of client, and according to the geographical model
Enclose, find each road in the geographic range, and the state of each road id and each road is returned to traffic information and obtain
Delivery block 120, data structure is<Road id, road status>.Due to the generation without the need for carrying out road conditions picture in server end,
And only the state of road id and road need to be sent, the process time of server end, and server end are saved to client
End sends the flow of road conditions picture.
In order to show road conditions, client needs the color display mode of each state for arranging road.For example,<Seriously gather around
Stifled, brown shows>,<It is crowded, red display>,<Smooth, green shows>, heavy congestion, crowded and smooth each for 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 the road configuration information for pre-setting<Road id,
Road native color value>, obtain the corresponding relation of road native color value and road status:<Road native color value, road status
>.The basis of color rendering gain of parameter module 140<Road native color value, road status>Corresponding relation, and each state
Color display mode, obtain the rendering parameter of road conditions:<Road native color value, brown shows/red display/green shows
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 is changed
Sampled data is the data for finally needing to render, i.e., corresponding color shows, it is achieved thereby that 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
Describe in detail.
As shown in figure 3, a kind of road conditions display methods, including step:
S210, the request for obtaining the traffic information of whole roads in target area for receiving client transmission;
The traffic information of whole roads, the road conditions of every road in S220, the target area according to the acquisition request
Comprising road id and road condition in information;
S230, the traffic information that each bar road is sent to the client, so that the client receives each bar road
Traffic information after obtain the corresponding color rendering parameter of each bar road, in the color rendering parameter include road default color
Value and target color values, and each bar road in the map of the target area for showing is distinguished by wash with watercolours according to the color rendering parameter
Contaminate for corresponding target color values, the default color values of each road are differed.
Above-mentioned road conditions display methods, server end need not carry out the generation of picture, it is only necessary to which traffic information is sent to into visitor
Family end, and the data volume of traffic information much smaller than road figure layer data volume, therefore the present invention effectively save road conditions show when
Network traffics and save the time.In order to more fully understand each step, first over the ground map generalization mode is carried out simply
Introduce.
The various vector datas of composition of preparation map, such as non-rice habitats figure layer and road figure layer first, non-rice habitats figure layer
For the base map data in conventional art, such as administrative region figure layer etc., a key 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, for example, the color and width of each figure layer are set
Deng.The order of each non-rice habitats map overlay can be configured according to actual needs.
In order to ensure the effect that road conditions show, it is to avoid when mileage chart stacking is added in centre or the bottom of other figure layers, its
He causes road conditions to show the covering of road figure layer at figure layer, and in one embodiment, the mileage chart stacking is added in institute
State the superiors of non-rice habitats figure layer.After being superimposed good various non-rice habitats figure layers, mileage chart stacking is added to into the superiors.
In order to realize the display of road conditions, to road figure layer in each road a kind of unique color is set.It is uniquely
Refer in all of data of map, use without other data and road color repeatedly, the i.e. default color of each road
Value is differed, and the default color values of each road are also differed with the color value in the non-rice habitats figure layer.Therefore each road
Lu Youyi unique road configuration information, the structure of the configuration information<Road id, 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 does not make restriction to this.
Each figure layer good to above-mentioned configuration is processed, and generates one layer of figure layer.So, it is in one embodiment, described
Map is the figure layer generated according to road figure layer and non-rice habitats map overlay.The map contains the base map of each rank and cuts
Piece.Each figure layer is generated into a figure layer can be to realize, for example, using ArcGIS instruments according to existing mode in prior art
Each figure layer for having configured is converted into into one layer of figure layer.
The map including road data can be generated by the way, and follow-up road is then carried out based on the map
The display of condition.Each step is described in detail below.
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 shows, is client, and client includes PC, mobile phone and Intelligent flat etc..In order to not expend real-time network traffics,
The general map by above-mentioned generation copies or is cached to client.
When needing the road conditions for carrying out certain region to show, client loads the map in the region and shows.Compared to biography
The base map of loaded and displayed in system technology, the map of present invention loading is also including the colouring information of road figure layer.Client is by target
The geographical range information in region is sent to server end, asks 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, then obtain the state of each road.By traffic information
Client is returned to, data structure is<Road id, road status>.
In conventional art, server end obtains each vector road id and the shape of each vector road according to client request
After state, need for the state of vector road id and the vector road to generate corresponding road conditions picture, then road conditions picture is sent
To client.And the present invention need not carry out the generation of road conditions picture in server end, only need to be by road id and the state of road
(status) send, save the process time of server end, save the stream that server end sends road conditions picture to client
Amount.
The configuration information of whole roads is previously stored with the target area in client, be that is to say previously positioned every
The configuration information of bar road<Road id, 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 road configuration for pre-setting
Information<Road id, road native color value>, obtain the correspondence pass of state rendering parameter, i.e. road native color value and road status
System:<Road native color value, road status>.According to<Road native color value, road status>Corresponding relation, and each
The color display mode of state, obtains the color rendering parameter of road conditions:<Road native color value, 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
This can determine that the sampled data is the road of which kind, and it is the data for finally needing to render to change sampled data, i.e., right
The color answered shows, it is achieved thereby that the display of road conditions.Client can adopt GLSL methods to carry out the sampling of map, without entering
Row individual element is scanned, and pixel acquisition speed is faster.
Client needs to show two figure layers of base map and road in conventional art, needs to consume more resources.And this
Bright need render a figure layer, you can the road conditions as road figure layer are superimposed on the base map in complete conventional method and show effect
Really.Due to render figure layer is few, therefore reduce the consumption of the hardware resources such as CPU and video memory.
Based on same inventive concept, the present invention also provides a kind of highway condition displaying device, below in conjunction with the accompanying drawings to present invention dress
The specific embodiment put is described in detail.
As shown in figure 4, a kind of highway condition displaying device, including:
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, for the road conditions of whole roads in the target area according to the acquisition request
Information, comprising road id and road condition in the traffic information of every road;
Traffic information sending module 230, for sending the traffic information of each bar road to the client, so that the visitor
Family to terminate and obtain the corresponding color rendering parameter of each bar road, the color rendering parameter after the traffic information for receiving each bar road
In comprising road default color values and target color values, and according to the color rendering parameter by the ground of the target area for showing
Each bar road is rendered into respectively corresponding target color values in figure, and the default color values of each road are differed.
Above-mentioned highway condition displaying device, server end need not carry out the generation of picture, it is only necessary to which traffic information is sent to into visitor
Family end, and the data volume of traffic information much smaller than road figure layer data volume, therefore the present invention effectively save road conditions show when
Network traffics and save the time.The function of modules is described in detail below.
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 be conventional art in base map data, such as administrative region figure layer etc., a key element of mileage chart layer data or
One record of person is a road.Each figure layer of superposition is generated into a figure layer can be according to existing side in prior art
Formula is realized.
In one embodiment, the default color values of each road also with the non-rice habitats figure layer in color value not phase
Together.I.e. in order to the road conditions realized show, to road figure layer in a kind of each road unique color of setting.Uniquely refer to
In all of data of map, use without other data and color that the road repeats, i.e., the default color values of each road are not
Identical, the default color values of each road are also differed with the color value of the non-rice habitats figure layer.
In order to ensure the effect that road conditions show, it is to avoid when mileage chart stacking is added in centre or the bottom of other figure layers, its
He causes road conditions to show the covering of road figure layer at figure layer, and in one embodiment, the mileage chart stacking is added in institute
State the superiors of non-rice habitats figure layer.After being superimposed good various non-rice habitats figure layers, mileage chart stacking is added to into the superiors.
The geographical range information of target area is sent to client the request receiving module 210 of server end, and request should
Traffic information in target area.The request receiving module 210 of server end is received after the request of client, and traffic information is obtained
Obtain module 220 and get 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 the generation without the need for carrying out road conditions picture in server end, and only the state of road id and road need to be sent out
Send, save the process time of server end, and server end sends the flow of road conditions picture to client.
Client receives the traffic information data of server end return:<Road id, road status>, believed according to road conditions
Breath data<Road id, road status>And the road configuration information for pre-setting<Road id, road native color value>Obtain
State rendering parameter, the i.e. corresponding relation of road native color value and road status:<Road native color value, road status>.
According to<Road native color value, road status>Corresponding relation, and the color display mode of each state obtains 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 it is the data for finally needing to render to change sampled data, i.e., corresponding color shows, it is achieved thereby that road conditions is aobvious
Show.
Above-mentioned road conditions display methods and device, only need to render a figure layer, you can the base map in realize 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, without the need for the generation that road conditions picture is carried out in server end, save the server-side processes time, and service
Device end sends the flow of road conditions tile to client.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, can be
Related hardware is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described 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, to make description succinct, not to above-mentioned reality
Apply 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, the scope of this specification record is all considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more concrete and detailed, but and
Can not therefore be construed as limiting the scope of the patent.It should be pointed out that for one of ordinary skill in the art comes
Say, without departing from the inventive concept of the premise, some deformations and improvement can also be made, these belong to the protection of the present invention
Scope.Therefore, the protection domain of patent of the present invention should be defined by claims.
Claims (10)
1. a kind of road conditions display methods, it is characterised in that including step:
The map in loaded targets region simultaneously shows;
The traffic information of whole roads in the target area is obtained from server end, road is included in the traffic information of every road
Road id and road condition;
The configuration information of whole roads in the target area is obtained, according to the configuration information and traffic information of each bar road, is obtained
The corresponding state rendering parameter of each bar road is obtained, wherein, comprising road id and road acquiescence face in the configuration information of every road
Colour, each road default color values are different, comprising road default color values and road condition in the state rendering parameter
Information;
Color value according to corresponding to the state rendering parameter and default each road condition, obtains each bar road correspondence
Color rendering parameter, comprising road default color values and target color values in the color rendering parameter;
The map is sampled, is recognized in the target area according to the color value and road default color values that sample
Each bar road, corresponding target face is rendered into respectively according to the color rendering parameter by each bar road in the target area
Colour.
2. road conditions display methods according to claim 1, it is characterised in that the map is according to road figure layer and Fei Dao
The figure layer that road map overlay is generated;
Each road default color values are also differed with the color value in the non-rice habitats figure layer.
3. road conditions display methods according to claim 2, it is characterised in that the mileage chart stacking is added in the non-rice habitats
The superiors of figure layer.
4. a kind of road conditions display methods, it is characterised in that including step:
Receive the request for obtaining the traffic information of whole roads in target area that client sends;
The traffic information of whole roads, includes in the traffic information of every road in the target area according to the acquisition request
Road id and road condition;
The traffic information of each bar road is sent to the client, so that the client receives the traffic information of each bar road
After obtain the corresponding color rendering parameter of each bar road, comprising road default color values and target face in the color rendering parameter
Colour, and be respectively rendered into each bar road in the map of the target area of display according to the color rendering parameter corresponding
Target color values, the default color values of each road are differed.
5. road conditions display methods according to claim 4, it is characterised in that the map is according to road figure layer and Fei Dao
The figure layer that road map overlay is generated;The default color values of each road also with the non-rice habitats figure layer in color value not phase
Together;The mileage chart stacking is added in the superiors of the non-rice habitats figure layer.
6. a kind of highway condition displaying device, it is characterised in that include:
Map display module, the map for loaded targets region simultaneously shows;
Traffic information obtains module, for obtaining the traffic information of whole roads in the target area from server end, per bar
Comprising 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 Ge Tiao roads
The configuration information and traffic information on road, obtains the corresponding state rendering parameter of each bar road, wherein, the configuration information of every road
In it is different comprising road id and road default color values, each road default color values, include in the state rendering parameter
Road default color values and road status information;
Color rendering gain of parameter module, for according to corresponding to the state rendering parameter and default each road condition
Color value, obtain the corresponding color rendering parameter of each bar road, road default color values are included in the color rendering parameter
And target color values;
Road rendering module, for sampling to the map, knows according to the color value and road default color values that sample
Each bar road in not described target area, distinguishes in each bar 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, it is characterised in that the map is according to road figure layer and Fei Dao
The figure layer that road map overlay is generated;
Each road default color values are also differed with the color value in the non-rice habitats figure layer.
8. highway condition displaying device according to claim 7, it is characterised in that the mileage chart stacking is added in the non-rice habitats
The superiors of figure layer.
9. a kind of highway condition displaying device, it is characterised in that include:
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 whole road in the target area according to the acquisition request, often
Comprising road id and road condition in the traffic information of bar road;
Traffic information sending module, for sending the traffic information of each bar road to the client, so that client termination
The corresponding color rendering parameter of each bar road is obtained after the traffic information for receiving each bar road, is included in the color rendering parameter
Road default color values and target color values, and will be each in the map of the target area for showing according to the color rendering parameter
Bar road is rendered into respectively corresponding target color values, and the default color values of each road are differed.
10. highway condition displaying device according to claim 9, it is characterised in that the map is according to road figure layer and non-
The figure layer that road map overlay is generated;The default color values of each road also with the non-rice habitats figure layer in color value not
It is identical;The mileage chart stacking is added in the superiors 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 true CN106599217A (en) | 2017-04-26 |
CN106599217B 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) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109410576A (en) * | 2018-11-08 | 2019-03-01 | 深圳北斗应用技术研究院有限公司 | Road condition analyzing method, apparatus, storage medium and the system of multisource data fusion |
CN109976600A (en) * | 2017-12-28 | 2019-07-05 | 上海擎感智能科技有限公司 | Map color matching method and intelligent terminal |
CN110274611A (en) * | 2019-06-24 | 2019-09-24 | 腾讯科技(深圳)有限公司 | Information display method, device, terminal and storage medium |
CN110716682A (en) * | 2018-07-13 | 2020-01-21 | 上海擎感智能科技有限公司 | Map custom color matching method and system, storage medium and terminal |
CN110874951A (en) * | 2018-08-31 | 2020-03-10 | 高德信息技术有限公司 | Road condition rendering method, device, equipment and medium |
CN111586108A (en) * | 2020-04-15 | 2020-08-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 |
CN112131326A (en) * | 2019-06-25 | 2020-12-25 | 上海擎感智能科技有限公司 | Map display method and device |
CN113936476A (en) * | 2021-09-01 | 2022-01-14 | 深圳云天励飞技术股份有限公司 | 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 (4)
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 |
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 |
-
2016
- 2016-12-16 CN CN201611169717.4A patent/CN106599217B/en not_active Expired - Fee Related
Patent Citations (4)
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 |
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 |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109976600A (en) * | 2017-12-28 | 2019-07-05 | 上海擎感智能科技有限公司 | Map color matching method and intelligent terminal |
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 |
CN110874951A (en) * | 2018-08-31 | 2020-03-10 | 高德信息技术有限公司 | Road condition rendering method, device, equipment and medium |
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 |
CN110274611A (en) * | 2019-06-24 | 2019-09-24 | 腾讯科技(深圳)有限公司 | Information display method, device, terminal and storage medium |
CN112131326B (en) * | 2019-06-25 | 2024-04-12 | 上海擎感智能科技有限公司 | Map display method and device |
CN112131326A (en) * | 2019-06-25 | 2020-12-25 | 上海擎感智能科技有限公司 | Map display method and device |
CN111586108B (en) * | 2020-04-15 | 2022-02-25 | 阿里巴巴集团控股有限公司 | Traffic map rendering method, device, terminal equipment, server and system |
CN111586108A (en) * | 2020-04-15 | 2020-08-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 |
CN113936476A (en) * | 2021-09-01 | 2022-01-14 | 深圳云天励飞技术股份有限公司 | Signal lamp control method and device, computer equipment and storage medium |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN106599217B (en) | 2019-10-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106599217A (en) | Road condition display method and apparatus | |
CN106294474B (en) | Show processing method, the apparatus and system of data | |
CN110392911A (en) | The method and apparatus of chromatic image for rendering | |
CN1711750A (en) | Method and system for conducting image processing from a mobile client device | |
Touya et al. | Clutter and map legibility in automated cartography: A research agenda | |
CN108205671A (en) | Image processing method and device | |
CN114286172B (en) | Data processing method and device | |
CN110399842A (en) | Method for processing video frequency, device, electronic equipment and computer readable storage medium | |
CN101796848A (en) | Color enhancement | |
CN108615496A (en) | Image processing method and device | |
CN109600578A (en) | Image processing apparatus, image processing system, image processing method | |
CN110909103B (en) | Data display method and device based on electronic map | |
CN114399437A (en) | Image processing method and device, electronic equipment and storage medium | |
CA2785187C (en) | Image generation device, image generation method, image generation program, and recording medium | |
US20080267145A1 (en) | Methods and Apparatus for Managing Wireless Networks Using Geographical-Level and Site-Level Visualization | |
CN106776699A (en) | The acquisition methods of online 3D models, provide method, device and management system | |
CN106686130A (en) | Acquisition device and system and display method and system for monitoring data of agricultural Internet of things | |
CN103024470A (en) | Image display method, server and image display system | |
US8731289B2 (en) | Recoloring images of a web page according to a representative color | |
US20230065027A1 (en) | Gpu-based digital map tile generation method and system | |
CN110414460A (en) | A kind of data processing method and device | |
CN114387940B (en) | Partition display updating method, playing box and display system of LED display screen | |
CN113282647B (en) | Area control processing method based on tile map data | |
CN115408406A (en) | High-density ship position dynamic rendering system based on map service | |
CN113923296B (en) | Interface display method, device and computer readable storage medium |
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 |
Granted publication date: 20191011 |
|
CF01 | Termination of patent right due to non-payment of annual fee |