Skip to main content

Hello everyone,

I have a question regarding a workflow/tool. I work in the railway sector and would like to automatically place overhead line masts on points and then rotate them in the direction of the tracks so that they stand perpendicular to the track axis. I have an FFS file of the 3D object, a point file, and a polyline that represents the track centerline. The placement of the 3D object works perfectly, but I'm having trouble rotating the object as desired.

At the moment, I’m using the "NeighborFinder" tool to obtain the track alignment information, then the "CenterPointExtractor" tool, and finally the "3DRotator" tool to rotate the mast accordingly. I do manage to rotate the masts, but not in the correct direction so that they are perpendicular to the track axis.

Does someone has an idea how I could proceed?

Thanks in advance and best regards

 

 

I’ve done a similar workspace once (traffic signs which had to be rotated to the streets accordingly).
I split the line objects every few meters and used ‘HorizontalAngleCalculator’, then also a Neighbourfinder and added +-90 degrees depending on which side it was to the rotation.

 

How are you calculating your ‘_candidate_label_angle’? Am I missing something or could you just rotate via @Value(_candidate_label_angle)+90 to have your desired outcome?


Hi,

Thanks for your response. The Tool “HorizontalAngleCalculator” is this one that can be found in the FME Hub, right?

The  ‘_candidate_label_angle’ is calculated with the tool: NeighborFinder

 

Thanks in advance


Okay, I tested it now without the HorizontalAngleCalculator and it seems that it is working as it should.

My workflow is looking as follow:

The 3D poles are rotated/turned now as they should.

Thanks for the help


The  ‘_candidate_label_angle’ is calculated with the tool: NeighborFinder

 

Thanks in advance

Oh, I guess I’ve always overlooked that one. Still so much to learn and to find out, thank you for pointing this out!


And glad it works now, was happy to help.


Reply