Question

Trim the lines

  • 9 October 2017
  • 3 replies
  • 18 views

Badge

trim the cs line based on hs lines i attached screens for reference thanks in advance

.in screen before means my output and after means i need that output


3 replies

Badge

Hi @thirug

This can be achieved using different worflows in FME. Since it is difficult to provide a complete solution without looking at some sample input data, I am not sure the example (trimline.fmw attached below) I provided here is the most suitable one for you. But I think it will help you to build a suitable solution.

In this workspace, I have created few line features to represent CS and HS lines as depicted in images you provided.

In the workflow, CS and HS lines are intersected to split them into line segments at intersections and forward them to the 'Line' input of PointOnLineOverlayer transformer. Start and End points of CS line have been created by extracting start and end coordinates forward to the 'Point' port of PointOnLineOverlayer transformer. Tester_2 transformer should contain a rule to filter CS line segments.

If Start and End points overlap with any CS line segment that segment should be removed to extract the trimmed line segment.

Regards,

Priyantha

trimlines.fmw

Userlevel 3
Badge +26

@thirug This should give you the results you want

Badge

@thirug This should give you the results you want

Thanks for the Reply..

 

Its working but i have the additional features are there like as HS...the cs lines are not correctly trim the features..

 

Attach that scrren for reference

 

 

Reply