<?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: I have a question about how to get the elevation of a point given latitude and longitude or x,z coordinates in Unity. in ArcGIS Maps SDK for Unity Questions</title>
    <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/i-have-a-question-about-how-to-get-the-elevation/m-p/1603113#M1082</link>
    <description>&lt;P&gt;I've build something similar because you cannot rely on external services. Arcgis has no real out-of-the-box solution so making a custom system worked for me.&lt;/P&gt;&lt;P&gt;Your raycasts are inaccurate because of the different LOD of the tiles which comes from difference ArcGisCamera positions &amp;amp; settings so how do you combat that?&lt;/P&gt;&lt;P&gt;Have a system update their raycast result and update your line at runtime. You don't need to do this every frame and there is a lot of optimization you can do like only executing this update logic if you're close.&lt;/P&gt;</description>
    <pubDate>Sun, 06 Apr 2025 22:47:17 GMT</pubDate>
    <dc:creator>JanikCodes</dc:creator>
    <dc:date>2025-04-06T22:47:17Z</dc:date>
    <item>
      <title>I have a question about how to get the elevation of a point given latitude and longitude or x,z coordinates in Unity.</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/i-have-a-question-about-how-to-get-the-elevation/m-p/1583905#M1047</link>
      <description>&lt;P&gt;Currently, online is loading the world map through API Key, and offline is generating terrain through .tpkx file and displaying it in Unity's Scene.&lt;BR /&gt;For road alignment,&lt;BR /&gt;I want to draw a 2D plane line and project it on the terrain to return the elevation value of each point,&lt;BR /&gt;and I want to check the elevation value of the corresponding location with latitude/longitude or x, z coordinates on Unity.&lt;BR /&gt;RayCast has accuracy issues when the displayed map is wide, so I am considering it as an alternative.&lt;/P&gt;&lt;P&gt;Is there a function that can be used in ArcGIS Maps SDK for Unity?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aaa.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125064i3DFFBB4380BBBBBB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aaa.png" alt="aaa.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 07:09:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/i-have-a-question-about-how-to-get-the-elevation/m-p/1583905#M1047</guid>
      <dc:creator>SamsungCampTCivil</dc:creator>
      <dc:date>2025-02-11T07:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: I have a question about how to get the elevation of a point given latitude and longitude or x,z coordinates in Unity.</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/i-have-a-question-about-how-to-get-the-elevation/m-p/1584380#M1050</link>
      <description>&lt;P&gt;The solution will depend on what you want to do with the line and elevation points. For example, is it purely for display? In which case, you probably want to simply have the line draped on the elevation surface.&lt;/P&gt;&lt;P&gt;Or do you need the elevation values for another purpose, in which case you might consider using our (beta) elevation service to get the best resolution value for each point/location:&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/elevation-service/" target="_blank"&gt;Elevation service (beta) | Esri Developer REST APIs documentation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;A couple of things to consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The data loading within the view uses Levels of Detail (LoD) to get the best performance, therefore coarser LoD are loaded in the distance, and raycasts further away from the observer/camera will return the values from those coarser LoD.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Visually, you may still want to effectively drape the line on the terrain, because if it's drawn at an absolute elevation determined by more accurate values for each vertex/point, then it may disappear beneath the surface of the terrain in some areas and appear to be raised above the surface in other areas.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 12 Feb 2025 09:44:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/i-have-a-question-about-how-to-get-the-elevation/m-p/1584380#M1050</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2025-02-12T09:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: I have a question about how to get the elevation of a point given latitude and longitude or x,z coordinates in Unity.</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/i-have-a-question-about-how-to-get-the-elevation/m-p/1603113#M1082</link>
      <description>&lt;P&gt;I've build something similar because you cannot rely on external services. Arcgis has no real out-of-the-box solution so making a custom system worked for me.&lt;/P&gt;&lt;P&gt;Your raycasts are inaccurate because of the different LOD of the tiles which comes from difference ArcGisCamera positions &amp;amp; settings so how do you combat that?&lt;/P&gt;&lt;P&gt;Have a system update their raycast result and update your line at runtime. You don't need to do this every frame and there is a lot of optimization you can do like only executing this update logic if you're close.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Apr 2025 22:47:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/i-have-a-question-about-how-to-get-the-elevation/m-p/1603113#M1082</guid>
      <dc:creator>JanikCodes</dc:creator>
      <dc:date>2025-04-06T22:47:17Z</dc:date>
    </item>
  </channel>
</rss>

