Closed max-zipfl closed 2 years ago
Hi, ad.map.point provides different transformations between coordinate frames. There are different overloads of (to/fromGeo, to/fromENU, to/fromECEF). See map-doc. Indeed the geo coordinates are here even not the actual input format since it is transformed by toENU. So you can just skip the Geo coordinates and immediately enter
resultObject.enuPosition.centerPoint.x = ad.map.point.ENUCoordinate(your-x-value)
resultObject.enuPosition.centerPoint.y = ad.map.point.ENUCoordinate(your-y-value)
resultObject.enuPosition.centerPoint.z = ad.map.point.ENUCoordinate(your-z-value)
For some more details on the used coordinate systems look here.
If you load an open drive map file, the projection string is internally already considered when doing the coordinate system transformations.
Hope this helps. Bernd.
sorry for the late reply - thank you for the detailed explanation, it helped a lot.
Best Max
Hello, I am trying to understand the python example of map_integration. There, the objects are initialized with geodetic coordinates (ENU). Is it possible to define objects with x and y? How would an example look like?
`
`
If this is not possible, is there an option to read the projection string from an opendrive file using this library with python. I have already found the mapdata reference, but haven't found a useful way to retrieve it - without rebuilding the whole factorypipeline.
Thanks!