Skip to content

Commit 7420a73

Browse files
added some opendrive 18 bindings
1 parent 4975a72 commit 7420a73

File tree

3 files changed

+57
-1
lines changed

3 files changed

+57
-1
lines changed

rtron-readerwriter/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ xjcGeneration {
9090
bindingFile = "src/main/resources/schemas/opendrive17.xjb"
9191
javaPackageName = "org.asam.opendrive17"
9292
}
93+
94+
/*create("opendrive18") {
95+
schemaDir = "opendrive18/"
96+
schemaRootDir = "$projectDir/src/main/resources/schemas/"
97+
bindingFile = "src/main/resources/schemas/opendrive18.xjb"
98+
javaPackageName = "org.asam.opendrive18"
99+
}*/
93100
}
94101
}
95102

rtron-readerwriter/src/main/kotlin/io/rtron/readerwriter/opendrive/version/OpendriveVersion.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ enum class OpendriveVersion(val rev: Pair<Int, Int>) {
5858
V1_5(Pair(1, 5)),
5959

6060
/**
61-
* OpenDRIVE version 1.6.1 released on the 04 March 2021 by ASAM e.V.
61+
* OpenDRIVE version 1.6.1 released on the 04 Mar 2021 by ASAM e.V.
6262
*/
6363
V1_6(Pair(1, 6)),
6464

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!--
4+
~ Copyright 2019-2024 Chair of Geoinformatics, Technical University of Munich
5+
~
6+
~ Licensed under the Apache License, Version 2.0 (the "License");
7+
~ you may not use this file except in compliance with the License.
8+
~ You may obtain a copy of the License at
9+
~
10+
~ http://www.apache.org/licenses/LICENSE-2.0
11+
~
12+
~ Unless required by applicable law or agreed to in writing, software
13+
~ distributed under the License is distributed on an "AS IS" BASIS,
14+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
~ See the License for the specific language governing permissions and
16+
~ limitations under the License.
17+
-->
18+
19+
<jaxb:bindings xmlns="https://jakarta.ee/xml/ns/jaxb" version="3.0" xmlns:jaxb="https://jakarta.ee/xml/ns/jaxb" xmlns:xs="http://www.w3.org/2001/XMLSchema">
20+
21+
<globalBindings underscoreBinding="asCharInWord">
22+
<javaType xmlType="xs:integer" name="java.lang.Integer"/>
23+
</globalBindings>
24+
25+
<bindings schemaLocation="opendrive18/OpenDRIVE_Core.xsd" version="1.8">
26+
<schemaBindings>
27+
<package name="org.asam.opendrive18"/>
28+
</schemaBindings>
29+
30+
<bindings node="//xs:schema//xs:simpleType[@name='e_unitSlope']/xs:restriction/xs:enumeration[@value='%']">
31+
<typesafeEnumMember name="PERCENT"/>
32+
</bindings>
33+
</bindings>
34+
35+
<bindings schemaLocation="opendrive18/OpenDRIVE_lane.xsd" version="1.8">
36+
<bindings node="//xs:complexType[@name='t_road_lanes_laneSection_lcr_lane_roadMark']">
37+
<bindings node=".//xs:attribute[@name='type']">
38+
<property name="typeAttribute"/>
39+
</bindings>
40+
</bindings>
41+
42+
<bindings node="//xs:complexType[@name='t_road_lanes_laneSection_lr_lane_access']">
43+
<bindings node=".//xs:attribute[@name='restriction']">
44+
<property name="restrictionAttribute"/>
45+
</bindings>
46+
</bindings>
47+
</bindings>
48+
49+
</jaxb:bindings>

0 commit comments

Comments
 (0)