Home » railML newsgroups » railML.infrastructure » Export linear location information for switch tip/left/right branch and crossings
Export linear location information for switch tip/left/right branch and crossings [message #3221] Fri, 22 March 2024 16:16 Go to previous message
heidrun.jost@thalesgroup. is currently offline  heidrun.jost@thalesgroup.
Messages: 5
Registered: December 2022
Junior Member
Dear all,

we have a question for modelling location information at points and crossings.

For insertion of a TemporarySpeedRestriction starting at a point or crossing we need to export the point/crossing extensions:

[BILD]

In our model the tip-branch, left-branch and right-branch are not engineered as track elements and therefore they cannot be exported as rail3:track elements.

Our current solution looks like this:
  <switchIS id="Dhk3FD1ZZsZZfKdMmH8xO7V9">
     <name name="6" language="en"/>
     <spotLocation id="SL_Dhk3FD1ZZsZZfKdMmH8xO7V9" netElementRef="Z3GkdhHfEBn3Xvh6bZZpx2V9" intrinsicCoord="0">
      <linearCoordinate positioningSystemRef="lpsID_23" measure="31410"/>
     </spotLocation>
     <leftBranch netRelationRef="Z3GkdhHfEBn3Xvh6bZZpx2V9_VyATIZHrOBtcgXQ7DBI5Cfa"/>
     <rightBranch netRelationRef="Z3GkdhHfEBn3Xvh6bZZpx2V9_Z3q46YPEowm4bZHzS4G2Ysl8"/>
  </switchIS>

Our solution is to add linear location information for each point branch to the export. The implicit association between the linear location and the tip-, left and right branch can be determined by the branch specific net relations.
  <switchIS id="Z7YkbysVoqh1S5aZD44nOAz8">
     <!-- tip branch /-->
     <linearLocation id="LL_T_Z7YkbysVoqh1S5aZD44nOAz8">
      <associatedNetElement netElementRef="ypQhOfgM0r7fWvQ4mjsVL9" intrinsicCoordBegin="1" intrinsicCoordEnd="0.9" keepsOrientation="true">
       <linearCoordinateBegin positioningSystemRef="lpsID_91" measure="168869"/>
       <linearCoordinateEnd positioningSystemRef="lpsID_91" measure="168874"/>
      </associatedNetElement>
     </linearLocation>

     <!-- left branch /-->
     <linearLocation id="LL_L_Z7YkbysVoqh1S5aZD44nOAz8">
      <associatedNetElement netElementRef="kDAg4skv4haCdKBBnFZZyWa" intrinsicCoordBegin="0" intrinsicCoordEnd="0.1" keepsOrientation="true">
       <linearCoordinateBegin positioningSystemRef="lpsID_91" measure="168874"/>
       <linearCoordinateEnd positioningSystemRef="lpsID_91" measure="168939"/>
      </associatedNetElement>
     </linearLocation>

     <!-- right branch /-->
     <linearLocation id="LL_R_Z7YkbysVoqh1S5aZD44nOAz8">
      <associatedNetElement netElementRef="sQAouLaZHRDbYgyqEhEj4Xa" intrinsicCoordBegin="1" intrinsicCoordEnd="0.9" keepsOrientation="true">
       <linearCoordinateBegin positioningSystemRef="lpsID_91" measure="168874"/>
       <linearCoordinateEnd positioningSystemRef="lpsID_91" measure="168914"/>
      </associatedNetElement>
     </linearLocation>

     <spotLocation id="SL_Z7YkbysVoqh1S5aZD44nOAz8" netElementRef="ypQhOfgM0r7fWvQ4mjsVL9" intrinsicCoord="1">
      <linearCoordinate positioningSystemRef="lpsID_91" measure="168874"/>
     </spotLocation>
     <leftBranch netRelationRef="kDAg4skv4haCdKBBnFZZyWa_ypQhOfgM0r7fWvQ4mjsVL9"/>
     <rightBranch netRelationRef="sQAouLaZHRDbYgyqEhEj4Xa_ypQhOfgM0r7fWvQ4mjsVL9"/>
</switchIS>

Note: The determination which linear location belongs to which branch can be done be evaluating the rail3:switchIS branch net relations.
<leftBranch netRelationRef="kDAg4skv4haCdKBBnFZZyWa_ypQhOfgM0r7fWvQ4mjsVL9"/>
<rightBranch netRelationRef="sQAouLaZHRDbYgyqEhEj4Xa_ypQhOfgM0r7fWvQ4mjsVL9"/>

The tip branch can be found by comparing both netRelations and taking the netElement which is referenced in both.
The other netElement is the branch specific (left/right) net relation.

    <netRelation id="kDAg4skv4haCdKBBnFZZyWa_ypQhOfgM0r7fWvQ4mjsVL9" positionOnA="0" positionOnB="1" navigability="Both">
     <!-- tip /-->
     <elementA ref="kDAg4skv4haCdKBBnFZZyWa"/>
     <!-- left branch /-->
     <elementB ref="ypQhOfgM0r7fWvQ4mjsVL9"/>
    </netRelation>
    <netRelation id="sQAouLaZHRDbYgyqEhEj4Xa_ypQhOfgM0r7fWvQ4mjsVL9" positionOnA="1" positionOnB="1" navigability="Both">
     <!-- tip /-->
     <elementA ref="sQAouLaZHRDbYgyqEhEj4Xa"/>
     <!-- right branch /-->
     <elementB ref="ypQhOfgM0r7fWvQ4mjsVL9"/>
    </netRelation>

After finding the branch specific netElement the linearLocation can be found by comparing against linear locations associatedNetElement/netElementRef value.
right-branch linear location -> right branch km values:
 <linearLocation id="LL_R_Z7YkbysVoqh1S5aZD44nOAz8">
 <associatedNetElement netElementRef="sQAouLaZHRDbYgyqEhEj4Xa" intrinsicCoordBegin="1" intrinsicCoordEnd="0.9" keepsOrientation="true">

First question: Is this solution correct or is there a better proposal?
Second question: We need the same for crossings. But this solution does not work for crossings.
A crossing consists of 4 netElements (upper-left, lower-left, upper-right and lower-right).
The netRelations for crossings (and switchable crossings) are provided via straight branch and turning branch netRelations.
It is not possible to find out based on these netRelations, which netElement belongs to upper-left, lower-left, upper-right and lower-right.

Best regards,
--
Heidrun Jost
Data Manager TMS Norway
Transportation Systems
Thales Deutschland GmbH

Phone: +49 (0) 30 688306 423
Schützenstr. 25 10117 Berlin Germany
 
Read Message
Read Message
Previous Topic: [railML3] Positioning approach
Next Topic: [railML 3] railway signal modeling
Goto Forum:
  


Current Time: Thu May 09 15:19:58 CEST 2024