Hi Folks,
It's truly time to provdie an alternative to DEMEX and its 32-bit limitations. I've been working on a new tool called SCOtopo for a - - - while. It is a modern, automated terrain building application designed to generate elevation data directly for Open Rails and MSTS-compatible route layouts. It focuses on utilizing 1m LIDAR data sets - still active with USGS.
Instead of requiring you to manually hunt down, download, and convert digital elevation files, SCOtopo reads your existing route structure and dynamically streams live elevation data from the USGS cloud service - to overwrite or populate your route's elevation grids (*_y.raw files).
USGS 1m LIDAR Coverage Map:
================================================== ================
CORE FEATURES
================================================== ================
* Intelligent Multi-Resolution Fallback: It primarily requests high-resolution 1-meter LIDAR DEM data. If a specific area lacks 1-meter coverage, it seamlessly falls back to 1/3 arc-second (~10-meter) data, ensuring zero gaps in your terrain mosaic.
* Smart 1m to 8m Downsampling: Open Rails requires terrain data to be spaced out in 8-meter points. Rather than just throwing away detail to shrink the massive 1-meter USGS data down to fit, SCOtopo analyzes the elevation patterns of each 8-meter block and calculates a mathematically smooth average, giving you highly detailed hill contours without any rough, jagged pixel edges.
* Neighbor-Fill Stitching: If the USGS database has minor missing data holes, the program utilizes an automated bilinear neighbor-averaging algorithm to patch void spaces cleanly.
* Edge and Corner Blending: It evaluates shared boundaries across adjacent map tiles. It averages heights along horizontal and vertical borders (including corners) so that your route has completely seamless tile transitions with no artificial cliffs or tears.
* Advanced Geographic Mapping: It natively handles the legacy MSTS/Open Rails Interrupted Goode Homolosine world projection system, converting raw latitude and longitude lines accurately into native game tile coordinates.
* Non-Destructive Inspection Mode: Features an `--inspect` option allowing you to scan your route, determine geographic bounding boxes, and see missing height stats without writing any modifications to disk.
* Will not process the old legacy 4km tiles.
================================================== ================
ADVANTAGES OVER DEMEX
================================================== ================
Legacy utilities like DEMEX served the community well for decades, but they are tied to an outdated era of manual data processing. SCOtopo offers several major upgrades:
* No Manual File Sourcing: DEMEX requires you to manually browse external websites, download individual GeoTIFF or .dem files, extract them, and index them. SCOtopo handles data hunting and streaming completely over HTTP natively.
* Only downloads the data needed, not massive GeoTiffs, cutting downloads to more than half the size of doing it via the old method.
* Modern OS Compatibility: DEMEX relies on older Win32/VB6 frameworks that struggle on modern 64-bit Windows environments. SCOtopo is built on modern .NET core architectures utilizing standard, updated GDAL engine wrappers.
* Dynamic Data Resolution: DEMEX is usually constrained to a single file resolution per build pass. SCOtopo actively blends multiple resolutions (1m and 1/3 arc-second) into a single coordinate grid on the fly.
* Automatic Patch Math Alignment: While DEMEX can sometimes introduce tile gaps or require manual layout tweaking, this tool directly calculates and updates the complex internal binary token scales (TokenTerrainSampleFloor / TokenTerrainSampleScale) inside the .t files automatically.
================================================== ================
KNOWN LIMITATIONS
================================================== ================
Please keep the following restrictions in mind when using the tool:
* USGS Territory Restriction Only: The program is hardcoded to query the United States Geological Survey (TNM Access API). As a result, it only supports terrain generation within the United States and cannot build international routes.
* Hardcoded Dataset Dependencies: It relies strictly on the "Digital Elevation Model (DEM) 1 meter" and the "National Elevation Dataset (NED) 1/3 arc-second" datasets. If neither dataset covers the targeted area, generation fails.
* Internet & API Performance Reliance: Because the tool streams live data directly via GDAL virtual file systems (/vsicurl/), it requires a stable internet connection. Large routes can face long processing times or timeouts if the USGS servers experience high latency.
* Fixed Tile Layout Grid: The mathematical engine is locked to a grid size of 256x256 int16 samples and an 8.0-meter post-spacing format. It will not adapt to alternative grid formats or different terrain sample scales automatically.
================================================== ================
================================================== ================
While still a work in progress - I've managed my first successful run - a major milestone. As far as I can tell - it created a perfect terrain mesh for the desired area - an area I am quite familiar with as I've been building/modifying a route in this area for many years.
Attached is my test - so you can see what 1m buys you - no track - so if interested - just open in TSRE.
Regards,
Scott
TopoTest.zip
It's truly time to provdie an alternative to DEMEX and its 32-bit limitations. I've been working on a new tool called SCOtopo for a - - - while. It is a modern, automated terrain building application designed to generate elevation data directly for Open Rails and MSTS-compatible route layouts. It focuses on utilizing 1m LIDAR data sets - still active with USGS.
Instead of requiring you to manually hunt down, download, and convert digital elevation files, SCOtopo reads your existing route structure and dynamically streams live elevation data from the USGS cloud service - to overwrite or populate your route's elevation grids (*_y.raw files).
USGS 1m LIDAR Coverage Map:
================================================== ================
CORE FEATURES
================================================== ================
* Intelligent Multi-Resolution Fallback: It primarily requests high-resolution 1-meter LIDAR DEM data. If a specific area lacks 1-meter coverage, it seamlessly falls back to 1/3 arc-second (~10-meter) data, ensuring zero gaps in your terrain mosaic.
* Smart 1m to 8m Downsampling: Open Rails requires terrain data to be spaced out in 8-meter points. Rather than just throwing away detail to shrink the massive 1-meter USGS data down to fit, SCOtopo analyzes the elevation patterns of each 8-meter block and calculates a mathematically smooth average, giving you highly detailed hill contours without any rough, jagged pixel edges.
* Neighbor-Fill Stitching: If the USGS database has minor missing data holes, the program utilizes an automated bilinear neighbor-averaging algorithm to patch void spaces cleanly.
* Edge and Corner Blending: It evaluates shared boundaries across adjacent map tiles. It averages heights along horizontal and vertical borders (including corners) so that your route has completely seamless tile transitions with no artificial cliffs or tears.
* Advanced Geographic Mapping: It natively handles the legacy MSTS/Open Rails Interrupted Goode Homolosine world projection system, converting raw latitude and longitude lines accurately into native game tile coordinates.
* Non-Destructive Inspection Mode: Features an `--inspect` option allowing you to scan your route, determine geographic bounding boxes, and see missing height stats without writing any modifications to disk.
* Will not process the old legacy 4km tiles.
================================================== ================
ADVANTAGES OVER DEMEX
================================================== ================
Legacy utilities like DEMEX served the community well for decades, but they are tied to an outdated era of manual data processing. SCOtopo offers several major upgrades:
* No Manual File Sourcing: DEMEX requires you to manually browse external websites, download individual GeoTIFF or .dem files, extract them, and index them. SCOtopo handles data hunting and streaming completely over HTTP natively.
* Only downloads the data needed, not massive GeoTiffs, cutting downloads to more than half the size of doing it via the old method.
* Modern OS Compatibility: DEMEX relies on older Win32/VB6 frameworks that struggle on modern 64-bit Windows environments. SCOtopo is built on modern .NET core architectures utilizing standard, updated GDAL engine wrappers.
* Dynamic Data Resolution: DEMEX is usually constrained to a single file resolution per build pass. SCOtopo actively blends multiple resolutions (1m and 1/3 arc-second) into a single coordinate grid on the fly.
* Automatic Patch Math Alignment: While DEMEX can sometimes introduce tile gaps or require manual layout tweaking, this tool directly calculates and updates the complex internal binary token scales (TokenTerrainSampleFloor / TokenTerrainSampleScale) inside the .t files automatically.
================================================== ================
KNOWN LIMITATIONS
================================================== ================
Please keep the following restrictions in mind when using the tool:
* USGS Territory Restriction Only: The program is hardcoded to query the United States Geological Survey (TNM Access API). As a result, it only supports terrain generation within the United States and cannot build international routes.
* Hardcoded Dataset Dependencies: It relies strictly on the "Digital Elevation Model (DEM) 1 meter" and the "National Elevation Dataset (NED) 1/3 arc-second" datasets. If neither dataset covers the targeted area, generation fails.
* Internet & API Performance Reliance: Because the tool streams live data directly via GDAL virtual file systems (/vsicurl/), it requires a stable internet connection. Large routes can face long processing times or timeouts if the USGS servers experience high latency.
* Fixed Tile Layout Grid: The mathematical engine is locked to a grid size of 256x256 int16 samples and an 8.0-meter post-spacing format. It will not adapt to alternative grid formats or different terrain sample scales automatically.
================================================== ================
================================================== ================
While still a work in progress - I've managed my first successful run - a major milestone. As far as I can tell - it created a perfect terrain mesh for the desired area - an area I am quite familiar with as I've been building/modifying a route in this area for many years.
Attached is my test - so you can see what 1m buys you - no track - so if interested - just open in TSRE.
Regards,
Scott
TopoTest.zip





Comment