Skip to main content
Question

Trim the lines


thirug
Forum|alt.badge.img

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

pallegama
Contributor
Forum|alt.badge.img+8
  • Contributor
  • October 9, 2017

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


dustin
Influencer
Forum|alt.badge.img+30
  • Influencer
  • October 9, 2017

@thirug This should give you the results you want


thirug
Forum|alt.badge.img
  • Author
  • October 11, 2017
dustin wrote:

@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

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings