Skip to main content
Solved

Tag touching pairs of endpoints?

  • August 25, 2020
  • 5 replies
  • 37 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.

 

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
  • August 25, 2020

Have you looked at the TopologyBuilder? Would that fit?


aron
Enthusiast
Forum|alt.badge.img+16
  • Author
  • Enthusiast
  • August 25, 2020

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
  • August 25, 2020

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
  • August 25, 2020

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
  • August 25, 2020

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