Skip to main content
Question

PointonLine Overlayer - keeping the bit you need

  • December 11, 2019
  • 2 replies
  • 18 views

Forum|alt.badge.img

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

2 replies

erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • December 11, 2019

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.


erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • December 11, 2019

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.


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