Skip to main content

Hi,

I'm using this to cut a line at two specific points per row of data - line a too and from.

 

The length changes and i get bits on both sides of this line. Is there a simple way to keep the section between the cut points and ignore the rest. The section changes in size for each iteration. Sometimes the largest, sometimes smallest.

thanks

Using the CoordinateExtractor transformer, you can extract the coordinates of the line segments (index 0 = start, index -1 = end) and the points into attributes.

The start and end coordinates of the lines you want should have a matching point object.

You can use the FeatureJoiner transformer to test this.

Hope this helps.


Another way of doing this is using the "Generate list" on the the line features in the PointonLineOverlayer.

Each line segment that is cut by two points should have 2 list elements.

You can use the ListElementCounter to extract that information and a Tester to filter those line segments with 2 points.


Reply