<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to convert high precision location values to coordinates? in ArcGIS Maps SDK for Unity Questions</title>
    <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/how-to-convert-high-precision-location-values-to/m-p/1287459#M528</link>
    <description>&lt;P&gt;updated:&lt;/P&gt;&lt;PRE&gt;var geoPosition = arcGISMapComponent.EngineToGeographic(hit.point);&lt;/PRE&gt;</description>
    <pubDate>Thu, 11 May 2023 23:54:19 GMT</pubDate>
    <dc:creator>Jade</dc:creator>
    <dc:date>2023-05-11T23:54:19Z</dc:date>
    <item>
      <title>How to convert high precision location values to coordinates?</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/how-to-convert-high-precision-location-values-to/m-p/1287256#M523</link>
      <description>&lt;P&gt;I'm using the SampleArcGisRayCast component and I'm trying to get the coordinates (lats and longs) of the specific building that's clicked on. I managed to get their high-precision location values of them but, I don't understand how to convert them to lats and longs. Any suggestions on how to update the code in the sample to achieve this?&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 14:43:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/how-to-convert-high-precision-location-values-to/m-p/1287256#M523</guid>
      <dc:creator>navintc</dc:creator>
      <dc:date>2023-05-09T14:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert high precision location values to coordinates?</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/how-to-convert-high-precision-location-values-to/m-p/1287459#M528</link>
      <description>&lt;P&gt;updated:&lt;/P&gt;&lt;PRE&gt;var geoPosition = arcGISMapComponent.EngineToGeographic(hit.point);&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 May 2023 23:54:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/how-to-convert-high-precision-location-values-to/m-p/1287459#M528</guid>
      <dc:creator>Jade</dc:creator>
      <dc:date>2023-05-11T23:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert high precision location values to coordinates?</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/how-to-convert-high-precision-location-values-to/m-p/1287550#M532</link>
      <description>&lt;P&gt;This code kind of boosted how I understood arcGis SDK. But I have a follow-up question &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/607430"&gt;@Jade&lt;/a&gt;. I used your suggestion in the sampleArcGisRayCast component to get the coordinates of buildings. It seems the code line doesn't support both hit.point and location.Position. Any suggestion to get it working?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;if (Input.GetKey(KeyCode.LeftShift) &amp;amp;&amp;amp; Input.GetMouseButtonDown(0))
		{
			RaycastHit hit;
			Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);

			if (Physics.Raycast(ray, out hit))
			{
				var arcGISRaycastHit = arcGISMapComponent.GetArcGISRaycastHit(hit);
				var layer = arcGISRaycastHit.layer;
				var featureId = arcGISRaycastHit.featureId;
				
				DumpToConsole(arcGISRaycastHit.layer);
				DumpToConsole(arcGISRaycastHit);

				if (layer != null &amp;amp;&amp;amp; featureId != -1)
				{
					var geoPosition = arcGISMapComponent.EngineToGeographic(hit.point);
					
					var offsetPosition = new ArcGISPoint(geoPosition.X, geoPosition.Y, geoPosition.Z + 200, geoPosition.SpatialReference);
					var rotation = arcGISCamera.GetComponent&amp;lt;ArcGISLocationComponent&amp;gt;().Rotation;
					var location = canvas.GetComponent&amp;lt;ArcGISLocationComponent&amp;gt;();
					location.Position = offsetPosition;
					location.Rotation = rotation;

// Your code snip
					ArcGISPoint latLong = arcGISMapComponent.View.WorldToGeographic(hit.point);
				}
				else
				{
					popUp.SetActive(false);
				}
            }
            

		}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 05:38:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/how-to-convert-high-precision-location-values-to/m-p/1287550#M532</guid>
      <dc:creator>navintc</dc:creator>
      <dc:date>2023-05-10T05:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert high precision location values to coordinates?</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/how-to-convert-high-precision-location-values-to/m-p/1288423#M534</link>
      <description>&lt;P&gt;hi! So with your line of code&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var geoPosition = arcGISMapComponent.EngineToGeographic(hit.point);&lt;/LI-CODE&gt;&lt;P&gt;you should be able to get lat long (if you're in global mode, if you're in local mode, you get large x,y,z value which is on the projected coordinate system).&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var worldPosition = math.inverse(arcGISMapComponent.WorldMatrix).HomogeneousTransformPoint(hit.point.ToDouble3());
ArcGISPoint latLong = arcGISMapComponent.View.WorldToGeographic(worldPosition)&lt;/LI-CODE&gt;&lt;P&gt;is another way of getting lat long, but you need to use double3 which is why hit.point doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 23:52:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/how-to-convert-high-precision-location-values-to/m-p/1288423#M534</guid>
      <dc:creator>Jade</dc:creator>
      <dc:date>2023-05-11T23:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert high precision location values to coordinates?</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/how-to-convert-high-precision-location-values-to/m-p/1352470#M702</link>
      <description>&lt;P&gt;If I'm using a local mode. Is there a way to convert a large x,y,z values to normal lat and long?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 12:59:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/how-to-convert-high-precision-location-values-to/m-p/1352470#M702</guid>
      <dc:creator>Deivydas24</dc:creator>
      <dc:date>2023-11-22T12:59:03Z</dc:date>
    </item>
  </channel>
</rss>

