Select to view content in your preferred language

How to load elevation data?

616
1
07-22-2019 03:08 AM
PaulrajJ
New Contributor II

Hello,

I need to load a elevation data(dt2) into my map. Currently i'm loading map using the following method

void LoadMap() {

      MapGraphicsView*  m_mapview = new MapGraphicsView(this);

      Raster* raster = new Raster("map.tif", this);

      RasterLayer* rasterLayer = new RasterLayer(raster, this);

      Basemap* basepmap = new Basemap(rasterLayer, this);

      Map* m_map = new Map(BasemapType::Imagery, lat_value, long_value, 18, this);     

      m_map->setBasemap(basemap);

      m_mapView->setMap(m_map);

}

In the above code how to add the elevation source(*.dt2)?

Tags (4)
0 Kudos
1 Reply
LucasDanzinger
Esri Frequent Contributor

The workflow for setting elevation source via a dt2 is highlighted in the sample here - https://github.com/Esri/arcgis-runtime-samples-qt/blob/master/ArcGISRuntimeSDKQt_CppSamples/Scenes/C...

0 Kudos