diff --git a/FarmmapsApi/Services/GeneralService.cs b/FarmmapsApi/Services/GeneralService.cs index 61583e2..e934f85 100644 --- a/FarmmapsApi/Services/GeneralService.cs +++ b/FarmmapsApi/Services/GeneralService.cs @@ -115,7 +115,7 @@ namespace FarmmapsApi.Services public async Task CreateTaskmap(Item cropfieldItem, Item tiffItem, string outputType, string cellWidth, string cellHeight, string startPoint, string ddiCode = "0001", string centered = "false", string endPoint = null, string angle = null, string precision = null, string cropTypeName = null, string costumerName = null, string ProductGroupName = null, string productName = null, - string resolution = null, string unitScale = null, string maximumClasses = null) + string resolution = "3", string unitScale = null, string maximumClasses = null) { @@ -377,9 +377,8 @@ namespace FarmmapsApi.Services } _logger.LogInformation("Enter satellite image number for NBS application"); - int elment = Int32.Parse(Console.ReadLine()); - - var selectedSatelliteItem = satelliteTiffs[elment]; + int element = Int32.Parse(Console.ReadLine()); + var selectedSatelliteItem = satelliteTiffs[element]; if (selectedSatelliteItem == null) { _logger.LogError("Satellite item not found"); diff --git a/FarmmapsApiSamples.sln b/FarmmapsApiSamples.sln index 68171a4..3fc9bd7 100644 --- a/FarmmapsApiSamples.sln +++ b/FarmmapsApiSamples.sln @@ -23,6 +23,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FarmMapsBlight", "FarmMapsB EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FarmmapsZonering", "FarmmapsZonering\FarmmapsZonering.csproj", "{91A58C4A-4A80-4079-B43D-9B851206194F}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FarmmapsDataDownload", "FarmmapsDataDownload\FarmmapsDataDownload.csproj", "{32ED9500-AAAB-4030-9C7A-F611A85DF890}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -57,6 +59,10 @@ Global {91A58C4A-4A80-4079-B43D-9B851206194F}.Debug|Any CPU.Build.0 = Debug|Any CPU {91A58C4A-4A80-4079-B43D-9B851206194F}.Release|Any CPU.ActiveCfg = Release|Any CPU {91A58C4A-4A80-4079-B43D-9B851206194F}.Release|Any CPU.Build.0 = Release|Any CPU + {32ED9500-AAAB-4030-9C7A-F611A85DF890}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {32ED9500-AAAB-4030-9C7A-F611A85DF890}.Debug|Any CPU.Build.0 = Debug|Any CPU + {32ED9500-AAAB-4030-9C7A-F611A85DF890}.Release|Any CPU.ActiveCfg = Release|Any CPU + {32ED9500-AAAB-4030-9C7A-F611A85DF890}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/FarmmapsNbs/FarmmapsNbs.csproj b/FarmmapsNbs/FarmmapsNbs.csproj index 6e4a5ab..f43ac99 100644 --- a/FarmmapsNbs/FarmmapsNbs.csproj +++ b/FarmmapsNbs/FarmmapsNbs.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp3.0 + netcoreapp3.1 diff --git a/FarmmapsNbs/Program.cs b/FarmmapsNbs/Program.cs index 596637a..395efb9 100644 --- a/FarmmapsNbs/Program.cs +++ b/FarmmapsNbs/Program.cs @@ -14,9 +14,7 @@ namespace FarmmapsNbs protected override void Configure(IServiceCollection serviceCollection) { - serviceCollection.AddLogging(opts => opts - .AddConsole() - .AddFilter("System.Net.Http", LogLevel.Warning)) + serviceCollection.AddLogging() .AddTransient(); } }