Support Topics
 Support topics UC-win/Road

Traffic simulation VR created using only open data

Maintenance and support service related information
    

In recent years, various types of fundamental data and urban information, accumulated for different purposes and in various formats, are now being actively released as "open data," and their accessibility has also been improved. This time, we will introduce a method for creating traffic simulations using only open data, by utilizing the diverse data input functions of UC-win/Road.

First, we import the terrain data

  

First, prepare the underlying terrain data. UC-win/Road offers various methods for generating terrain, but obtaining terrain from Geospatial Information Authority of Japan (GSI) tiles is probably the easiest method. You can directly select or move the area while viewing the map. Furthermore, it is possible to generate terrain with aerial photographs overlaid on it.
To open the "Geographical Survey Institute Tile Range Setting" screen, go to the "File" menu, then select "New Project," and finally choose "Load Geographical Survey Institute Tiles."


Figure 1: Geographic Information Institute tile range setting screen

You can move the position by dragging the mouse, and zoom in or out using the zoom level in the upper left corner or the mouse wheel to display the area being simulated. The range displayed in the window is read directly as terrain data, so you can select the necessary area by changing the size of the window or maximizing it. Set "Map image type" to "Seamless photo."
If you want to use higher-resolution aerial photographs, increase the value of "Zoom Level Offset" in the "Additional Settings" tab located at the top right of the screen.


Figure 2: Geographic Institute tile range settings: seamless photos and additional settings

If you are making data obtained from GSI tiles publicly available to an unspecified number of users, you can check the procedures for using GSI maps and aerial photographs on the Geospatial Information Authority of Japan (GSI) website by clicking the "Details" button in the upper right corner. Please refer to resources such as the "Map Usage Procedure Guide" for information on how to cite sources.


Adjusts the resolution of aerial photographs

  

If you examine the loaded data and find that the aerial photograph appears blurry, adjust the image resolution.
To allow you to manually control the degree to which aerial photo textures are reduced in size, disable the automatic reduction setting. In the "File" menu, go to "Application Options," then "Default Settings," and under "Editing," uncheck the box labeled "If the total size exceeds the limit when loading a project, reduce texture sizes," and then click "OK."


Figure 3: Default settings screen for application options

  

Next, open the settings screen by selecting "Edit" -> "Street Map" from the menu, and check the box next to "Image Quality." If this box is not checked, the aerial photographs will appear with lower resolution.
When the area covered by the terrain is small, it's possible to use "standard resolution" for image quality, but it's often set to "low resolution" or "ultra-low resolution."


When you "confirm," the planned size of the street map will be displayed, and you will be asked for permission. Because creating textures that are several gigabytes in size takes time to generate, a confirmation message will appear asking if you want to reduce the resolution. If you want to display high-resolution aerial photographs, select "no"; if you want to shorten the generation time while working, select "yes," and gradually lower the resolution.


Figure 4: Street map configuration screen Figure 5: Checking the texture resolution

  

If the visual quality of the output, such as images or videos, is important, we recommend selecting "No," but please consider this based on the rendering time and your computer's graphics processing capabilities. This setting determines the resolution used when displaying in a VR environment, so it is possible to revert to a higher resolution later.


Figure 6: Image quality: example of ultra-low resolution (created by processing Geographic Institute tiles)
  

If your computer's specifications are limited or you want to reduce processing time, you can delete unnecessary areas of aerial photographs. To delete a cell containing an unwanted area, right-click on that cell and select "Delete." Alternatively, you can split a cell by selecting "Edit" and then deleting the unwanted portion. Please note that once a deletion is confirmed, it cannot be undone.


Detailed information about the terrain

  

The geographic data tiles are loaded with a resolution equivalent to a 10-meter grid, so if you are concerned about the accuracy of the terrain representation, such as significant discrepancies in slopes compared to reality, you should load more detailed data.
Geospatial Information Authority of Japan (GSI) basic map information websitehttps://www.gsi.go.jp/kiban/You can synthesize detailed terrain by downloading base map viewer data and 5-meter mesh digital elevation model (DEM) data from the specified source, converting them to Shapefile format, and loading them. (For reference on the procedure: )Procedure for importing digital elevation models.pdf )


It reads road alignment data

  

The road geometry can be loaded by importing data exported from the OpenStreetMap website (https://www.openstreetmap.org/). To display the target area on OpenStreetMap and export the data, click "Export" at the top of the screen. By default, the output file will be named map.osm.


Figure 7: Exporting data from OpenStreetMap

  

To load a map.osm file in UC-win/Road, go to the "File" menu, then "Import," and select "Load OpenStreetMap data." If the area is Japan, the driving mode will be set to "left." Clicking "Next" opens the "2. Parameter Customization" screen, where you can select which road types to load. You can move the display range by dragging with the mouse and rotating the wheel.
In the next section, "3. Road Connection," you can modify how roads are connected. In the following section, "4. Road Customization," you can select and split the roads to be loaded. Additionally, you can edit road parameters such as the number of lanes.
In the next step, "5. Completion," we will import the OSM data.


Figure 8: Loading OpenStreetMap data: customizing roads and importing them

Areas with unnatural curves or poorly generated intersections are individually adjusted by modifying the parameters of direction change points and vertical alignment to match the terrain and elevation data in the VR space. The actual road's elevation information can be accessed by placing a crosshair cursor on the map within GSI Maps.


  

Please input the traffic flow data

  

If traffic volume data is not available, we estimate the traffic volume using data from the Ministry of Land, Infrastructure, Transport and Tourism (MLIT)'s road traffic census.
>> National Road and Street Traffic Conditions Survey (Road Traffic Census)
 https://www.mlit.go.jp/road/ir/ir-data/ir-data.html

Because the web map (visualization tool) is easier to see, I choose the web map.
Display the relevant area, and clicking on a road will show the survey results. Enter the average hourly traffic volume for both uphill and downhill directions by dividing the daytime 12-hour traffic volume by 12. Scrolling down in the survey results window will reveal values for downhill traffic and the percentage of large vehicles.


Figure 9: Traffic census information

  

For information on how to set traffic volume, please refer to support topic 141.
>> Methods for reflecting actual traffic volume
https://www.forum8.co.jp/topic/up141-support-topics-road.htm
Using the methods described above, it is possible to simulate current traffic conditions in a simplified form using open data. Please note that the method presented here provides only a basic simulation because it does not reflect accurate local information such as intersection structures, lane configurations, and traffic on small streets.


(Featured in the New Year issue of Up&Coming '25)

LOADING