<?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 query DTED offline using ArcGIS .Net SDK? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-to-query-dted-offline-using-arcgis-net-sdk/m-p/726047#M4978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a thread describing how to get Elevation from DTED. We got it working successfully using the info from the thread:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/message/674346-re-dted-as-a-local-elevation-source-net-wpf-v1000?commentID=674346&amp;amp;et=watches.email.thread#comment-674346" title="https://community.esri.com/message/674346-re-dted-as-a-local-elevation-source-net-wpf-v1000?commentID=674346&amp;amp;et=watches.email.thread#comment-674346"&gt;https://community.esri.com/message/674346-re-dted-as-a-local-elevation-source-net-wpf-v1000?commentID=674346&amp;amp;et=watches.ema…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Apr 2017 17:56:03 GMT</pubDate>
    <dc:creator>KeithGemeinhart1</dc:creator>
    <dc:date>2017-04-05T17:56:03Z</dc:date>
    <item>
      <title>How to query DTED offline using ArcGIS .Net SDK?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-query-dted-offline-using-arcgis-net-sdk/m-p/726044#M4975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our application needs to do some elevation calculations (and is not connected to the internet), as a result we need to determine the highest elevation for a given polygon. How can we&amp;nbsp;query DTED offline using ArcGIS .Net SDK?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Option 1 - Use Esri.ArcGISRuntime.Controls.FileElevationSource&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So in order to use&amp;nbsp;&lt;SPAN&gt;FileElevationSource it turns out it must be associated with a SceneView. We were only using a MapView so I added in a SceneVeiw and associated the&amp;nbsp;FileElevationSource&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="" style="color: #393318; border: 0px; font-size: 13px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="border: 0px; font-size: 13px;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;sceneView&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;"&gt;Scene&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;"&gt;Surface&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;"&gt;Add&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;elevationSource&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;&lt;SPAN style="color: #303336;"&gt;);&lt;/SPAN&gt;W&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;When I tired to access the elevation source I get an AccessViolation&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="" style="color: #393318; border: 0px; font-size: 13px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="border: 0px; font-size: 13px;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;elevationSource.GetElevationAsync(location as MapPoint).Result&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Option 2 - Some how use LocalServer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The doco states that ArcGIS Runtime LocalServer support a number of Raster formats including DTED.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/net/10-2/desktop/guide/local-server-raster-support.htm" title="https://developers.arcgis.com/net/10-2/desktop/guide/local-server-raster-support.htm"&gt;Local Server raster support—ArcGIS Runtime SDK for .NET | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I use ArcMap to create a map package file with the DTED files within but have no idea how to use Local Sever to query the package file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ultimately we want to:&lt;/P&gt;&lt;P&gt;1) Load a number of DTED files &amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Query for a given lat/lon what the elevation is at that point&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note we are using .Net Runtime SDK v10.2.7&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 23:08:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-query-dted-offline-using-arcgis-net-sdk/m-p/726044#M4975</guid>
      <dc:creator>NickCooper</dc:creator>
      <dc:date>2016-12-08T23:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to query DTED offline using ArcGIS .Net SDK?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-query-dted-offline-using-arcgis-net-sdk/m-p/726045#M4976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have similar goals but we are using v100.0 (Quartz). Did you ever figure this one out? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 03:45:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-query-dted-offline-using-arcgis-net-sdk/m-p/726045#M4976</guid>
      <dc:creator>KeithGemeinhart1</dc:creator>
      <dc:date>2017-03-21T03:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to query DTED offline using ArcGIS .Net SDK?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-query-dted-offline-using-arcgis-net-sdk/m-p/726046#M4977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a similar if not the exact same error "&lt;SPAN style="background-color: #ffffff;"&gt;AccessViolation&lt;/SPAN&gt;" when using the&amp;nbsp;&lt;CODE style="border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;GetElevationAsync funciton. &amp;nbsp;Has anyone had any luck resolving this Error?&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;Here are my current post on my error and&amp;nbsp;the access violation i was having. &amp;nbsp;We only see this issue when we are using prism and the SceneView is in its own module. &amp;nbsp;With a stand alone wpf application the GetElevationAsync funtion call works fine.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;A href="https://community.esri.com/thread/192512"&gt;access violation with GetElevationAsync(mapPoint) when using Prism&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;A class="link-titled" href="http://stackoverflow.com/questions/43056902/prism-and-esri-getelevationasyncmappoint" title="http://stackoverflow.com/questions/43056902/prism-and-esri-getelevationasyncmappoint"&gt;c# - Prism and Esri GetElevationAsync(mapPoint) - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 17:45:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-query-dted-offline-using-arcgis-net-sdk/m-p/726046#M4977</guid>
      <dc:creator>EricBoice</dc:creator>
      <dc:date>2017-04-05T17:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to query DTED offline using ArcGIS .Net SDK?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-query-dted-offline-using-arcgis-net-sdk/m-p/726047#M4978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a thread describing how to get Elevation from DTED. We got it working successfully using the info from the thread:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/message/674346-re-dted-as-a-local-elevation-source-net-wpf-v1000?commentID=674346&amp;amp;et=watches.email.thread#comment-674346" title="https://community.esri.com/message/674346-re-dted-as-a-local-elevation-source-net-wpf-v1000?commentID=674346&amp;amp;et=watches.email.thread#comment-674346"&gt;https://community.esri.com/message/674346-re-dted-as-a-local-elevation-source-net-wpf-v1000?commentID=674346&amp;amp;et=watches.ema…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 17:56:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-query-dted-offline-using-arcgis-net-sdk/m-p/726047#M4978</guid>
      <dc:creator>KeithGemeinhart1</dc:creator>
      <dc:date>2017-04-05T17:56:03Z</dc:date>
    </item>
  </channel>
</rss>

