sorry for double posting, my code did not come out.
Hi, I have discovered there is a Raster type and RasterLayer in Esri ArcGIS
Runtime for .Net.
However I could not get it to work.
In the github samples, I could only find RasterLayerImageServiceRaster
<https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/master/src/WPF/ArcGISRuntime.WPF.Samples/Samples/Layers/RasterLayerImageServiceRaster>
and RasterLayerRasterFunction
<https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/master/src/WPF/ArcGISRuntime.WPF.Samples/Samples/Layers/RasterLayerRasterFunction>
I just want to create a Raster Layer from a GeoTIFF file stored on local
disk and then display it. Nothing too fancy.
My code at the moment looks something like:
Raster myRaster = new Raster(@"C:\tiffmap.tif");
RasterLater newRasterLayer = new RasterLayer(myRaster);
Basemap myBasemap = _map.Basemap;
LayerCollection myLayerCollection = myBasemap.BaseLayers;
myLayerCollection.Add(newRasterLayer);
but the map is not showing. I get a blank map.
What should I be doing?
rgds