fmeobjects.FMERasterTools.calculateDEMDistance

FMERasterTools.calculateDEMDistance(line, band)

Performs a calculation of the distance between a vector line and a raster DEM.

The line parameter is the input vector line. Having fewer vertices on the input line will improve the performance of this function but may decrease the accuracy of the data.

The band parameter must be a numeric Digital Elevation Model (DEM) without a palette.

The output band will also be a DEM containing smaller values where the distance from the source DEM elevations is less(darker areas) and larger values where the distance between the source DEM elevations is greater(lighter areas).

The line must be in the same coordinate system as the raster.

Parameters:
  • line (FMELine) – Input vector line.

  • band (FMEBand) – Band object. It must be a numeric Digital Elevation Model(DEM) without a palette.

Return type:

FMEBand

Returns:

The band after calculating DEM distance.

Raises:

FMEException – An exception is raised if an error occurred.