Project

General

Profile

Improvement #6634

Make it clear which attributes are required and which are optional

Added by Thomas Bleher 10 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
specification 1.5
Start date:
09.10.2017
Due date:
% Done:

70%


Description

Currently it's often unclear from the specification which attributes are required and which are optional.
As an example, take the tunnel record:
  • I think s and length should be mandatory
  • Most people would probably say that the id and the type should also be mandatory
  • name, lighting and daylight could probably be optional

However, there is no indication in the standard which of these elements are in fact mandatory.

The real problem is that in the XML Schema, all attributes are marked as optional (attributes are optional by default, and are only required if they have an attribute use="required" in the schema file). So the XML schema cannot be used to determine if all required attributes are there.

I propose the following:
For OpenDRIVE 1.5, all required attributes should be marked as such in the XML Schema file. That way, xodr files can be more easily checked for correctness.

ticket6634.png View (48.7 KB) Marius Dupuis, 25.04.2018 10:39

History

#1 Updated by Marius Dupuis 10 months ago

  • Assignee changed from Marius Dupuis to Andreas Biehn

I'll assign this to my colleague who is doing the schema files.

#2 Updated by Thomas Bleher 7 months ago

  • Priority changed from Normal to High

Is a new version of the schema file already available? Just now I had a problem with an OpenDrive file by a supplier, where the <material> tag didn't contain any friction and roughness information. From the spec it is unclear which tags are optional and which are required. This really hinders interoperability.

#3 Updated by Marius Dupuis 7 months ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 10

We need to mark the attributes in the specification first and will then transfer this definition do the schema file.

#4 Updated by Marius Dupuis 7 months ago

@Andreas: let's arrange for a meeting to go through the specification.

#5 Updated by Marius Dupuis 4 months ago

There will be a new column in each attribute list indicating whether an attribute is optional. In addition, we explain this at the beginning of chapter 5:

#6 Updated by Marius Dupuis 4 months ago

  • Status changed from In Progress to Resolved
  • % Done changed from 20 to 70

Each attribute list has been updated.

Also available in: Atom PDF