Dev Tutorial [Editor] Digital Elevation Model (DEM) Data

Road-hog123

An Orange Bus
Administrator
UKDT
Dec 10, 2015
1,793
Since Omsi 2, it has been possible to import DEM data into Omsi maps to allow for more realistic real-world maps with nice gradients and hills that aren't isolated on a flat map. For the DEM data to work, your map must be using real-world coordinates.

To be able to use DEM data, you first have to download the files for your area. Now, there are several places you can get them from, both free and paid. The data I choose to use is from NASA's SRTM (or, if you're in the USA, you can get higher definition imagery from the same source). This data is from the 'Shuttle Radar Topography Mission' that NASA carried out in February 2000 using the Space Shuttle Endeavour and this 60 metre pole with a radar on the end of it:
0a5ab93aa56264fb417475def3182133.jpeg

What this means is that although this data is some of the best out there (I don't know of any free data that's better), any changes since February 2000 won't be shown; the height data is sampled about every 30 metres, so details less than that size won't be seen (particularly steep slopes like embankments or cuttings for example); and because it's radar reflection from orbit, things like trees and buildings prevent the radar seeing the ground and result in falsely high readings and even February 2000's weather can affect the accuracy. You shouldn't rely on this data being perfect, but it significantly reduces the amount of work that has to be done to the terrain to make it look right.

Now the next thing you'll need in order to download your data is to know which file(s) you want. For Europe you'll want to select "Eurasia" and then download the correct file(s) based on the coordinates of the location. If for example I wanted to download the data for 51.389500, 30.099139, I'd want N51E030.hgt and if I wanted -22.899500, -43.209000, I'd want S23W044.hgt (that is to say that you'd round down for places South of the Equator or West of the Meridian, the values are prefixed with S and W and still rounded down, but then converted to positive after rounding down).

Depending on the length of your route and how close it is to file boundaries, you may find you have to get more than one file. It's quite obvious if you run off the edge of a DEM file as there will be a cliff in the middle of a tile down to 0 height. The downloaded files should be placed in \OMSI 2\DEMImport\SRTM\Data\.

From there you can go into the Editor onto your map and select the "Tile" tab. There is then a "DEM" section from where you can select the importer DLL in the drop-down (it's not pre-selected for some reason) and click "Run curr. Tile" to import DEM for the tile you're on, noting that it will erase all terrain extant on the tile to replace it with DEM.
upload_2017-1-15_12-15-34.png
 
Last edited:

Raymond Souster

New Member
Apr 28, 2017
13
Hi guys , I am trying to get Finsbury park into the game but having no luck what so ever.

the google map coordinates are :

51.565913, -0.106668

in game editor it shows as N51 W006

So i have in my data folder , N51W005 , N51W006,N51W008 (There is no N51W007) in the DEM database but still when i press on the "Run current tile" it don't effect anything or change the tile and wondering what files i do need since i seem to be selecting the wrong files

Kind regards

Raymond
 

WTR33660

Active Member
Apr 2, 2016
298
Should the terrain be set in omsi editor automatically, or do I still need to do it my self?
 

Zinx

New Member
Nov 25, 2016
6
Having an issue the same as Raymond, tried downloading files surround the area of N55 although no terrain change is happening, a little help would be cool ;)
 

Road-hog123

An Orange Bus
Administrator
UKDT
Dec 10, 2015
1,793
Two things:
  1. Make sure you are loading the correct map - the conversion to world coordinates creates a copy of your map, so you need to ensure you load that and not your original map.
  2. You might have converted the coordinates to filename incorrectly - without knowing what your coordinates are I can't tell you which file you need. Make sure you're rounding towards negative infinity, not 0, and that you've got your directions round the right way.
 

Zinx

New Member
Nov 25, 2016
6
basically, my coordinates are
Lat: 55.857984
Long: -4.253393

I also downloaded "N55E051.hgt" which did not work either..
 

Zinx

New Member
Nov 25, 2016
6
hey, just wondering, how does it become +55, -5? confused me a little there

Edit: nevermind i read your reply wrong..

Update: i tried this with the exact info you passed, didn't seem to work..
 
Last edited:
  • Like
Reactions: Craig Wilson