After configuring the base map, make Unique-values Map based on the road condition field of road data, and use green, yellow and red to represent smooth, slow and congested traffic respectively. And the visible scale of the layer is set, the two-way road conditions are displayed under the small scale, and all road conditions are displayed under the large scale. At the same time, the traffic condition map at different times can be made, and the specific operation is as follows:
Large scale road condition map
Add the line data of NavInfo to the configured base map window, and make Unique-values Map at 6 o'clock, 9 o'clock and 18 o'clock based on Condition6, Condition9 and Condition18 respectively. Wherein the field value 1 represents smoothness, the field value 2 represents slowness, and the field value 3 represents congestion. For example, in the field "Condition", the field value 1 indicates smooth traffic, the field value 2 indicates slow traffic, and the field value 3 indicates congestion. The single value 1 is expressed with a green line, the single value 2 is expressed with a yellow line, and the single value 3 is expressed with a red line, as shown in the following figure:
Set the Minimum Visible Scale of the thematic map layer to 1:9028. If you want to view the road conditions at a certain time point, set the Layer Settings at other times to "Not displayed".
Small scale road condition map
According to the scale level of the map display, the road conditions should also be mapped and displayed hierarchically. For example, the road conditions of the ramp can be displayed at a large scale, while the road conditions of the ramp may not be displayed at a medium scale; the road conditions of the auxiliary road are displayed at a large scale, while the road conditions of the auxiliary road are not displayed at a small scale.
For the road in the small scale map, first of all, ensure that the data field contains two types of information: first, there is a field to express the single and double lines and whether to display the road conditions; second, there is a field to express the road congestion. Next, you can create a Unique-values Map for the road through the congestion status field, and set the style of the corresponding status; Specify Field or field expression is used to indicate the single-line and double-line conditions of the road or whether to display the road conditions; set the offset distance of the double-line road conditions to both sides, and the unit is 0.1mm. The specific operation is as follows:
- Double-click the thematic map of road condition
- in Layer Manager, open the "Thematic Map" panel, check the "Traffic Situation" check box "in the" Advanced "interface, set the Road Grading" field, and set the road display. A field value of 0 indicates that the road condition is not displayed, for example, an auxiliary road with a small scale; a field value of 1 indicates that the road with the displayed road condition is a single-line road, for example, a ramp; a field value of 2 indicates that the road with the displayed road condition is a double-line road, for example, an expressway.
Note: The offset effect of the Traffic Situation thematic map is only effective for non-System symbols, and line symbols with IDs of System0 to 5 are not supported. It is recommended to offset the line type symbol in the thematic map when modifying it. For specific operation, please refer to Unique-values Map Properties Panel .
- In the value box on the right of "Road Offset", specify the offset distance to both sides of the double line type in the thematic map of road condition. If the offset is positive, it means the offset to the left of the line direction; if the offset is negative, it means the offset to the right of the line direction. The unit is 0.1mm. By offsetting both sides of the road, the road condition of the double-lane road can be clearly displayed in a small scale.
is zoomed out to view the road conditions, the roads will be staggered and overlapped, and the congestion of two-way roads can not be clearly seen at this time. When the Map Scale is small, it is necessary to display the road conditions of double-line roads. SuperMap provides the "Traffic Line Correction" function to achieve the required effect. This function will process the two attribute values of whether to display the road conditions of the line data and the road condition offset value. Please refer to the Road condition correction for details.