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
and 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. I have tried using WMTSLayer and it works, so I am not too far off.
What should I be doing? The documentation and examples are sparse....
rgds
PJ
you're right! I didn't know there is a difference in allowed functionality
between the different license types... this seems like such a basic
functionality.
thanks for the help!
Is there an updated version of this? I could not get this one to work for me. I copied the code exactly.