I’m building a GIS app and wanted to add a feature to display the lat lon coordinates of my camera pivot in real-time.
This is how I setup my interaction:
- Created a Data Table.
- Added a EntitySetProperty action to it.
- I set its target to a text entity.
- Its start_expr is set to dt://CamPivot/@position.
My text entity is updated every .1 second and the 3D coordinates are displayed with no issues (Looks pretty cool ).
That being said, these are not so relevant for the end user in my case. It would be awesome if I could somehow convert these coordinates to lat lon. Found a couple of formulas online but it’s usually to do the opposite.
I’m supposing that I would need at least 2 anchor dummies placed at different locations on my 3D environment containing the actual lat long coordinates information. And then write an expression to compute the lat long coordinates of my camera pivot referenced to the anchor dummies.
Let me know if you have any clues on how this can be achieved.