<?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: Find elevation at a given lat/long? in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/find-elevation-at-a-given-lat-long/m-p/509614#M4344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think the height value you are trying to call in the block of code below is the height of the map_view object (which inherits from AGSMapView). Pretty sure that's the height of the map's view frame - could be inches or pixels. This is not the same as surface elevation. Probably not what you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;elevation.text = [NSString stringWithFormat:@"%f", map_view.visibleAreaEnvelope.height];&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked for a sample that illustrates the use of AGSImageServiceIdentifyTask. I did not find a sample. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pretty sure this class is the starting point for what you want to do. Check out the link below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/ios/api-reference/interface_a_g_s_image_service_identify_result.html"&gt;https://developers.arcgis.com/en/ios/api-reference/interface_a_g_s_image_service_identify_result.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also you will need to find an elevation layer that is appropriate to run the identify operation against. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps something like the link below. Hopefully the identify operation does not return a JPEG compressed cell value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If someone knows of an easier way of getting elevation data I would like to hear your thoughts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul Lohr&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jun 2013 18:56:32 GMT</pubDate>
    <dc:creator>PaulLohr</dc:creator>
    <dc:date>2013-06-17T18:56:32Z</dc:date>
    <item>
      <title>Find elevation at a given lat/long?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/find-elevation-at-a-given-lat-long/m-p/509613#M4343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm very new to this, but I've got it all working and it's looking great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is that given a latitude/longitude can I get the elevation?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found this post: &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2009/09/25/finding-the-elevation-at-any-location/"&gt;http://blogs.esri.com/esri/arcgis/2009/09/25/finding-the-elevation-at-any-location/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently trying something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [map_view zoomToLevel:113 withLat:lat lon:lon animated:YES];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; elevation.text = [NSString stringWithFormat:@"%f", map_view.visibleAreaEnvelope.height];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I'm worried that it's not giving me accurate information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated. Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Brian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 18:23:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/find-elevation-at-a-given-lat-long/m-p/509613#M4343</guid>
      <dc:creator>BrianLonsdorf</dc:creator>
      <dc:date>2013-06-10T18:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Find elevation at a given lat/long?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/find-elevation-at-a-given-lat-long/m-p/509614#M4344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think the height value you are trying to call in the block of code below is the height of the map_view object (which inherits from AGSMapView). Pretty sure that's the height of the map's view frame - could be inches or pixels. This is not the same as surface elevation. Probably not what you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;elevation.text = [NSString stringWithFormat:@"%f", map_view.visibleAreaEnvelope.height];&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked for a sample that illustrates the use of AGSImageServiceIdentifyTask. I did not find a sample. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pretty sure this class is the starting point for what you want to do. Check out the link below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/ios/api-reference/interface_a_g_s_image_service_identify_result.html"&gt;https://developers.arcgis.com/en/ios/api-reference/interface_a_g_s_image_service_identify_result.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also you will need to find an elevation layer that is appropriate to run the identify operation against. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps something like the link below. Hopefully the identify operation does not return a JPEG compressed cell value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If someone knows of an easier way of getting elevation data I would like to hear your thoughts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul Lohr&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 18:56:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/find-elevation-at-a-given-lat-long/m-p/509614#M4344</guid>
      <dc:creator>PaulLohr</dc:creator>
      <dc:date>2013-06-17T18:56:32Z</dc:date>
    </item>
  </channel>
</rss>

