Hello!
I am trying to display SAR satellite imagery in .NET MAUI (such as ICEYE).
Is this supported in any way? I already tried loading the .tif files as a RasterLayer, but the map remains empty.
Thank you!
Hi there,
Samples demonstrating RasterLayer workflows for .NET MAUI can be found here:
If you are trying to load a bundled file on .NET MAUI there are a couple of additional steps, this is covered for an .mmpk file in this tutorial: Display a map from a mobile map package (.NET MAUI).
Essentially, you need to first make sure the bundled file has build action "MauiAsset". This file needs to be written to the the "AppDataDirectory" from where it can then be loaded to initialize the RasterLayer.
I may not have a full understanding of your problem so please let me know if this doesn't resolve your issue.
Sorry, I wasn't clear enough.
I want to display a SAR geotiff in a Map.
e.g.: https://www.iceye.com/resources/datasets <- the Houston, USA sample reproduces the problem, I haven't tried the other ones(You need to download the dataset that says geotiff)
However, when I load it the way it is done in the examples, the map remains empty.
var rasterFile = new Raster(file.FullPath);
var baseLayer = new RasterLayer(rasterFile);
var baseMap = new Basemap(baseLayer);
Map = new Map(baseMap);
Here I am loading it as a basemap but loading it as an operational layer does the same.
Here is a link to a screenshot, about what I see: https://imgur.com/hGTrsnp
Try adding "await baseLayer.LoadAsync()" and see if the layer loads fine. Also check the debug output for any hints around load or render issues
Thank you for your answer but unfortunately neither of them did anything.
Here is the debug output, with the
await baseLayer.LoadAsync();
already added.
Here is the debug output of my Demo app, I don't see any issues.
I've managed to reproduce your issue with your code and the data you are using.
We'll investigate this further and let you know.