Commit 7658fc30 authored by Benedikt Kleinmeier's avatar Benedikt Kleinmeier
Browse files

In "osm2vadere.py", use ",\n" to concatenate points to avoid long lines.

Note: Long lines cause warnings in some text editors.
parent 9c108892
Pipeline #79170 failed with stages
in 112 minutes and 8 seconds
......@@ -148,7 +148,9 @@ def create_vadere_obstacles_from_points(cartesian_points):
vadere_obstacle_string = """{
"shape" : {
"type" : "POLYGON",
"points" : [ $points ]
"points" : [
$points
]
},
"id" : -1
}"""
......@@ -158,7 +160,7 @@ def create_vadere_obstacles_from_points(cartesian_points):
point_string_template = Template(vadere_point_string)
points_as_string = [point_string_template.substitute(x=x, y=y) for x, y in cartesian_points]
points_as_string_concatenated = ", ".join(points_as_string)
points_as_string_concatenated = ",\n".join(points_as_string)
vadere_obstacle_as_string = obstacle_string_template.substitute(points=points_as_string_concatenated)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment