Skip to main content
Solved

Repeating the same process on each group of features

  • February 22, 2024
  • 5 replies
  • 57 views

yagami9
Contributor
Forum|alt.badge.img+6

I’m trying to repeat the same process on each group of features that represent each door (every door consists of many features having the same value of door_id) . 

on the other hand , the process that i want to create is detecting that line on green for each door and drawing it using the LineBuilder  .

So for exemple ,

if in my input i have : 200 features , every 30 or 40 features share the same door_id value (so there are say 6 doors in total )

my output : 6 features (each feature is that green line , with the attribute door_id)

 

Best answer by geomancer

There are many ways to do this. One way is to use a VertexCounter followed by a VertexRemover.

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

geomancer
Evangelist
Forum|alt.badge.img+60
  • Evangelist
  • February 22, 2024

I'm surprised your doors are spread over many features for each door. Hopefully you can remedy this using a LineBuilder, grouping by door_id. If this works, it creates a feature for each door, and then the green lines consist of the first and last points of each door.

If the LineBuilder doesn't give the desired result, you may want to look at your import, maybe there is a way to import each door as one feature.


yagami9
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • February 22, 2024

it creates a feature for each door, and then the green lines consist of the first and last points of each door.

 

Hello @geomancer 

how would i get the first and last point of each door after using LineBuilder to merge the features of each door into one line?


geomancer
Evangelist
Forum|alt.badge.img+60
  • Evangelist
  • Best Answer
  • February 22, 2024

There are many ways to do this. One way is to use a VertexCounter followed by a VertexRemover.

 


yagami9
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • February 22, 2024

@geomancer Thanks a looot ! It works !


geomancer
Evangelist
Forum|alt.badge.img+60
  • Evangelist
  • February 22, 2024

Good to know, thanks for the feedback 😃