0

I am still new to the ArcGIS Runtime SDK for WPF.

My project requires me to get the elevation point offline (local) from a DTED file. I had raster map view using mapview, then I want to get the elevation point when I point the mouse tip on raster map that I view.

This is my code so far:

string parentFolder = @"C:\Data\DTED0";
List<string> files = Directory.EnumerateFiles(parentFolder, "*.dt0", SearchOption.AllDirectories).ToList();
Scene.BaseSurface = new Surface();
RasterElevationSource rasterElevationSource = new RasterElevationSource(files);
Scene.BaseSurface.ElevationSources.Add(rasterElevationSource);

Do I need to create new user control for sceneview or just use the that i read raster map on mapview?

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Feb 7, 2019 at 3:17
0

1 Answer 1

2

Clicking with the Identify tool (Tools toolbar) on an elevation raster should return the elevation value at that point. I have only used DTEDs as output, but I believe they work the same as DEMs/elevation rasters. Since DTEDs come in different resolutions, you could get an interpolated elevation for a small area, rather than a 1-meter or submeter value that you could get from an elevation raster.

If you have access to the Spatial Analyst extension, there is a tool called Extract Values to Points that can assign raster values to a point file, which is useful when you have a lot of points to assign elevations to.

answered Feb 7, 2019 at 17:12
1
  • On ArcGIS it need to use other platform to get the elevation point from Dted file? Before this I retrieve the elevation point using the interpolation method on GDAL just by add the library and few code. I though i can the same method on the ArcGIS SDK. Commented Feb 8, 2019 at 2:10

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.