Home » railML newsgroups » railml.infrastructure » NetRelation inconsistency for specific topology (NetRelations and NetElements problem)
NetRelation inconsistency for specific topology [message #2222] Fri, 12 July 2019 18:24 Go to next message
Fabiana Diotallevi is currently offline  Fabiana Diotallevi
Messages: 12
Registered: October 2018
Junior Member
Dear all,

the topology shown in the image attached (but it is not the only case!), seems to bring to an inconsistency in the netRelation definition.

/forum/index.php?t=getfile&id=50&private=0
In particular, if we consider the netRelation joining netElements ne_02 and ne_03 (upper and lower central tracks), both of the following relations could be exported:

<netRelation id="nr_0203" positionOnA="0" positionOnB="0" navigability="None">
<elementA ref="ne_02"/>
<elementB ref="ne_03"/>
</netRelation>

<netRelation id="nr_0203" positionOnA="1" positionOnB="1" navigability="None">
<elementA ref="ne_02"/>
<elementB ref="ne_03"/>
</netRelation>

There is no way to decide which one is the preferred one, and I can't export both of them because they have the same id and railML does not allow for a duplicate.

Is there a way to solve this problem?

Thanks,

f.
Re: NetRelation inconsistency for specific topology [message #2225 is a reply to message #2222] Fri, 19 July 2019 07:47 Go to previous message
Jörg von Lingen is currently offline  Jörg von Lingen
Messages: 20
Registered: March 2016
Junior Member
Dear Fabiana,

I would suggest to collect netRelations always seen from connecting point clockwise. In your case you would get

<netRelation id="nr_0203" positionOnA="0" positionOnB="0" navigability="None">
<elementA ref="ne_02"/>
<elementB ref="ne_03"/>
</netRelation>

<netRelation id="nr_0302" positionOnA="1" positionOnB="1" navigability="None">
<elementA ref="ne_03"/>
<elementB ref="ne_02"/>
</netRelation>

Regards,
Jörg von Lingen - Interlocking Coordinator
Fabiana Diotallevi wrote on 12.07.2019 18:24:
> <netRelation id="nr_0203" positionOnA="0" positionOnB="0"
> navigability="None">
> <elementA ref="ne_02"/>
> <elementB ref="ne_03"/>
> </netRelation>
>
> <netRelation id="nr_0203" positionOnA="1" positionOnB="1"
> navigability="None">
> <elementA ref="ne_02"/>
> <elementB ref="ne_03"/>
> </netRelation>
Previous Topic: [railML3] Mandatory <length> element for <track>s
Goto Forum:
  


Current Time: Tue Jul 23 20:02:55 CEST 2019