From 8fceace84ea4843258e8a1ca6b3683bbeaa59f5f Mon Sep 17 00:00:00 2001 From: Clemens Date: Tue, 18 Jan 2022 23:57:33 +0100 Subject: [PATCH] Update GeoImage.WinUI.cs --- MapControl/WinUI/GeoImage.WinUI.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MapControl/WinUI/GeoImage.WinUI.cs b/MapControl/WinUI/GeoImage.WinUI.cs index b2d2825b..d55fc631 100644 --- a/MapControl/WinUI/GeoImage.WinUI.cs +++ b/MapControl/WinUI/GeoImage.WinUI.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; +using System.IO; using System.Threading.Tasks; using Windows.Graphics.Imaging; using Windows.Storage; @@ -19,7 +20,7 @@ namespace MapControl { public static async Task> ReadGeoTiff(string sourcePath) { - var file = await StorageFile.GetFileFromPathAsync(sourcePath); + var file = await StorageFile.GetFileFromPathAsync(Path.GetFullPath(sourcePath)); using (var stream = await file.OpenReadAsync()) {