tum-gis / rtron

r:trån is a road space model transformer library for OpenDRIVE, CityGML and beyond
https://rtron.io
Apache License 2.0
47 stars 12 forks source link

support OpenDRIVE header offset #19

Closed benediktschwab closed 1 year ago

benediktschwab commented 1 year ago

The offset values set in the OpenDRIVE header should be considered when transforming to CityGML.

aminissn commented 1 year ago

Just one small note: the projection string coming from the current version of SUMO misses one element, namely "+type=crs" which is currently missing in the generated OpenDrive file. This should, however, be fixed in the next SUMO release. (see #12288 for details)

benediktschwab commented 1 year ago

Since f1347661, the offset values are considered starting from OpenDRIVE v.1.5 as this feature was introduced by ASAM for this version. For a dataset of an earlier version, an offset can be added as an argument in the CLI.

@aminissn: Currently, rtron is not supporting geospatial coordinate reprojections, which could be handled by a library like proj4j. It only resolves the offsets (either provided in the header or via CLI), and an EPSG code needs to be supplied to georeference the CityGML dataset (e.g.: srsName="urn:ogc:def:crs:EPSG::25832"). Once I tested to derive the EPSG code from the PROJ string (see here), but the results were ambiguous and not satisfactory back then.