<?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 How to know the altitude of a point? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-know-the-altitude-of-a-point/m-p/1475359#M84660</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Is there a way to know the altitude of a point knowing X and Y?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know there is a mapview function call .toMap(), which converts mouseEvent to Coordinates but not really useful in this situation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2024 13:17:12 GMT</pubDate>
    <dc:creator>LuisSolaRuiz</dc:creator>
    <dc:date>2024-05-20T13:17:12Z</dc:date>
    <item>
      <title>How to know the altitude of a point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-know-the-altitude-of-a-point/m-p/1475359#M84660</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Is there a way to know the altitude of a point knowing X and Y?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know there is a mapview function call .toMap(), which converts mouseEvent to Coordinates but not really useful in this situation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 13:17:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-know-the-altitude-of-a-point/m-p/1475359#M84660</guid>
      <dc:creator>LuisSolaRuiz</dc:creator>
      <dc:date>2024-05-20T13:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the altitude of a point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-know-the-altitude-of-a-point/m-p/1477363#M84693</link>
      <description>&lt;P&gt;To work out the altitude or elevation of a point you can query the esri world elevation layer.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A title="https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer" href="https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer" target="_blank" rel="noopener"&gt;https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;There's a specific query you can do a fetch for which I've previously used:&lt;BR /&gt;&lt;BR /&gt;Long story short - the query looks like:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A title="https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer/identify?f=json&amp;amp;geometry=%7B" href="https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer/identify?f=json&amp;amp;geometry=%7B" target="_blank" rel="noopener"&gt;https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer/identify?f=json&amp;amp;&lt;STRONG&gt;geometry={&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;"x":19650810.338719428,"y":-4569183.619518825,"spatialReference":{"wkid":102100,"latestWkid":3857}}&lt;/STRONG&gt;&amp;amp;returnGeometry=false&amp;amp;returnCatalogItems=false&amp;amp;mosaicRule={"mosaicMethod":"esriMosaicLockRaster","ascending":false,"lockRasterIds":[1,2,15209,16975,18657,18658,18659,18660,32178,52532,78749,188453]}&amp;amp;geometryType=esriGeometryPoint&amp;amp;pixelSize={"x":0.0746455354095105,"y":0.07464553541110258,"spatialReference":{"wkid":102100,"latestWkid":3857}}&amp;amp;renderingRules=[{"rasterFunction":"Aspect"},{"rasterFunction":"Slope_Degrees"},{"rasterFunction":"Elevation_Feet"},{"rasterFunction":"none"}]&amp;amp;returnPixelValues=true&amp;amp;&lt;STRONG&gt;token=${token}&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Where the geometry is your x,y co-ordinates you want to get information about, and token refers to your session token&lt;BR /&gt;&lt;BR /&gt;This will return you an object that looks like:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "objectId": 0,
    "name": "Pixel",
    "value": "176.691",
    "location": {
        "x": 19650810.338719428,
        "y": -4569183.619518825,
        "spatialReference": {
            "wkid": 102100,
            "latestWkid": 3857
        }
    },
    "properties": null,
    "catalogItems": null,
    "catalogItemVisibilities": [],
    "processedValues": [
        "71",
        "2",
        "579.694",
        "176.691"
    ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The last value in the processValues is your elevation (in meters)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 22:11:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-know-the-altitude-of-a-point/m-p/1477363#M84693</guid>
      <dc:creator>JamesIng</dc:creator>
      <dc:date>2024-05-22T22:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the altitude of a point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-know-the-altitude-of-a-point/m-p/1478183#M84709</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/666601"&gt;@JamesIng&lt;/a&gt;! That was pretty useful!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was testing it with different positions in our application and I came out with some questions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are currently using 'world-elevation' value in the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html" target="_self"&gt;map ground property&lt;/A&gt; that use &lt;A href="https://www.arcgis.com/home/item.html?id=7029fb60158543ad845c7e1527af11e4" target="_self"&gt;this service&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;ground: 'world-elevation'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason, the serviced you used &lt;A href="https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer/identify" target="_self"&gt;(left example&lt;/A&gt;) is returning better elevation than the supposed one (&lt;A href="https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer/identify" target="_self"&gt;right example) :&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LuisSolaRuiz_0-1716532800646.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/105285iC0F4CB5806B1495C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LuisSolaRuiz_0-1716532800646.png" alt="LuisSolaRuiz_0-1716532800646.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What do you think it can be? Also, I was wondering if I can request several altitude for several points...&lt;/P&gt;&lt;P&gt;Thanks for your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 06:46:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-know-the-altitude-of-a-point/m-p/1478183#M84709</guid>
      <dc:creator>LuisSolaRuiz</dc:creator>
      <dc:date>2024-05-24T06:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the altitude of a point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-know-the-altitude-of-a-point/m-p/1478930#M84726</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/702943"&gt;@LuisSolaRuiz&lt;/a&gt;&amp;nbsp; Unfortunately I can't say with any real reason why one is returning better elevation, likely missing the pixelSize parameter which is used to figure out the size of the area for calculating the elevation.&lt;BR /&gt;&lt;BR /&gt;Depending on what you're trying to achieve in your project - If you're working with a sceneView and wanting to get the elevation of multiple points you might actually be easier off using the queryElevation method on the ground layer&lt;BR /&gt;&lt;BR /&gt;There's a couple of samples you can refer to:&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=elevation-query-points" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=elevation-query-points&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This example shows how to get the elevation of mulitple points using the queryElevation method on a line.&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=elevation-query" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=elevation-query&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope its helpful.&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2024 20:19:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-know-the-altitude-of-a-point/m-p/1478930#M84726</guid>
      <dc:creator>JamesIng</dc:creator>
      <dc:date>2024-05-26T20:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the altitude of a point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-know-the-altitude-of-a-point/m-p/1479314#M84734</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/666601"&gt;@JamesIng&lt;/a&gt;,&amp;nbsp;Thanks again for this useful information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been doing some test with this functionality and it is perfect to know exactly the altitude of a point in the Elevation Layer of my scene view. It really matches the layer and when I used it, the point is above the ground.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, this can be considered a solution, anyway, I still don't understand why when I query to the service that it's the same layer that I have in my scene view is returning different values &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp; It would be good to have both options because I will not have always a map loaded in the app to query it.&lt;/P&gt;&lt;P&gt;For that I've created another post&amp;nbsp;&lt;LI-MESSAGE title="Fetching to WorldElevation3D/Terrain3D is returning wrong altitude" uid="1479310" url="https://community.esri.com/t5/arcgis-rest-js-questions/fetching-to-worldelevation3d-terrain3d-is/m-p/1479310#U1479310" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's see what it can be done. Thanks again&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 07:25:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-know-the-altitude-of-a-point/m-p/1479314#M84734</guid>
      <dc:creator>LuisSolaRuiz</dc:creator>
      <dc:date>2024-05-28T07:25:27Z</dc:date>
    </item>
  </channel>
</rss>

