Feature #6441

Add country code to road and top-level header

Added by Thomas Bleher 12 months ago. Updated 7 months ago.

specification 1.5
Start date:
Due date:
% Done:



Currently a country code can only be given to signals. However, the country a road belongs to has an effect on driving even if there are no signals (example: maximum allowed speed on highways if no sign is given).

Of course the country could be determined from the geo reference, but this seems like very high effort for something that could be put into the data directly.

I propose the following addition:
  • The attribute country can be given in the <header> tag and in the <road> tag.
  • The value given in the <header> tag is the default value for the database.
  • If a <road> tag has a different country value, then it overrides the country value for this road.
  • If signals have no country value, then they take the country value from the road or the header.

This makes it possible to also model large road networks that span multiple countries.

Note: it would also be possible to handle country similar to the road type (where the type can change along the road). Then different parts of a road could be in different countries. However, this seems like overkill for this use-case.

odrSpec07.png View (23.6 KB) Marius Dupuis, 21.01.2018 19:17


#1 Updated by Marius Dupuis 12 months ago

- the "country" could become an attribute of the "road-type" tag;
- signals will inherit the country definition of the road

#2 Updated by Marius Dupuis 12 months ago

  • Category set to specification 1.5
  • Assignee set to Marius Dupuis

#3 Updated by Thomas Bleher 10 months ago

  • Project changed from OpenDRIVE - core team to OpenDRIVE
  • Category changed from specification 1.5 to specification 1.5

#4 Updated by Marius Dupuis 7 months ago

  • File odrSpec07.png View added
  • Status changed from New to Resolved
  • % Done changed from 0 to 70

I made it part of the road type definition.

Also available in: Atom PDF