diff --git a/FarmmapsApi/Services/GeneralService.cs b/FarmmapsApi/Services/GeneralService.cs index 624be47..8296e7a 100644 --- a/FarmmapsApi/Services/GeneralService.cs +++ b/FarmmapsApi/Services/GeneralService.cs @@ -56,7 +56,6 @@ namespace FarmmapsApi.Services public async Task UploadZipWithShapeAsync(UserRoot root, string filePath, string itemName) { - var startUpload = DateTime.UtcNow; var result = await _farmmapsApiService.UploadFile(filePath, root.Code, progress => _logger.LogInformation($"Status: {progress.Status} - BytesSent: {progress.BytesSent}")); diff --git a/FarmmapsHerbicide/HerbicideApplication.cs b/FarmmapsHerbicide/HerbicideApplication.cs index c2c3909..525856b 100644 --- a/FarmmapsHerbicide/HerbicideApplication.cs +++ b/FarmmapsHerbicide/HerbicideApplication.cs @@ -44,7 +44,7 @@ namespace FarmmapsHerbicide var agents = await _herbicideService.GetHerbicideAgents(); _liberatorTarweAgent = agents.SingleOrDefault(a => a.Name.Equals("Liberator")); - await SingleLutumTiffFlow(roots); +// await SingleLutumTiffFlow(roots); await MultiVanDenBorneShapeFlow(roots); } diff --git a/FarmmapsHerbicide/HerbicideService.cs b/FarmmapsHerbicide/HerbicideService.cs index 0e415c3..cfd2937 100644 --- a/FarmmapsHerbicide/HerbicideService.cs +++ b/FarmmapsHerbicide/HerbicideService.cs @@ -49,9 +49,15 @@ namespace FarmmapsHerbicide }; taskRequest.attributes["inputCode"] = inputItem[0].Code; taskRequest.attributes["agent"] = JsonConvert.SerializeObject(agent); + + // check for the layer name + taskRequest.attributes["inputLayerName"] = inputItem[0].Data["layers"][0]["name"].ToString(); if (inputItem.Length > 1) + { taskRequest.attributes["extraInputCode"] = inputItem[1].Code; + taskRequest.attributes["extraInputLayerName"] = inputItem[1].Data["layers"][0]["name"].ToString(); + } var taskCode = await _farmmapsApiService.QueueTaskAsync(cropfieldItem.Code, taskRequest); await PollTask(TimeSpan.FromSeconds(3), async (tokenSource) =>