Question

LengthCalculator in 3D

  • 14 October 2013
  • 2 replies
  • 12 views

Is there a known issue with the LengthCalculator transformer when it comes to 3D? I am getting the same (2D) results even if I select 3 in Length Dimension.

 

 

These are linear features I am talking about (read from a shapefile) that definitely have a 3D coordinate (it shows up in Data Inspector). I don't know if it matters but these features have measures enabled on them as well, all being nil.

 

 

I am running FME Desktop 2013 SP3 x64.

2 replies

Userlevel 2
Badge +17
Hi,

 

 

In my simple testing, the LengthCalculator calculated correct 2D and 3D lengths. Input line: start (0, 0, 0) to end (0, 1, 1) Results: 2D length = 1 3D length = 1.4142135623731   When z-coordinates of all vertices of a line are the same value, 3D length will be equal to 2D length. Did you check z-coordinates of the line vertices?

 

 

Takashi
Badge
Hi

 

 

If we got a 2d-line and would like to calculate the "true geodetic length" for the entire line and at the same time drape it onto a surface/DEM - how can we compute the length?

 

 

Thanks

 

 

andre

Reply