Skip to main content

I have a layer that contains 2 point line features i.e. start and end only, and I want to convert the start and end to points but have a count that keeps the parts in order. For example the start of the first line has count of 1 and the end of that line a count of 2, then the next line, start point would be 3 and end point would be 4. 

Each line has an ID so was thinking to try and group the points by line ID and then apply the count but can’t get the grouping to work as expected.

 

 

 

From the Snippers, why not just use AttributeCreator with Adjacent Feature Processing to increment +2 for each Feature Point output?


 

 


If you apply the count before you snip the lines to points, you can then just calculate a vertex count from that count

@Value(_count)*2 for the start points and @Value(_count)*2+1 for the end points


Something like this:

 


Thanks ​@bwn , ​@geomancer and ​@ebygomm 

I went with ​@ebygomm response but with a minor change @Value(_count)*2-1 for the start points and @Value(_count)*2 for the end points


Reply