Select to view content in your preferred language

Local Map type Unity to Geo Position

91
1
Friday
JanikCodes
New Contributor

Hi, I'm required to use the map type 'local' ( not global ) and I'm having problems transforming a Unity Position to a Geo coordinate.

I'm using WGS84 (aka EPSG:4326) and when I'm doing

 

_map.EngineToGeographic(_tableTransform.position);

 

 I don't get WGS84 returned but most likely the other coordinate system.

When switching to global map type it works correctly and as expected. However I'm forced to use local.

My map component & Camera is using WGS84 so why am I getting another coordinate system returned or am I missing a step?

 

0 Kudos
1 Reply
AShahbaz
Esri Contributor

What you are getting is probably in EPSG:3857 since you're using a local map and coordinates are being projected. If you need the wgs84 coordinates, you could use 

ArcGISGeometryEngine.Project

 to convert the coordinates from 3857 to 4326. You may need to cast the output of that function to ArcGISPoint to be able to use it.  

0 Kudos