Hi Jarno,
There are some Tiff files that our standard GeoTiffRasterLayer does not support. But we have additional support in our UnmanagedGeoTifffRasterLayer. I’ve put together the following sample which displays your file properly:
// It is important to set the map unit first to either feet, meters or decimal degrees.
mapView.MapUnit = GeographyUnit.Meter;
OpenStreetMapOverlay osmMapsOverlay = new OpenStreetMapOverlay("test123");
mapView.Overlays.Add(osmMapsOverlay);
// Create a new overlay that will hold our new layer and add it to the map.
LayerOverlay layerOverlay = new LayerOverlay();
layerOverlay.TileType = TileType.SingleTile;
mapView.Overlays.Add(layerOverlay);
// Create the new layer and dd the layer to the overlay we created earlier.
UnmanagedGeoTiffRasterLayer geoTiffRasterLayer = new UnmanagedGeoTiffRasterLayer("../../../Data/GeoTiff/sand creek sales.tif");
ProjectionConverter projectionConverter = new UnmanagedProjectionConverter(3071, 3857);
geoTiffRasterLayer.ImageSource.ProjectionConverter = projectionConverter;
layerOverlay.Layers.Add(geoTiffRasterLayer);
// Set the map view current extent to a slightly zoomed in area of the image.
geoTiffRasterLayer.Open();
mapView.CurrentExtent = geoTiffRasterLayer.GetBoundingBox();
// Refresh the map.
mapView.Refresh();
And a screenshot of the results are below:
Thanks,
John