Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenDrive with Georeference in UTM Coordinates and offset #18

Open
TKeutgens opened this issue Apr 30, 2024 · 2 comments
Open

OpenDrive with Georeference in UTM Coordinates and offset #18

TKeutgens opened this issue Apr 30, 2024 · 2 comments

Comments

@TKeutgens
Copy link

Dear Commonroad Team,

I'm trying to import an OpenDRIVE file that contains a Georeference in UTM with an offset. Below is an example.

<geoReference><![CDATA[+proj=utm +zone=32 +datum=WGS84 +units=m +no_defs +type=crs]]></geoReference>
<offset x="297133.4" y="5623440.5" z="0" hdg="0"/>

Unfortunately the conversion to CommonRoad and Lanelet does not work properly. The resulting lat and lon coordinates are: lat="-50.22711947744166" lon="-2.185895728757027".

@TKeutgens
Copy link
Author

I have isolated the problem. It seems that somewhere in the code the offset is being subtracted. However, my interpretation of the OpenDRIVE standard is that the offset must be added. https://publications.pages.asam.net/standards/ASAM_OpenDRIVE/ASAM_OpenDRIVE_Specification/latest/specification/08_coordinate_systems/08_05_geo_referencing.html

grafik

Could you lead me to the best place in the code to fix the issue?

@smaierhofer
Copy link
Contributor

I think the offset is used here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants