diff --git a/FarmmapsKPI/KPIInput.json b/FarmmapsKPI/KPIInput.json index 11aa2b4..1e4bc24 100644 --- a/FarmmapsKPI/KPIInput.json +++ b/FarmmapsKPI/KPIInput.json @@ -781,7 +781,7 @@ { "code": "fm009", //TODO: which codelist? "label": "strawyield", - "value": "6.8" //was 5.9 + "value": "6.8" } ], "CropYear": 2022, @@ -813,5 +813,71 @@ ] ] } + }, + { + "useExistingCropfieldWithChildren": false, + "deleteNewlyCreatedAfterCalc": true, + "fieldName": "test_WinterWheat_greenmanure", + //Note when you run the FarmmapsKPI project, somewhere to your C:\git\FarmMapsApiClient_KB34_MAST\FarmmapsKPI\bin\Debug\netcoreapp3.1\ directory, files named like this are written: + //'Settings_aardappelveld_test_Potato_ZeroFertilizer.json', where 'aardappelveld_test_Potato_ZeroFertilizer.json' is your fieldName (see below) + //1 useExistingCropfieldWithChildren = false -> create new + //2 useExistingCropfieldWithChildren = true && CropfieldItemCode = "" or absent -> read fieldName (see below) -> read all codes from settings json file + //3 useExistingCropfieldWithChildren = true && CropfieldItemCode like "deb48a74c5b54299bb852f17288010e9" in KPIinput -> if you have in your account already an existing cropfield then use that + "CropfieldItemCode": "", // could contain for example this: "abae97f89f3c4ac08953b1b8bea9f076" if this is an exisiting CropfieldItemCode in your account. + //And then if useExistingCropfieldWithChildren = true, this would be used. + "dataCropfield": { + //"area": 4.22, //Leave empty, KPI app will calculate it from geometry + "final": true, //always true + "soilCode": "1", //From codelist CL405. Can be omitted if unknown + "soilName": "Sand", //From codelist CL405 + "cropTypeCode": "1020101", //From codelist CL263 + "cropTypeName": "Winter wheat" //From codelist CL263 + }, + "CropRecordingItemCode": "", // could contain for example this: "314aa1b6480b493ba28a5f55039a01d4" if this is the CropRecordingItemCode of the provided CropfieldItemCode. And then if useExistingCropfieldWithChildren = true, this would be used + "OperationItemCodes": [], // could contain for example this: ["4d1a6f28ea3f414180663baa4b08c60f"] or ["4d1a6f28ea3f414180663baa4b08c60f","21e08386f0454ad79acfebf78649d59b"] if these are the operations of the provided CropRecordingItemCode. And then if useExistingCropfieldWithChildren = true, these would be used + "dataOperations": [], + "CropfieldCharacteristicItemCode": "", + "DataCropfieldCharacteristics": [ + { + "code": "860619", //From codelist CL265. 860619 refers to cropyield in ton/ha + "label": "cropyield", + "value": "10" + }, + { + "code": "501505", //From codelist CL265. 501505 refers to green manure after main crop. + "label": "cropgreenmanureaftercultivation", + "value": "1040102", // Code is from CL263. You can put any CL263 crop here. However, the KPI app only works with a limited selection of greenmanure crops, see CL104. + "cropHeight": 100, //optional input. Height of greemmanure in cm. If this value is 0 then it is assumed that the crop height is unknown. + "plantingDate": "2022-08-01T12:34:00" // optional input. Plantingsdate of greenmanure. required layout "2022-07-23T12:34:00". If this value is null then it is assumed that the plantingsdate is unknown. + } + ], + "CropYear": 2022, + "geometryJson": { + "type": "Polygon", + "coordinates": [ + [ + [ + 5.5945257993548765, + 52.57080744107003 + ], + [ + 5.598645994070678, + 52.571540800206236 + ], + [ + 5.599381743127071, + 52.57012773140724 + ], + [ + 5.595408698222548, + 52.56968054825188 + ], + [ + 5.5945257993548765, + 52.57080744107003 + ] + ] + ] + } } ] \ No newline at end of file