fixed herbicide sample
This commit is contained in:
parent
c8b82a2ed3
commit
d1bfd92c78
@ -56,7 +56,6 @@ namespace FarmmapsApi.Services
|
||||
|
||||
public async Task<Item> 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}"));
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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) =>
|
||||
|
Loading…
Reference in New Issue
Block a user