Skip to main content

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 😎 and so on. How can I achieve this?

Have you looked at the TopologyBuilder? Would that fit?


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.


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.

 


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 :)


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


Reply