Compare commits
3 Commits
8bb5c6f581
...
641e09f833
Author | SHA1 | Date | |
---|---|---|---|
641e09f833 | |||
8c5a0aed95 | |||
59f9ef4743 |
@ -96,7 +96,7 @@ namespace FarmmapsKPI
|
|||||||
return;
|
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;
|
Item cropfieldItem;
|
||||||
if (useCreatedCropfield == true || string.IsNullOrEmpty(_settings.CropfieldItemCode))
|
if (useCreatedCropfield == true || string.IsNullOrEmpty(_settings.CropfieldItemCode))
|
||||||
{
|
{
|
||||||
@ -143,8 +143,6 @@ namespace FarmmapsKPI
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get KPI data for saving it in a file
|
// Get KPI data for saving it in a file
|
||||||
|
|
||||||
|
|
||||||
_logger.LogInformation($"Trying to get the cropfielditem: {cropfieldItem}");
|
_logger.LogInformation($"Trying to get the cropfielditem: {cropfieldItem}");
|
||||||
var KPIItem = await _generalService.GetKpiItemsForCropField(cropfieldItem);
|
var KPIItem = await _generalService.GetKpiItemsForCropField(cropfieldItem);
|
||||||
|
|
||||||
|
@ -2,30 +2,49 @@
|
|||||||
{
|
{
|
||||||
"UseCreatedCropfield": false,
|
"UseCreatedCropfield": false,
|
||||||
"outputFileName": "TestData",
|
"outputFileName": "TestData",
|
||||||
"fieldName": "TestField",
|
//"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\
|
//"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,
|
"GetCropRecordings": false,
|
||||||
"CrprecItem": "...", //item code of de crop recording parrent - can be found by opening the crop recording page of a field.
|
"CropYear": 2022,
|
||||||
"GetShadowData": false,
|
"dataDate": "2022-04-15T00:00:00Z",
|
||||||
"GetSatelliteData": false,
|
"dataEndDate": "2022-09-15T00:00:00Z",
|
||||||
"SatelliteBand": "wdvi", // "natural", "ndvi" or "wdvi"
|
"data": {
|
||||||
"StoreSatelliteStatisticsSingleImage": false,
|
//"area": 4.22,
|
||||||
"StoreSatelliteStatisticsCropYear": false,
|
"final": true,
|
||||||
"GetVanDerSatData": false,
|
//"soilCode": "5",
|
||||||
"StoreVanDerSatStatistics": false,
|
"soilName": "Loam",
|
||||||
"CropYear": 2020,
|
"cropTypeCode": "1010101",
|
||||||
"ProcessAggegrateKpi": "false", // toegevoegd, want alleen veld level KPIs voor nu.
|
"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": {
|
"geometryJson": {
|
||||||
"type": "Polygon",
|
"type": "Polygon",
|
||||||
"coordinates": [
|
"coordinates": [
|
||||||
[
|
[
|
||||||
[ 4.960707146896585, 52.800583669708487 ],
|
[
|
||||||
[ 4.960645975538824, 52.800470217610922 ],
|
5.5945257993548765,
|
||||||
[ 4.962140695752897, 52.799177147194797 ],
|
52.57080744107003
|
||||||
[ 4.967523821195745, 52.801502400041208 ],
|
],
|
||||||
[ 4.966336768950911, 52.802543735879809 ],
|
[
|
||||||
[ 4.961711880764330, 52.801009996856429 ],
|
5.598645994070678,
|
||||||
[ 4.960707146896585, 52.800583669708487 ]
|
52.571540800206236
|
||||||
|
],
|
||||||
|
[
|
||||||
|
5.599381743127071,
|
||||||
|
52.57012773140724
|
||||||
|
],
|
||||||
|
[
|
||||||
|
5.595408698222548,
|
||||||
|
52.56968054825188
|
||||||
|
],
|
||||||
|
[
|
||||||
|
5.5945257993548765,
|
||||||
|
52.57080744107003
|
||||||
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -15,12 +15,6 @@ namespace FarmmapsKPI.Models
|
|||||||
public JObject Data { get; set; }
|
public JObject Data { get; set; }
|
||||||
public string InputLayerName { get; set; }
|
public string InputLayerName { get; set; }
|
||||||
public string fieldName { 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 GetShadowData { get; set; }
|
||||||
public bool GetCropRecordings { get; set; }
|
public bool GetCropRecordings { get; set; }
|
||||||
public string CrprecItem { get; set; }
|
public string CrprecItem { get; set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user