Skip to main content
Solved

How to generate vertical lines with same X, Y but difference in Z for two points?


Forum|alt.badge.img

I have 2 datasets of points created from the vertex extractor transformer. The 2 points have the same X, Y coordinate but differ in Z. I want to create vertical lines between these 2 points. I think this should be possible using the vertex creator transformer with 2 transformers after each other but can’t get it to work.

Best answer by ebygomm

You can use a LineBuilder to do this, extract the coordinates of the points into attributes if they're not already stored as attributes then use the x and y fields as a group by

image

View original
Did this help you find an answer to your question?

5 replies

ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • Best Answer
  • March 14, 2023

You can use a LineBuilder to do this, extract the coordinates of the points into attributes if they're not already stored as attributes then use the x and y fields as a group by

image


Forum|alt.badge.img
  • Author
  • March 15, 2023

Thank you. I can't find the ''Group By Mode'' in this transformer. How can I apply this setting?

 


ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • March 15, 2023
sibe wrote:

Thank you. I can't find the ''Group By Mode'' in this transformer. How can I apply this setting?

 

Unless it has changed on more recent versions, if you tick Group Processing you should see the option

image


Forum|alt.badge.img
  • Author
  • March 15, 2023

I don't see the option. For me there is a ''Complete groups'' parameter at that spot.


Forum|alt.badge.img
  • Author
  • March 15, 2023

But it works, which is great :) However, it won't process vertical lines at intersections. Do you have an idea why and how I can generate vertical lines at those spots too? Multiple vertices at those intersections may have something to do with it? I included an example in the picture.


Reply


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