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 query DTED offline using ArcGIS .Net SDK?
Option 1 - Use Esri.ArcGISRuntime.Controls.FileElevationSource
So in order to use 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 FileElevationSource
<SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">sceneView</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">Scene</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">Surface</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">Add</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">elevationSource</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"><SPAN style="color: #303336;">);</SPAN>W</SPAN>
When I tired to access the elevation source I get an AccessViolation
<SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">elevationSource.GetElevationAsync(location as MapPoint).Result</SPAN>
Option 2 - Some how use LocalServer
The doco states that ArcGIS Runtime LocalServer support a number of Raster formats including DTED.
Local Server raster support—ArcGIS Runtime SDK for .NET | ArcGIS for Developers
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
Ultimately we want to:
1) Load a number of DTED files
2) Query for a given lat/lon what the elevation is at that point
Any help would be greatly appreciated!
Note we are using .Net Runtime SDK v10.2.7