When I try to display a TIFF file with separate planes and multiple strips, I just get “Index was outside the bounds of the array”. (Apparently, PhotoShop likes to generate such files.)
private void MapView_Loaded(object sender, RoutedEventArgs e)
{
mapView.MapUnit = GeographyUnit.Meter;
var layersOverlay = new LayerOverlay();
mapView.Overlays.Add(layersOverlay);
var extent = new RectangleShape(0, 123, 123, 0);
var layer = new GeoTiffRasterLayer("tile.tif", extent);
layersOverlay.Layers.Add(layer);
mapView.CurrentExtent = extent;
}
tile.tif.zip (23.9 KB)
>tiffinfo tile.tif
TIFF Directory at offset 0x587c (22652)
Image Width: 256 Image Length: 256
Bits/Sample: 8
Compression Scheme: AdobeDeflate
Photometric Interpretation: palette color (RGB from colormap)
FillOrder: msb-to-lsb
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 1
Rows/Strip: 128
Planar Configuration: separate image planes
Page Number: 0-1
Color Map: (present)