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
50 stars 12 forks source link

Objects in CityGML and 3DCityDB should have the same gml_id #3

Closed joergsi closed 4 years ago

joergsi commented 4 years ago

When working with CityGML and 3DCityDB simoultaneously it is helpful to have correspondent gml_ids.

benediktschwab commented 4 years ago

Hi Jörg,

the gml ids are currently generated in a random manner. This leads to completely new ids for every transformation run. I think that stable ids could be achieved by pseudo random id generations that depend on the road id and object id of an OpenDRIVE. I will have a look into that.

Best regards Benedikt

benediktschwab commented 4 years ago

Hi @joergsi ,

the CityGML ids are now generated as hash of the road object id, road id, lane id and the OpenDRIVE dataset itself. If anything is changed within the dataset, new CityGML ids are generated. Otherwise a transformation run will generate the same ids for each object as the previous run.

Best regards Benedikt

joergsi commented 4 years ago

Great! Thank you.