Home » railML newsgroups » railML.infrastructure » Radius for straight lines
Radius for straight lines [message #234] Mon, 12 April 2010 15:31
Susanne Wunsch railML is currently offline  Susanne Wunsch railML
Messages: 0
Registered: January 2020
Hello,

how do you define "radiusChange" for straight lines?

valid but incorrect example:
<rail:radiusChange id="rc0"
pos="0.0"
radius="0"/>

invalid but correct example:
<rail:radiusChange id="rc0"
pos="0.0"
radius="INF"/>

For mathematical reasons the second variant should be preferred, but
xs:decimal doesn't support "INF" and "-INF".

http://www.w3.org/TR/xmlschema-2/#decimal

That would be possible with xs:float. But it introduces mantissa
with optional exponent. There isn't a possibility to constrain
'totalDigits' and 'fractionDigits'.

http://www.w3.org/TR/xmlschema-2/#float

The way in-between would be a union of xs:decimal with its digit
constrains and "INF".

What do you think?

Any ideas and comments appreciated...
Susanne

--
Susanne Wunsch
Schema Coordinator: railML.common
Previous Topic: Missing attributes in the element <switch>
Next Topic: Direction in radiusChange and gradientChange
Goto Forum:
  


Current Time: Tue Apr 23 16:58:11 CEST 2024