Skip to main content
Solved

Tag touching pairs of endpoints?

  • Aug 25, 2020 8:11 AM UTC
  • 5 replies
  • 108 views

aron
Enthusiast
Forum|alt.badge.img+16

I would like to ad identifiers to pairs of "touching" endpoints. So if two endpoints touch (or are within a given buffer) they are to be tagged with an identifier that is unique to this pair. Lets say that the first two touching endpoints both are tagged with 1 (or A), the next pair with 2 (or B) and so on. How can I achieve this?

Best answer by david_r

Hi @david_r​,

 

I have looked at TopologyBuilder but I found no way to ad the same identifier to a pair of nodes. I know one can collect info about the neighbouring objects, but that does not really help me, I would like both end nodes to have the same unique identifier.

 

But to be honest I find the TopologyBuilder quite hard to understand, so there might be some aspect I have missed.

In the TopologyBuilder advanced parameters, set Generate from = End nodes only.

On the output port Edge, look at the attributes _from_node and _to_node, they will contain the common ID where lines meet.

 

View original
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

david_r
Celebrity
  • Aug 25, 2020 8:27 AM UTC

Have you looked at the TopologyBuilder? Would that fit?


aron
Enthusiast
Forum|alt.badge.img+16
  • Author
  • Enthusiast
  • Aug 25, 2020 8:37 AM UTC

Have you looked at the TopologyBuilder? Would that fit?

Hi @david_r​,

 

I have looked at TopologyBuilder but I found no way to ad the same identifier to a pair of nodes. I know one can collect info about the neighbouring objects, but that does not really help me, I would like both end nodes to have the same unique identifier.

 

But to be honest I find the TopologyBuilder quite hard to understand, so there might be some aspect I have missed.


david_r
Celebrity
  • Best Answer
  • Aug 25, 2020 8:56 AM UTC

Hi @david_r​,

 

I have looked at TopologyBuilder but I found no way to ad the same identifier to a pair of nodes. I know one can collect info about the neighbouring objects, but that does not really help me, I would like both end nodes to have the same unique identifier.

 

But to be honest I find the TopologyBuilder quite hard to understand, so there might be some aspect I have missed.

In the TopologyBuilder advanced parameters, set Generate from = End nodes only.

On the output port Edge, look at the attributes _from_node and _to_node, they will contain the common ID where lines meet.

 


aron
Enthusiast
Forum|alt.badge.img+16
  • Author
  • Enthusiast
  • Aug 25, 2020 9:22 AM UTC

Hi @david_r​,

 

I have looked at TopologyBuilder but I found no way to ad the same identifier to a pair of nodes. I know one can collect info about the neighbouring objects, but that does not really help me, I would like both end nodes to have the same unique identifier.

 

But to be honest I find the TopologyBuilder quite hard to understand, so there might be some aspect I have missed.

Thanks @david_r​ ! Will try this. The TopologyBuilder sure is one advanced (and mindboggling) transformer :)


david_r
Celebrity
  • Aug 25, 2020 12:01 PM UTC

Hi @david_r​,

 

I have looked at TopologyBuilder but I found no way to ad the same identifier to a pair of nodes. I know one can collect info about the neighbouring objects, but that does not really help me, I would like both end nodes to have the same unique identifier.

 

But to be honest I find the TopologyBuilder quite hard to understand, so there might be some aspect I have missed.

Indeed, it is very powerful. For more information I can recommend the documentation, as well as the tutorial series here, in particular the first example: https://community.safe.com/s/article/working-with-networks-topology-and-networktransfor