Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
benediktschwab committed Nov 7, 2022
1 parent e1eca47 commit db1da74
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 34 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,18 @@ Additionally, [awesome-openx](https://github.com/b-schwab/awesome-openx#datasets
## :rocket: Usage

In order to use r:trån you need JDK 11 or later.
Download the executable jar at the [releases section](https://github.com/tum-gis/rtron/releases) and let it run:
Download the prebuilt JAR executable from the [releases section](https://github.com/tum-gis/rtron/releases/latest) and make sure that you have at least a JVM 11.
Run r:trån to ...

```bash
# for transforming OpenDRIVE datasets to CityGML
java -jar rtron.jar opendrive-to-citygml ./input-opendrive-datasets ./output-citygml-datasets
# … validate OpenDRIVE datasets
java -jar rtron.jar validate-opendrive ./input-opendrive ./output-reports

# for validating OpenDRIVE datasets
java -jar rtron.jar validate-opendrive ./input-opendrive-datasets ./output-validation-reports
# … transform OpenDRIVE datasets to CityGML
java -jar rtron.jar opendrive-to-citygml ./input-opendrive ./output-citygml
```

r:trån can [recursively](https://rtron.io/wiki/configuration) iterate over OpenDRIVE datasets contained in the input directory.
R:trån recursively iterates over your OpenDRIVE input datasets and creates the same directory structure for the output folder.

## :construction_worker: Building

Expand Down Expand Up @@ -101,7 +103,7 @@ r:trån is distributed under the Apache License 2.0. See [LICENSE](LICENSE) for

## :handshake: Thanks

* [AUDI AG](https://github.com/audi) for providing an awesome work environment within [SAVe:](https://save-in.digital)
* Prof. [Thomas H. Kolbe](https://www.lrg.tum.de/en/gis/our-team/staff/prof-thomas-h-kolbe/), [Bruno Willenborg](https://www.lrg.tum.de/en/gis/our-team/staff/bruno-willenborg/) and [Christof Beil](https://www.lrg.tum.de/en/gis/our-team/staff/christof-beil/) for support and feedback
* [Claus Nagel](https://github.com/clausnagel) for [citygml4j](https://github.com/citygml4j/citygml4j)
* [JetBrains](https://github.com/JetBrains) for Kotlin and their top-notch IDEs
- [Lutz Morich](https://www.linkedin.com/in/lutz-morich-in/) and [AUDI AG](https://github.com/audi) for providing an awesome work environment within *SAVe*
- Prof. [Thomas H. Kolbe](https://www.asg.ed.tum.de/en/gis/our-team/staff/prof-thomas-h-kolbe/), [Bruno Willenborg](https://www.asg.ed.tum.de/en/gis/our-team/staff/bruno-willenborg/) and [Christof Beil](https://www.asg.ed.tum.de/en/gis/our-team/staff/christof-beil/) for support and feedback
- [Claus Nagel](https://github.com/clausnagel) for [citygml4j](https://github.com/citygml4j/citygml4j)
- [JetBrains](https://github.com/JetBrains) for Kotlin and their top-notch IDEs
19 changes: 0 additions & 19 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -191,31 +191,12 @@ compileTestKotlin.kotlinOptions {
}

fun configureDokka() {
// if (COMMON_JVM_ONLY) return

subprojects {
plugins.apply("org.jetbrains.dokka")

/*val dokkaPlugin by configurations
dependencies {
dokkaPlugin("org.jetbrains.dokka:versioning-plugin:1.7.20")
}*/
}
// val dokkaOutputDir = "../versions"

tasks.withType<DokkaMultiModuleTask> {
/*val mapOf = mapOf(
"org.jetbrains.dokka.versioning.VersioningPlugin" to
"""{ "version": "${Project.version}", "olderVersionsDir":"$dokkaOutputDir" }"""
)
outputDirectory.set(file(projectDir.toPath().resolve(dokkaOutputDir).resolve(Project.version)))
pluginsMapConfiguration.set(mapOf)*/
}

/*rootProject.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin> {
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension>().ignoreScripts = false
}*/
}

configureDokka()
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Configuration.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
object Project {
const val name = "rtron"
const val group = "io.rtron"
const val version = "1.2.2"
const val version = "1.3-SNAPSHOT"
}

object ProjectComponents {
Expand Down
3 changes: 0 additions & 3 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ object DependencyVersions {
const val kotlinLogging = "3.0.3"
const val slf4jSimple = "2.0.3"

// documentation libraries
//const val orchid = "0.21.1"

// object creation libraries
const val kotlinxSerializationJson = "1.4.1"
const val kaml = "0.49.0"
Expand Down
1 change: 1 addition & 0 deletions rtron-cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ application {
tasks {
named<ShadowJar>("shadowJar") {
mergeServiceFiles()
archiveFileName.set("${Project.name}-${Project.version}.${this.archiveExtension.get()}")
}
}
2 changes: 1 addition & 1 deletion rtron-cli/src/main/kotlin/io/rtron/cli/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ class MainCommand : CliktCommand(name = "rtron") {
* @param args arguments of the cli
*/
fun main(args: Array<String>) = MainCommand()
.versionOption("1.2.2")
.versionOption("1.3-SNAPSHOT")
.subcommands(SubcommandValidateOpendrive(), SubcommandOpendriveToCitygml())
.main(args)

0 comments on commit db1da74

Please sign in to comment.