Add DTED data to a map layer

2109
2
Jump to solution
03-25-2013 06:41 AM
oyleiste
Occasional Contributor
Hello

I'm working on a university project based on ARCGIS .NET SDK (I use C#). Now, I'm able to add maps and draw lines and stuff...
I want to add a .dt0 DTED file to axMapControl and add a function to MouseDown to MessageBox elevation (height) of mapX,mapY.
I googled "A LOT" and got confused. In the end, I managed to add DTED layer using RasterLayer.CreateFromFile but it adds a brown square 😐
Can anyone has a snippet code for add DTED file (.dt0 or even maybe .dt1, .dt2)?

Thank you very much
Regards
0 Kudos
1 Solution

Accepted Solutions
oyleiste
Occasional Contributor
I solved my problem using this great blog, by Joel Odom:
Creating a Mosaic of FalconView DTED in the GIS Editor
Now I'm able to add DTED layer to axMapControl and get elevation of a specific location of layer.

Thanks anyway

View solution in original post

0 Kudos
2 Replies
oyleiste
Occasional Contributor
I solved my problem using this great blog, by Joel Odom:
Creating a Mosaic of FalconView DTED in the GIS Editor
Now I'm able to add DTED layer to axMapControl and get elevation of a specific location of layer.

Thanks anyway
0 Kudos
oyleiste
Occasional Contributor
By the way, I got IRasterDataset by rasterworkspace.OpenRasterDataset("n42.dt0")
and DTED Level 0 is available for everyone. You can download it for free.
0 Kudos