Skip to content

Commit 8db8c8b

Browse files
flattening generic attribute sets as cli flag
1 parent 5108d2a commit 8db8c8b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

rtron-cli/src/main/kotlin/io/rtron/cli/SubcommandOpendriveToCitygml.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ class SubcommandOpendriveToCitygml :
156156
resultMap.toMap()
157157
}.default(Opendrive2RoadspacesParameters.DEFAULT_ROAD_OBJECT_TOP_SURFACE_EXTRUSION_HEIGHT_PER_OBJECT_TYPE)
158158

159+
private val flattenGenericAttributeSets by option(help = "Flatten generic attribute sets out")
160+
.flag()
159161
private val discretizationStepSize by option(help = "Distance between each discretization step for curves and surfaces")
160162
.double()
161163
.default(Roadspaces2CitygmlParameters.DEFAULT_DISCRETIZATION_STEP_SIZE)
@@ -299,7 +301,7 @@ class SubcommandOpendriveToCitygml :
299301
xlinkPrefix = Roadspaces2CitygmlParameters.DEFAULT_XLINK_PREFIX,
300302
identifierAttributesPrefix = Roadspaces2CitygmlParameters.DEFAULT_IDENTIFIER_ATTRIBUTES_PREFIX,
301303
geometryAttributesPrefix = Roadspaces2CitygmlParameters.DEFAULT_GEOMETRY_ATTRIBUTES_PREFIX,
302-
flattenGenericAttributeSets = Roadspaces2CitygmlParameters.DEFAULT_FLATTEN_GENERIC_ATTRIBUTE_SETS,
304+
flattenGenericAttributeSets = flattenGenericAttributeSets,
303305
discretizationStepSize = discretizationStepSize,
304306
sweepDiscretizationStepSize = sweepDiscretizationStepSize,
305307
circleSlices = circleSlices,

0 commit comments

Comments
 (0)