probeersel om een runKPItask te maken

This commit is contained in:
2023-03-31 11:02:06 +02:00
parent c79e0d062c
commit 7dda21dd77
5 changed files with 45 additions and 10 deletions

View File

@@ -146,8 +146,7 @@ namespace FarmmapsKPI
//_logger.LogInformation("Calculate KPI map for field");
//var KPIItem = await _generalService.RunKPITask(cropfieldItem);
var KPIItem = null;
if (KPIItem == null)
if ((object)null == null)
{
_logger.LogError("Something went wrong while obtaining the KPI map");
return;

View File

@@ -1,10 +1,10 @@
[
{
"UseCreatedCropfield": false,
"UseCreatedCropfield": true,
"outputFileName": "TestData",
"fieldName": "TestField",
"DownloadFolder": "Downloads", //"C:\\workdir\\groenmonitor\\", // "Downloads", -> if you just put "Downloads" the program will download to somewhere in ..\FarmMapsApiClient_WURtest\FarmmapsDataDownload\bin\Debug\netcoreapp3.1\Downloads\
"GetCropRecordings": true,
"GetCropRecordings": false,
"CrprecItem": "...", //item code of de crop recording parrent - can be found by opening the crop recording page of a field.
"GetShadowData": false,
"GetSatelliteData": false,

View File

@@ -14,12 +14,12 @@ namespace FarmmapsKPI.Models
public JObject GeometryJson { get; set; }
public string InputLayerName { get; set; }
public string fieldName { get; set; }
public bool GetSatelliteData { get; set; }
public bool GetVanDerSatData { get; set; }
public string SatelliteBand { get; set; }
public bool StoreSatelliteStatisticsSingleImage { get; set; }
public bool StoreSatelliteStatisticsCropYear { get; set; }
public bool StoreVanDerSatStatistics { get; set; }
//public bool GetSatelliteData { get; set; }
// public bool GetVanDerSatData { get; set; }
// public string SatelliteBand { get; set; }
// public bool StoreSatelliteStatisticsSingleImage { get; set; }
// public bool StoreSatelliteStatisticsCropYear { get; set; }
//public bool StoreVanDerSatStatistics { get; set; }
public bool GetShadowData { get; set; }
public bool GetCropRecordings { get; set; }
public string CrprecItem { get; set; }