Skip to main content

Hello,

 

Let's assume that I have a series of 2D-points A1, A2, A3, A4, ... An.

Can anyone tell me how to create a measure between such points so that:

- the measure for A1 is 0

- the measure for A2 is d(A1,A2) i.e. the distance between A1 and A2

-the measure for A3 is d(A1,A2) + d(A2,A3)

- the measure for A4 is d(A1,A2) + d(A2,A3) + d(A3,A4)

and so one?

Thanks,

A possible way is to use the LineBuilder to create a single line from the points, the MeasureGenerator to add measure to every vertex of the line, then the Chopper to decompose the line into individual vertex points (i.e. the original points) having measure.


A possible way is to use the LineBuilder to create a single line from the points, the MeasureGenerator to add measure to every vertex of the line, then the Chopper to decompose the line into individual vertex points (i.e. the original points) having measure.

@takashi

Thanks for your answer. I don't know why but I did tried what you suggest even before posting my question. One concern that I had was the fact that no measure was returned when using the MeasureGenerator Transformer. What did I do wrong in my workspace?

 

 


A possible way is to use the LineBuilder to create a single line from the points, the MeasureGenerator to add measure to every vertex of the line, then the Chopper to decompose the line into individual vertex points (i.e. the original points) having measure.

I think every vertex of the resulting line should have measure named "Length".

Check if the vertices have measure with the Feature Information window in FME Data Inspector.


I think every vertex of the resulting line should have measure named "Length".

Check if the vertices have measure with the Feature Information window in FME Data Inspector.

@takashi

I just figured out that an LRS-measure does not appeared as an attribute but instead like a coordinate value.

 

Thanks for ypour help