mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 22:46:58 +00:00
Add FilePath helper class
This commit is contained in:
parent
7d1d7dbe23
commit
421f323116
5 changed files with 27 additions and 4 deletions
|
|
@ -20,8 +20,7 @@ namespace MapControl
|
|||
{
|
||||
public static async Task<Tuple<BitmapSource, Matrix>> ReadGeoTiff(string sourcePath)
|
||||
{
|
||||
var file = await StorageFile.GetFileFromPathAsync(
|
||||
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, sourcePath));
|
||||
var file = await StorageFile.GetFileFromPathAsync(FilePath.GetFullPath(sourcePath));
|
||||
|
||||
using (var stream = await file.OpenReadAsync())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ namespace MapControl
|
|||
{
|
||||
ImageSource image = null;
|
||||
|
||||
path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, path);
|
||||
path = FilePath.GetFullPath(path);
|
||||
|
||||
if (File.Exists(path))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue