I'm using the UriImageProvider to add multiple tiles I've generated using GDAL to the map control. Each image covers exactly one degree of latitude and longitude.
When I loop through my image files to add them, the resulting tiles don't seem to be added in the correct place. Attached is a screen shot and here is my code to add the images.
var files = Directory.GetFiles( $"{Directory.GetCurrentDirectory()}\\Assets\\Terrain\\", "*_comp.tif" ); foreach( var f in files ) { Location bottomLeftCorner = ParseHgtFileCoordinates( f ); Location topLeft = new Location( bottomLeftCorner.Latitude + 1, bottomLeftCorner.Longitude ); Location bottomRight = new Location( bottomLeftCorner.Latitude, bottomLeftCorner.Longitude + 1 ); LocationRect bounds = new LocationRect( topLeft, bottomRight ); UriImageProvider p = new UriImageProvider(); p.GeoBounds = bounds; p.Uri = new Uri( f ); map.Providers.Add( p ); }