Added create applicationmap.

fixed to flow.
This commit is contained in:
2020-05-05 16:08:32 +02:00
parent a331437433
commit 38cb1e27a5
3 changed files with 94 additions and 14 deletions

View File

@@ -144,14 +144,14 @@ namespace FarmmapsHerbicide
}
// create appliance map
_logger.LogInformation("Calculating appliance map");
_logger.LogInformation("Calculating application map");
var applianceMapItem = await _herbicideService.CalculateApplicationMapAsync(cropfieldItem, _liberatorTarweAgent, tiffInputItem, tiffInputExtraItem);
if (applianceMapItem == null)
{
return;
}
_logger.LogInformation("Downloading appliance map");
_logger.LogInformation("Downloading application map");
await _farmmapsApiService.DownloadItemAsync(applianceMapItem.Code, Path.Combine(DownloadFolder,
$"{applianceMapItem.Name}_{Guid.NewGuid():N}.zip"));
}