fmeobjects.FMEReprojector.reprojectLength

FMEReprojector.reprojectLength(startX, startY, finishX, finishY)

This reprojects the 2D length of the given line, returning the length in ground units. If the coordinate systems are not set or invalid, this will return an error, and results will be set to the original length.

Parameters:
  • startX (float) – The x coordinate of the starting point.

  • startY (float) – The y coordinate of the starting point.

  • finishX (float) – The x coordinate of the starting point.

  • finishY (float) – The y coordinate of the starting point.

Return type:

float

Returns:

The length of the reprojection in ground units.

Raises:

FMEException – An exception is raised if an error occurred.