In order to run the r:trån scripts in deployment environments, kscript needs to be installed. kscript provides enhanced scripting support for Kotlin and is capable of executing the *.kts scripts contained in this directory.
curl -s "https://get.sdkman.io" | bash # install sdkman source "$HOME/.sdkman/bin/sdkman-init.sh" # add sdkman to PATH sdk install java # install java sdk install kotlin # install Kotlin sdk install kscript # install kscript
Once the environment is ready, the r:trån scripts can be executed:
# download the script ... curl https://raw.githubusercontent.com/tum-gis/rtron/rtron-main/src/main/resources/scripts/convert-opendrive-to-citygml2-simple.kts # and simply execute it (dependencies are resolved automatically) kscript ./convert-opendrive-to-citygml2-simple.kts