Skip to main content

Hello

I would like to put points on a single line to use the named transformer and get the length as a new attribute, but it seems that the feature merger used in this example

https://gis.stackexchange.com/questions/30518/fme-calculate-distance-of-point-along-a-line

does not work on Esri Shapefile format, I don't know why.

Any idea on how to fix points on a curve, while keeping each point as a line/different entity in the visual preview ?

Thanks

 

Edit: MeasureGenerator does not work as the curve has much more vertex than needed and they can't really be sorted

Are you able to provide some sample data? I'm not sure I understand why a process which generates a measure on the line then and then a point on line overlayer to transfer the measure to the point isn't an option here


Are you able to provide some sample data? I'm not sure I understand why a process which generates a measure on the line then and then a point on line overlayer to transfer the measure to the point isn't an option here

Unfortunately I am nto allowed to provide that data, and I do not know how to create a sample on my own.

As for the measures on the line, I do not want to it for each point, and I have no way of separating them as there isn't enough information provided for it. The lines are constitued of multiple verteces but I only want to calculate the length from the start of a single line created with a LineCombiner using them. The problem is that the number of lines from the beginning may vary, but the program must stay the same, and I can't find a way to allow dynamically this number to the uni-line feature that is output by the LineCombiner.

 

IE

So I have the output of a static calculator with only the count, a line from a Line combiner , and I can't merge the result of the first one into the second one

 

It sounds confusing, but I do not know how to explain it otherwise, sorry


Have you looked into the AnchoredSnapper or PointOnLineOverlayer?

https://www.safe.com/transformers/anchored-snapper/

https://www.safe.com/transformers/point-on-line-overlayer/

 

The issue is unlikely to be the format of the data - when FME reads data in, i'ts converted into FMEs own format. So after a reader it's all the same format (points,lines,poly,raster,pointcloud etc)


Reply