importOSM is a tool to import Open Street Map files (.osm or .shp) into Train Simulator -NEXT.
The tool is located in the [root]/Tools/ directory.
importOSM
(detail_level <i>)
(-import_all)
(-connectWD)
(-region <s>)
Argument | Description | Remarks |
---|---|---|
detail_level <i> | Sets the selection of data, to be imported. i = 0 = Railroads only. i = 1 = Railroads and main roads. i = 2 = Railroads, main roads, power lines and main waterways. i = 3 = Railroads, main roads, power lines, main waterways (, major water areas). i = 4 = Railroads, main + local roads, power lines, main + local waterways (, all water areas). |
Default is 3. |
-import_all | Imports all supported data. | = detail_level 4 |
-connectWD | Calls connectWD def -optimize -cache, after the files have been created. | |
-region <s> | Sets the output region; i.e. "region EU" leads to output file "EU_FileName.WorldData". |
Component | Minimum | Minimum |
---|---|---|
Main Memory | 32 GB for osm files ≤ 8 GB | 64 GB for osm files > 8 GB |
If not enough capacity is available, extend your virtual memory to the required size.
If you want to process a complete area or region in one step:
OSM import remarks
The import process of osm files is memory heavy! A general rule for the required memory consumption is size_of_file * 3.5.
SHP import remarks
Extract the contents of the archive. The content of the data will be parsed by its file name. To import a shp file, the dbf file is required too.
The data quality of shp files is lower than of osm files, as osm files contain more details about e.g. a way.
Basic rules
The basic rules to import data is:
Detail Levels
The tools supports to handle the Detail Level 3. The Detail Level 3 did contain water areas. This isn't the case currently, as the Open Street Maps data doesn't contain valid polygons and needs a lot of post-processing. In future versions, water areas will be contained again.
Detail Level 4 includes all minor streets and minor water ways. Use this data only for areas of interest.