Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
xfischer committed Feb 25, 2020
2 parents 7faf338 + 7b767e6 commit 0af3d89
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 40 deletions.
2 changes: 1 addition & 1 deletion DEM.Net.Core/Configuration/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static IServiceCollection AddDemNetCore(this IServiceCollection services)
.AddSingleton<IRasterService, RasterService>()
.AddTransient<IElevationService, ElevationService>()
.AddTransient<IMeshService, MeshService>()
.AddSingleton<IImageryService, ImageryService>();
.AddSingleton<ImageryService>();

return services;
}
Expand Down
36 changes: 0 additions & 36 deletions DEM.Net.Core/Services/Imagery/IImageryService.cs

This file was deleted.

6 changes: 3 additions & 3 deletions DEM.Net.Core/Services/Imagery/ImageryService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

namespace DEM.Net.Core.Imagery
{
public class ImageryService : IImageryService
public class ImageryService
{
#region Tiled imagery

Expand Down Expand Up @@ -275,7 +275,7 @@ BoundingBox GetTilesBoundingBox(TileRange tiles)
}

public TextureInfo ConstructTextureWithGpxTrack(TileRange tiles, BoundingBox bbox, string fileName,
TextureImageFormat mimeType, IEnumerable<GeoPoint> gpxPoints, bool drawGpxVertices)
TextureImageFormat mimeType, IEnumerable<GeoPoint> gpxPoints, bool drawGpxVertices = false)
{
// where is the bbox in the final image ?

Expand Down Expand Up @@ -440,7 +440,7 @@ public bool IsTokenConfigurationValid(ImageryProvider provider)
/// <param name="heightMap">heightMap in projected coordinates</param>
/// <param name="outputDirectory"></param>
/// <returns></returns>
public TextureInfo GenerateNormalMap(HeightMap heightMap, string outputDirectory, string fileName)
public TextureInfo GenerateNormalMap(HeightMap heightMap, string outputDirectory, string fileName = "normalmap.png")
{
List<Vector3> normals = _meshService.ComputeNormals(heightMap).ToList();

Expand Down

0 comments on commit 0af3d89

Please sign in to comment.