diff --git a/FarmmapsApi/Services/GeneralService.cs b/FarmmapsApi/Services/GeneralService.cs
index 1d27baa..c2ec636 100644
--- a/FarmmapsApi/Services/GeneralService.cs
+++ b/FarmmapsApi/Services/GeneralService.cs
@@ -52,6 +52,7 @@ namespace FarmmapsApi.Services
Item shapeItem = null;
await PollTask(TimeSpan.FromSeconds(3), async source =>
{
+ _logger.LogInformation($"Searching for {itemName} item");
var uploadedFilesChildren = await _farmmapsApiService.GetItemChildrenAsync(root.Code);
var zipItems = uploadedFilesChildren.Where(i => i.Name.Contains(zipName));
diff --git a/FarmmapsApiSamples/NitrogenService.cs b/FarmmapsApiSamples/NitrogenService.cs
index 721e3ee..72fb9a1 100644
--- a/FarmmapsApiSamples/NitrogenService.cs
+++ b/FarmmapsApiSamples/NitrogenService.cs
@@ -80,7 +80,7 @@ namespace FarmmapsApiSamples
_logger.LogInformation("Calculating appliance map");
var applianceMapItem =
- await CalculateApplianceMap(cropfieldItem, isariaGeotiffItem, plantingDate, measurementDate, targetN);
+ await CalculateApplicationMap(cropfieldItem, isariaGeotiffItem, plantingDate, measurementDate, targetN);
_logger.LogInformation("Downloading appliance map");
await _farmmapsApiService.DownloadItemAsync(applianceMapItem.Code, Path.Combine(downloadFolder, $"{applianceMapItem.Name}.zip"));
@@ -227,11 +227,11 @@ namespace FarmmapsApiSamples
/// The date the measurements are taken
/// The target nitrogen to use for the calculations
///
- public async Task- CalculateApplianceMap(Item cropfieldItem, Item inputItem, DateTime plantingDate,
+ public async Task
- CalculateApplicationMap(Item cropfieldItem, Item inputItem, DateTime plantingDate,
DateTime measurementDate, double targetN)
{
var nbsApplianceMapRequest = new TaskRequest {TaskType = VRANBS_TASK};
- nbsApplianceMapRequest.attributes["operation"] = "nitrogen";
+ nbsApplianceMapRequest.attributes["operation"] = "application";
nbsApplianceMapRequest.attributes["inputCode"] = inputItem.Code;
nbsApplianceMapRequest.attributes["plantingDate"] = plantingDate.ToString();
nbsApplianceMapRequest.attributes["measurementDate"] = measurementDate.ToString();
@@ -264,7 +264,7 @@ namespace FarmmapsApiSamples
var applianceMapItem = geotiffItems.SingleOrDefault(i => i.Name.Contains("nitrogen") && i.Updated >= itemTask.Finished);
if (applianceMapItem == null)
{
- _logger.LogError("Could not find the nitrogen geotiff child item under cropfield");
+ _logger.LogError("Could not find the application map geotiff child item under cropfield");
return null;
}