fhwedel-hoe / OpenRoadEd

OpenRoadEd is a simple application designed to create both logical (OpenDRIVE standard) and geometrical (OpenSceneGraph) descriptions of road networks.
Other
154 stars 64 forks source link

Error in Opendrive file (.xodr) handling #8

Closed ebadi closed 3 years ago

ebadi commented 3 years ago

As it is already known, even the sample opendrive file cannot be opened by tools correctly. image After a few hours of debugging I noticed that the road file that is opened by OpenRoadEd doesn't look like the same as the road that is saved by the same version of the OpenRoadEd and I suspect that it has either sth to do with loading or saving these files since the values for many parameters are not identical in these two states.

Road shape that is created by OpenRoadEd: x1

The resulting OpenDrive file saved on disk test.txt

The opendrive that is loaded by OpenRoadEd: x2

fhwedel-hoe commented 3 years ago

When you brought up this issue, I looked at the values and noticed all decimal information was missing. "locale" popped into my mind. When setting locale to the C fallback explicitly, it works on my system:

cd ~/OpenRoadEd
LC_ALL=C OpenRoadEd/build/OpenRoadEd

grafik

I do not know of an equivalent workaround for this on Windows or how to force the locale from within the program. I also do not know if this is an issue within Qt or the xml processor.

ebadi commented 3 years ago

Great, another issue is now fixed. :)