Compare commits

..

3 Commits

3 changed files with 40 additions and 29 deletions

View File

@ -96,7 +96,7 @@ namespace FarmmapsKPI
return;
}
// Use already created cropfield or create new one
// Use already created cropfield or create new one, added a Data input, with field specific data for the KPI calculation
Item cropfieldItem;
if (useCreatedCropfield == true || string.IsNullOrEmpty(_settings.CropfieldItemCode))
{
@ -143,8 +143,6 @@ namespace FarmmapsKPI
}
// Get KPI data for saving it in a file
_logger.LogInformation($"Trying to get the cropfielditem: {cropfieldItem}");
var KPIItem = await _generalService.GetKpiItemsForCropField(cropfieldItem);

View File

@ -2,30 +2,49 @@
{
"UseCreatedCropfield": false,
"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\
//"fieldName": "aardappelveld_test",
//"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": 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,
"SatelliteBand": "wdvi", // "natural", "ndvi" or "wdvi"
"StoreSatelliteStatisticsSingleImage": false,
"StoreSatelliteStatisticsCropYear": false,
"GetVanDerSatData": false,
"StoreVanDerSatStatistics": false,
"CropYear": 2020,
"ProcessAggegrateKpi": "false", // toegevoegd, want alleen veld level KPIs voor nu.
"CropYear": 2022,
"dataDate": "2022-04-15T00:00:00Z",
"dataEndDate": "2022-09-15T00:00:00Z",
"data": {
//"area": 4.22,
"final": true,
//"soilCode": "5",
"soilName": "Loam",
"cropTypeCode": "1010101",
"cropTypeName": "Potato",
//"rootDepthMax": 45,
//"emergenceDate": "2022-05-16T00:00:00",
"productionPurposeCode": "003"
//"productionPurposeName": "consumption"
},
//"ProcessAggegrateKpi": "false", // toegevoegd, want alleen veld level KPIs voor nu.
"geometryJson": {
"type": "Polygon",
"coordinates": [
[
[ 4.960707146896585, 52.800583669708487 ],
[ 4.960645975538824, 52.800470217610922 ],
[ 4.962140695752897, 52.799177147194797 ],
[ 4.967523821195745, 52.801502400041208 ],
[ 4.966336768950911, 52.802543735879809 ],
[ 4.961711880764330, 52.801009996856429 ],
[ 4.960707146896585, 52.800583669708487 ]
[
5.5945257993548765,
52.57080744107003
],
[
5.598645994070678,
52.571540800206236
],
[
5.599381743127071,
52.57012773140724
],
[
5.595408698222548,
52.56968054825188
],
[
5.5945257993548765,
52.57080744107003
]
]
]
}

View File

@ -15,12 +15,6 @@ namespace FarmmapsKPI.Models
public JObject Data { 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 GetShadowData { get; set; }
public bool GetCropRecordings { get; set; }
public string CrprecItem { get; set; }