Skip to content

Commit

Permalink
Merge pull request #38 from dem-net/dev
Browse files Browse the repository at this point in the history
0.1.0-beta0007
  • Loading branch information
xfischer authored Apr 18, 2019
2 parents 8e3079a + 965e1b9 commit efbafab
Show file tree
Hide file tree
Showing 29 changed files with 25 additions and 829 deletions.
2 changes: 1 addition & 1 deletion DEM.Net.Core/DEM.Net.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
<PackageId>DEM.Net.Core</PackageId>
<Version>0.1.0-beta0006</Version>
<Version>0.1.0-beta0007</Version>
<Authors>Xavier Fischer, Frédéric Aubin</Authors>
<Copyright>Xavier Fischer, Frédéric Aubin</Copyright>
<Owners>Xavier Fischer</Owners>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using DEM.Net.Core.Imagery;
using DEM.Net.Core.Services.Mesh;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
Expand Down
2 changes: 1 addition & 1 deletion DEM.Net.Core/Services/Elevation/ElevationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class ElevationService : IElevationService
private readonly IRasterService _IRasterService;
private readonly ILogger<ElevationService> _logger;

public ElevationService(IRasterService rasterService, ILogger<ElevationService> logger)
public ElevationService(IRasterService rasterService, ILogger<ElevationService> logger = null)
{
_IRasterService = rasterService;
_logger = logger;
Expand Down
3 changes: 1 addition & 2 deletions DEM.Net.Core/Services/Imagery/ImageryService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

using DEM.Net.Core.Services.Mesh;
using System;
using System.Collections.Generic;
using System.IO;
Expand Down Expand Up @@ -61,7 +60,7 @@ public class ImageryService : IImageryService
#if NETSTANDARD
private readonly IConfigurationRoot _config;

public ImageryService(IMeshService meshService, ILogger<ImageryService> logger)
public ImageryService(IMeshService meshService, ILogger<ImageryService> logger = null)
{
_logger = logger;
_meshService = meshService;
Expand Down
2 changes: 1 addition & 1 deletion DEM.Net.Core/Services/Mesh/BoxBaseThickness.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System;
namespace DEM.Net.Core.Services.Mesh
namespace DEM.Net.Core
{
public enum BoxBaseThickness
{
Expand Down
2 changes: 1 addition & 1 deletion DEM.Net.Core/Services/Mesh/IMeshService.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Numerics;

namespace DEM.Net.Core.Services.Mesh
namespace DEM.Net.Core
{
public interface IMeshService
{
Expand Down
4 changes: 2 additions & 2 deletions DEM.Net.Core/Services/Mesh/MeshService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
using System.Text;
using System.Threading.Tasks;

namespace DEM.Net.Core.Services.Mesh
namespace DEM.Net.Core
{
public class MeshService : IMeshService
{
private readonly ILogger<MeshService> _logger;

public MeshService(ILogger<MeshService> logger)
public MeshService(ILogger<MeshService> logger = null)
{
_logger = logger;
}
Expand Down
2 changes: 1 addition & 1 deletion DEM.Net.Core/Services/Mesh/TriangulationResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
using System.Text;
using System.Threading.Tasks;

namespace DEM.Net.Core.Services.Mesh
namespace DEM.Net.Core
{
public class TriangulationResult
{
Expand Down
1 change: 1 addition & 0 deletions DEM.Net.Core/Services/Raster/GDALVRTFileService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public GDALVRTFileService(string localDirectory, DEMDataSet dataSet)
{
_localDirectory = localDirectory;
_dataSet = dataSet;
_cacheByDemName = new Dictionary<string, List<GDALSource>>();
}

/// <summary>
Expand Down
5 changes: 3 additions & 2 deletions DEM.Net.Core/Services/Raster/RasterService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ public string LocalDirectory
get { return _localDirectory; }
}

public RasterService(ILogger<RasterService> logger)
public RasterService(ILogger<RasterService> logger = null)
{
_logger = logger;
_localDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), APP_NAME);
//_localDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), APP_NAME);
_localDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), APP_NAME);
if (!Directory.Exists(_localDirectory))
Directory.CreateDirectory(_localDirectory);

Expand Down
39 changes: 0 additions & 39 deletions DEM.Net.Test/DEM.Net.Test.csproj

This file was deleted.

128 changes: 0 additions & 128 deletions DEM.Net.Test/DatasetTests.cs

This file was deleted.

26 changes: 0 additions & 26 deletions DEM.Net.Test/ElevationTests.cs

This file was deleted.

40 changes: 0 additions & 40 deletions DEM.Net.Test/GeometryTests.cs

This file was deleted.

Loading

0 comments on commit efbafab

Please sign in to comment.