fixed herbicide sample
This commit is contained in:
		| @@ -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) => | ||||
|   | ||||
		Reference in New Issue
	
	Block a user