This tool converts OpenDRIVE (XODR) files into GeoJSON format, making it easier to work with road and traffic data in GIS systems and other geo-based applications.
- Java 17 or higher must be installed.
- The fat JAR file of the converter (
vcs-odr-converter-1.0.0.jar
) must be available.
-
Clone or download the project from GitHub.
-
Build the fat JAR (if it’s not already available):
- Using Gradle (if a build setup is present):
./gradlew shadowJar
- The JAR will be generated under
build/libs/vcs-odr-converter-1.0.0.jar
.
- Using Gradle (if a build setup is present):
-
Alternatively, download the fat JAR from the Releases page on GitHub.
To convert an OpenDRIVE file to GeoJSON, run the program from the command line with the following syntax:
java -jar vcs-odr-converter-1.0.0.jar <input.xodr> <output_folder>
Parameters:
<input.xodr>
: Path to the input file in OpenDRIVE format.<output_folder>
: Target folder for the generated GeoJSON file.
java -jar vcs-odr-converter-1.0.0.jar /path/to/yourfile.xodr /path/to/output_folder
This example reads the file yourfile.xodr
and saves the GeoJSON output in /path/to/output_folder
.
This project is licensed under the MIT License.
Owner: virtualcitysystems GmbH 2024