Enrich DEM with rail

Enrich DEM with railways

Overview

➡️ Insert altimetric points coming from railways into the input DEM. This script works with two input layers:

  • Digital Elevation Model (DEM) to be enriched

  • Railways

And four parameters:

  • Railroads right-of-way (railWidth): Name of column where the railroad right-of-way is stored (Mandatory)

  • Rail platform height (hRail): Railways platform height (Optional). Default value = 0.5m

  • Input SRID (inputSRID): SRID of the input tables (Optional)

  • Output suffix (outputsuffix): suffix applied at the end of the resuling table name (Optional). If not specified, “ENRICHED” is applied

In the schema below, orange points will be inserted into the DEM. d2, d3 and d4 are deduced from the information provided in the parameter railWidth, using the following formula:

  • d2 = (railWidth - 5.5)/2

  • d3 = (railWidth - 4)/2

  • d4 = (railWidth)/2

Railways platform

Arguments

Mandatory inputs

inputDEMInput DEM table

Name of the input DEM table to be enriched

Type: String

inputRailInput railways table

Name of the input railways table

Type: String

railWidthRailways width

Name of column where the railways width is stored

Type: String

Optional inputs

hRailRailways platform height

Railways platform height (in meters) (Optional)

Type: double

Default: 0.5

inputSRIDInput SRID

🌍 SRID of the input tables. 🛠 If not specified, the SRID from DEM layer is applied. If DEM has no SRID, 0 is applied

Type: Integer

outputsuffixOutput suffix

Suffix applied at the end of the resulting table name 🛠 If not specified, “ENRICHED” is applied

Type: String

Default: ENRICHED

Output

resultResult output string

This type of result does not allow the blocks to be linked together.

Type: String