Hello,
I need to open a .tiff file that contains several "pages"/"images" within it.
I read the file into a GeoTiffRasterLayer, but then I can see only 1 image (probably the first one)
The file I am working with contains 7 "pages", you can download it from here:
tif: dropbox.com/s/n1aty7zebr2m034/Map500000_9281.tif?dl=0
tfw: dropbox.com/s/df3asxw2u0yk8pc/Map500000_9281.tfw?dl=0
How can I display all the images in the file?
Best regards
public static bool AddGeoTiffLayers(string filePath, WpfMap map,bool refresh, out GeoTiffRasterLayer layer)
{
try
{
string layerName = new FileInfo(filePath).Name;
string extentionName = Path.GetExtension(filePath).ToUpperInvariant();
GeoTiffRasterLayer worldLayer = new GeoTiffRasterLayer(filePath);
string key = KeyGen.NewStringKey();
worldLayer.Name = key;
LayerOverlay layerOverlay = new LayerOverlay();
layerOverlay.Name = key;
layerOverlay.Layers.Add(key, worldLayer);
map.Overlays.Add(key, layerOverlay);
layer = worldLayer;
if (refresh)
map.Refresh((map.Overlays[key]));
return true;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, ex.GetType().ToString(), MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, (MessageBoxOptions)0);
}
layer = null;
return false;
}