mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update GeoImage.WinUI.cs
This commit is contained in:
parent
451e39f969
commit
8fceace84e
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Windows.Graphics.Imaging;
|
using Windows.Graphics.Imaging;
|
||||||
using Windows.Storage;
|
using Windows.Storage;
|
||||||
|
|
@ -19,7 +20,7 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
public static async Task<Tuple<BitmapSource, Matrix>> ReadGeoTiff(string sourcePath)
|
public static async Task<Tuple<BitmapSource, Matrix>> ReadGeoTiff(string sourcePath)
|
||||||
{
|
{
|
||||||
var file = await StorageFile.GetFileFromPathAsync(sourcePath);
|
var file = await StorageFile.GetFileFromPathAsync(Path.GetFullPath(sourcePath));
|
||||||
|
|
||||||
using (var stream = await file.OpenReadAsync())
|
using (var stream = await file.OpenReadAsync())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue