forked from FarmMaps/FarmMapsApiClient
		
	solved conflicts
This commit is contained in:
		@@ -74,8 +74,8 @@ namespace FarmMapsBlight
 | 
				
			|||||||
                cropfieldItem = await _farmmapsApiService.GetItemAsync(_settings.CropfieldItemCode);
 | 
					                cropfieldItem = await _farmmapsApiService.GetItemAsync(_settings.CropfieldItemCode);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            DateTime adviceDate = DateTime.Now.Date;
 | 
					            DateTime adviceDate = new DateTime(2020, 7, 7);// DateTime.Now.Date;
 | 
				
			||||||
            DateTime plantingDate = new DateTime(2020, 3, 20);
 | 
					            DateTime plantingDate = new DateTime(2020, 4, 20);
 | 
				
			||||||
            DateTime emergeDate = new DateTime(2020, 5, 20);
 | 
					            DateTime emergeDate = new DateTime(2020, 5, 20);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            var blightItem = await _blightService.CreateAdvice(cropfieldItem, adviceDate, plantingDate, emergeDate);
 | 
					            var blightItem = await _blightService.CreateAdvice(cropfieldItem, adviceDate, plantingDate, emergeDate);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -32,12 +32,12 @@ namespace FarmMapsBlight
 | 
				
			|||||||
                TaskType = "vnd.farmmaps.task.blight"
 | 
					                TaskType = "vnd.farmmaps.task.blight"
 | 
				
			||||||
            };
 | 
					            };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            taskRequest.attributes["d"] = DateTime.Now.Date.ToString("o");
 | 
					            taskRequest.attributes["d"] = adviceDate.ToUniversalTime().ToString("o");
 | 
				
			||||||
            taskRequest.attributes["plantingDate"] = plantingDate.ToUniversalTime().ToString("o");
 | 
					            taskRequest.attributes["plantingDate"] = plantingDate.ToUniversalTime().ToString("o");
 | 
				
			||||||
            taskRequest.attributes["emergeDate"] = emergeDate.ToUniversalTime().ToString("o");
 | 
					            taskRequest.attributes["emergeDate"] = emergeDate.ToUniversalTime().ToString("o");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            List<Spray> sprays = new List<Spray>();
 | 
					            List<Spray> sprays = new List<Spray>();
 | 
				
			||||||
            sprays.Add(new Spray() { fungicideCode = "FLEX", SprayTime = new DateTime(2020, 9, 1), dose = 0.6, isVRA = false });
 | 
					            sprays.Add(new Spray() { fungicideCode = "FLEX", SprayTime = new DateTime(2020, 7, 1), dose = 0.6, isVRA = false });
 | 
				
			||||||
            taskRequest.attributes["sprays"] = JsonConvert.SerializeObject(sprays);
 | 
					            taskRequest.attributes["sprays"] = JsonConvert.SerializeObject(sprays);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            List<Irrigation> irrigations = new List<Irrigation>();
 | 
					            List<Irrigation> irrigations = new List<Irrigation>();
 | 
				
			||||||
@@ -47,8 +47,8 @@ namespace FarmMapsBlight
 | 
				
			|||||||
            var taskCode = await _farmmapsApiService.QueueTaskAsync(cropfieldItem.Code, taskRequest);
 | 
					            var taskCode = await _farmmapsApiService.QueueTaskAsync(cropfieldItem.Code, taskRequest);
 | 
				
			||||||
            await PollTask(TimeSpan.FromSeconds(3), async (tokenSource) =>
 | 
					            await PollTask(TimeSpan.FromSeconds(3), async (tokenSource) =>
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                _logger.LogInformation("Checking blight task status");
 | 
					 | 
				
			||||||
                var itemTaskStatus = await _farmmapsApiService.GetTaskStatusAsync(cropfieldItem.Code, taskCode);
 | 
					                var itemTaskStatus = await _farmmapsApiService.GetTaskStatusAsync(cropfieldItem.Code, taskCode);
 | 
				
			||||||
 | 
					                _logger.LogInformation($"Checking blight task status: { itemTaskStatus.State}");
 | 
				
			||||||
                if (itemTaskStatus.IsFinished)
 | 
					                if (itemTaskStatus.IsFinished)
 | 
				
			||||||
                    tokenSource.Cancel();
 | 
					                    tokenSource.Cancel();
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,7 +11,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  <ItemGroup>
 | 
					  <ItemGroup>
 | 
				
			||||||
    <None Update="appsettings.json">
 | 
					    <None Update="appsettings.json">
 | 
				
			||||||
      <CopyToOutputDirectory>Never</CopyToOutputDirectory>
 | 
					      <CopyToOutputDirectory>always</CopyToOutputDirectory>
 | 
				
			||||||
    </None>
 | 
					    </None>
 | 
				
			||||||
  </ItemGroup>
 | 
					  </ItemGroup>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										6
									
								
								FarmmapsNbs/Models/Settings.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								FarmmapsNbs/Models/Settings.cs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					namespace FarmmapsNbs {
 | 
				
			||||||
 | 
					    public class Settings {
 | 
				
			||||||
 | 
					        public string CropfieldItemCode { get; set; }
 | 
				
			||||||
 | 
					        public string SatelliteTaskCode { get; set; }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -1,5 +1,112 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
    {
 | 
					  {
 | 
				
			||||||
 | 
					    "file": "Scan_1_20190605.json",
 | 
				
			||||||
 | 
					    "inputVariable": "irmi",
 | 
				
			||||||
 | 
					    "outputFileName": "vranbs1",
 | 
				
			||||||
 | 
					    "plantingDate": "2019-04-18",
 | 
				
			||||||
 | 
					    "measurementDate": "2019-06-05",
 | 
				
			||||||
 | 
					    "potatoPurposeType": "consumption",
 | 
				
			||||||
 | 
					    "targetYield": 45,
 | 
				
			||||||
 | 
					    "geometryJson": {
 | 
				
			||||||
 | 
					      "type": "Polygon",
 | 
				
			||||||
 | 
					      "coordinates": [
 | 
				
			||||||
 | 
					        [
 | 
				
			||||||
 | 
					          [ 3.40843828875524, 50.638966444680605 ],
 | 
				
			||||||
 | 
					          [ 3.408953272886064, 50.639197789621612 ],
 | 
				
			||||||
 | 
					          [ 3.409242951459603, 50.639469958681836 ],
 | 
				
			||||||
 | 
					          [ 3.409328782148028, 50.639612846807708 ],
 | 
				
			||||||
 | 
					          [ 3.409457528180712, 50.639789755314411 ],
 | 
				
			||||||
 | 
					          [ 3.409639918393741, 50.640014292074966 ],
 | 
				
			||||||
 | 
					          [ 3.409833037442765, 50.640211611372706 ],
 | 
				
			||||||
 | 
					          [ 3.410069071836049, 50.640395321698435 ],
 | 
				
			||||||
 | 
					          [ 3.410380208081761, 50.640572227259661 ],
 | 
				
			||||||
 | 
					          [ 3.410605513638958, 50.640715112034222 ],
 | 
				
			||||||
 | 
					          [ 3.411925160474145, 50.641177783561204 ],
 | 
				
			||||||
 | 
					          [ 3.411935889310142, 50.640728720085136 ],
 | 
				
			||||||
 | 
					          [ 3.412590348309737, 50.63948356709389 ],
 | 
				
			||||||
 | 
					          [ 3.413244807309242, 50.638224772339846 ],
 | 
				
			||||||
 | 
					          [ 3.413400375432099, 50.637901562841307 ],
 | 
				
			||||||
 | 
					          [ 3.413539850300779, 50.637449065809889 ],
 | 
				
			||||||
 | 
					          [ 3.413475477284437, 50.637418445552932 ],
 | 
				
			||||||
 | 
					          [ 3.40999396998362, 50.637449065810451 ],
 | 
				
			||||||
 | 
					          [ 3.409940325803365, 50.638102293212661 ],
 | 
				
			||||||
 | 
					          [ 3.409575545377398, 50.638483338338325 ],
 | 
				
			||||||
 | 
					          [ 3.409060561246574, 50.638707881340494 ],
 | 
				
			||||||
 | 
					          [ 3.40843828875524, 50.638966444680605 ]
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					      ]
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      //{
 | 
				
			||||||
 | 
					      //"file": "[...].json",
 | 
				
			||||||
 | 
					      //"inputVariable": "wdvi",
 | 
				
			||||||
 | 
					      //"outputFileName": "20201211_Mahindra",
 | 
				
			||||||
 | 
					      //"plantingDate": "2020-11-25",
 | 
				
			||||||
 | 
					      //"measurementDate": "2020-12-08",
 | 
				
			||||||
 | 
					      //"potatoPurposeType": "consumption",
 | 
				
			||||||
 | 
					      //"targetYield": 45,
 | 
				
			||||||
 | 
					      //"geometryJson": {
 | 
				
			||||||
 | 
					      //  "type": "Polygon",
 | 
				
			||||||
 | 
					      //  "coordinates": [
 | 
				
			||||||
 | 
					      //    [
 | 
				
			||||||
 | 
					      //      [ 75.4652734163369, 31.26328617861426 ],
 | 
				
			||||||
 | 
					      //      [ 75.46527659380338, 31.26437743805827 ],
 | 
				
			||||||
 | 
					      //      [ 75.46494267602188, 31.26438166160194 ],
 | 
				
			||||||
 | 
					      //      [ 75.46493257618651, 31.26462192072676 ],
 | 
				
			||||||
 | 
					      //      [ 75.46438242791261, 31.26462132638865 ],
 | 
				
			||||||
 | 
					      //      [ 75.46438225728252, 31.26334267015003 ],
 | 
				
			||||||
 | 
					      //      [ 75.46448543502072, 31.26333463263533 ],
 | 
				
			||||||
 | 
					      //      [ 75.46448842093658, 31.26302891147988 ],
 | 
				
			||||||
 | 
					      //      [ 75.46507631089699, 31.26299589154944 ],
 | 
				
			||||||
 | 
					      //      [ 75.46509039016291, 31.26329023051392 ],
 | 
				
			||||||
 | 
					      //      [ 75.4652734163369, 31.26328617861426 ]
 | 
				
			||||||
 | 
					      //    ]
 | 
				
			||||||
 | 
					      //  ]
 | 
				
			||||||
 | 
					      //}
 | 
				
			||||||
 | 
					    //}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    //},
 | 
				
			||||||
 | 
					    //{
 | 
				
			||||||
 | 
					    //  "file": "Scan_1_20190605.zip",
 | 
				
			||||||
 | 
					    //  "inputVariable": "irmi",
 | 
				
			||||||
 | 
					    //  "outputFileName": "vranbs2",
 | 
				
			||||||
 | 
					    //  "plantingDate": "2019-04-18",
 | 
				
			||||||
 | 
					    //  "measurementDate": "2019-06-05",
 | 
				
			||||||
 | 
					    //  "potatoPurposeType": "starch",
 | 
				
			||||||
 | 
					    //  "targetYield": 45,
 | 
				
			||||||
 | 
					    //  "geometryJson": {
 | 
				
			||||||
 | 
					    //    "type": "Polygon",
 | 
				
			||||||
 | 
					    //    "coordinates": [
 | 
				
			||||||
 | 
					    //      [
 | 
				
			||||||
 | 
					    //        [ 3.40843828875524, 50.638966444680605 ],
 | 
				
			||||||
 | 
					    //        [ 3.408953272886064, 50.639197789621612 ],
 | 
				
			||||||
 | 
					    //        [ 3.409242951459603, 50.639469958681836 ],
 | 
				
			||||||
 | 
					    //        [ 3.409328782148028, 50.639612846807708 ],
 | 
				
			||||||
 | 
					    //        [ 3.409457528180712, 50.639789755314411 ],
 | 
				
			||||||
 | 
					    //        [ 3.409639918393741, 50.640014292074966 ],
 | 
				
			||||||
 | 
					    //        [ 3.409833037442765, 50.640211611372706 ],
 | 
				
			||||||
 | 
					    //        [ 3.410069071836049, 50.640395321698435 ],
 | 
				
			||||||
 | 
					    //        [ 3.410380208081761, 50.640572227259661 ],
 | 
				
			||||||
 | 
					    //        [ 3.410605513638958, 50.640715112034222 ],
 | 
				
			||||||
 | 
					    //        [ 3.411925160474145, 50.641177783561204 ],
 | 
				
			||||||
 | 
					    //        [ 3.411935889310142, 50.640728720085136 ],
 | 
				
			||||||
 | 
					    //        [ 3.412590348309737, 50.63948356709389 ],
 | 
				
			||||||
 | 
					    //        [ 3.413244807309242, 50.638224772339846 ],
 | 
				
			||||||
 | 
					    //        [ 3.413400375432099, 50.637901562841307 ],
 | 
				
			||||||
 | 
					    //        [ 3.413539850300779, 50.637449065809889 ],
 | 
				
			||||||
 | 
					    //        [ 3.413475477284437, 50.637418445552932 ],
 | 
				
			||||||
 | 
					    //        [ 3.40999396998362, 50.637449065810451 ],
 | 
				
			||||||
 | 
					    //        [ 3.409940325803365, 50.638102293212661 ],
 | 
				
			||||||
 | 
					    //        [ 3.409575545377398, 50.638483338338325 ],
 | 
				
			||||||
 | 
					    //        [ 3.409060561246574, 50.638707881340494 ],
 | 
				
			||||||
 | 
					    //        [ 3.40843828875524, 50.638966444680605 ]
 | 
				
			||||||
 | 
					    //      ]
 | 
				
			||||||
 | 
					    //    ]
 | 
				
			||||||
 | 
					    //  }
 | 
				
			||||||
 | 
					    //},
 | 
				
			||||||
 | 
					    //{
 | 
				
			||||||
 | 
					    //  "file": "Scan_1_20190605.zip",
 | 
				
			||||||
 | 
					    //  "inputVariable": "irmi",
 | 
				
			||||||
 | 
					       {
 | 
				
			||||||
        "file": "", // keep emptpy to use satellite image
 | 
					        "file": "", // keep emptpy to use satellite image
 | 
				
			||||||
        "inputVariable": "wdvi",
 | 
					        "inputVariable": "wdvi",
 | 
				
			||||||
        "InputLayerName": "wdvi",
 | 
					        "InputLayerName": "wdvi",
 | 
				
			||||||
@@ -151,6 +258,10 @@
 | 
				
			|||||||
    //      ]
 | 
					    //      ]
 | 
				
			||||||
    //    ]
 | 
					    //    ]
 | 
				
			||||||
    //  }
 | 
					    //  }
 | 
				
			||||||
 | 
					    //},
 | 
				
			||||||
 | 
					    //{
 | 
				
			||||||
 | 
					    //  "file": "Scan_1_20190605.zip",
 | 
				
			||||||
 | 
					    //  "inputVariable": "irmi",
 | 
				
			||||||
    //}
 | 
					    //}
 | 
				
			||||||
    //,
 | 
					    //,
 | 
				
			||||||
    //{
 | 
					    //{
 | 
				
			||||||
@@ -191,5 +302,9 @@
 | 
				
			|||||||
    //      ]
 | 
					    //      ]
 | 
				
			||||||
    //    ]
 | 
					    //    ]
 | 
				
			||||||
    //  }
 | 
					    //  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //}
 | 
					    //}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
							
								
								
									
										45
									
								
								FarmmapsZonering/Data/Points.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										45
									
								
								FarmmapsZonering/Data/Points.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,45 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					"type": "FeatureCollection",
 | 
				
			||||||
 | 
					"name": "Points",
 | 
				
			||||||
 | 
					"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
 | 
				
			||||||
 | 
					"features": [
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 9, "Data_decimal": 0.1 }, "geometry": { "type": "Point", "coordinates": [ 5.670697160803186, 52.529191329839897 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 3, "Data_decimal": 0.97 }, "geometry": { "type": "Point", "coordinates": [ 5.671065563240634, 52.529190448643625 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 9, "Data_decimal": 0.09 }, "geometry": { "type": "Point", "coordinates": [ 5.671433965661168, 52.5291895663036 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 1, "Data_decimal": 0.29 }, "geometry": { "type": "Point", "coordinates": [ 5.669222114450619, 52.528970163883578 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 10, "Data_decimal": 0.05 }, "geometry": { "type": "Point", "coordinates": [ 5.669590515080236, 52.528969287267856 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 3, "Data_decimal": 0.35 }, "geometry": { "type": "Point", "coordinates": [ 5.669958915693023, 52.528968409508401 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 2, "Data_decimal": 0.59 }, "geometry": { "type": "Point", "coordinates": [ 5.670327316288964, 52.528967530605286 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 1, "Data_decimal": 0.16 }, "geometry": { "type": "Point", "coordinates": [ 5.670695716868035, 52.528966650558438 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 7, "Data_decimal": 0.57 }, "geometry": { "type": "Point", "coordinates": [ 5.671064117430213, 52.528965769367922 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 6, "Data_decimal": 0.4 }, "geometry": { "type": "Point", "coordinates": [ 5.671432517975476, 52.528964887033666 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 2, "Data_decimal": 0.32 }, "geometry": { "type": "Point", "coordinates": [ 5.669220678033353, 52.528745484567601 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 1, "Data_decimal": 0.16 }, "geometry": { "type": "Point", "coordinates": [ 5.669589076787721, 52.528744607957577 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 7, "Data_decimal": 0.36 }, "geometry": { "type": "Point", "coordinates": [ 5.669957475525263, 52.528743730203921 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 3, "Data_decimal": 0.33 }, "geometry": { "type": "Point", "coordinates": [ 5.670325874245955, 52.528742851306561 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 1, "Data_decimal": 0.86 }, "geometry": { "type": "Point", "coordinates": [ 5.670694272949777, 52.528741971265497 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 6, "Data_decimal": 0.61 }, "geometry": { "type": "Point", "coordinates": [ 5.671062671636706, 52.528741090080729 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 9, "Data_decimal": 0.7 }, "geometry": { "type": "Point", "coordinates": [ 5.671431070306722, 52.528740207752286 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 4, "Data_decimal": 0.73 }, "geometry": { "type": "Point", "coordinates": [ 5.669219241632893, 52.528520805240142 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 5, "Data_decimal": 0.54 }, "geometry": { "type": "Point", "coordinates": [ 5.669587638512033, 52.528519928635895 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 1, "Data_decimal": 0.11 }, "geometry": { "type": "Point", "coordinates": [ 5.669956035374347, 52.528519050887994 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 10, "Data_decimal": 0.41 }, "geometry": { "type": "Point", "coordinates": [ 5.670324432219813, 52.528518171996353 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 3, "Data_decimal": 0.17 }, "geometry": { "type": "Point", "coordinates": [ 5.670692829048409, 52.52851729196108 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 5, "Data_decimal": 0.8 }, "geometry": { "type": "Point", "coordinates": [ 5.671061225860114, 52.528516410782132 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 4, "Data_decimal": 0.11 }, "geometry": { "type": "Point", "coordinates": [ 5.671429622654903, 52.528515528459451 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 3, "Data_decimal": 0.31 }, "geometry": { "type": "Point", "coordinates": [ 5.669217805249236, 52.528296125901214 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 9, "Data_decimal": 0.07 }, "geometry": { "type": "Point", "coordinates": [ 5.669586200253172, 52.528295249302751 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 10, "Data_decimal": 0.54 }, "geometry": { "type": "Point", "coordinates": [ 5.669954595240281, 52.528294371560584 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 8, "Data_decimal": 0.82 }, "geometry": { "type": "Point", "coordinates": [ 5.670322990210543, 52.528293492674734 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 7, "Data_decimal": 0.54 }, "geometry": { "type": "Point", "coordinates": [ 5.670691385163935, 52.528292612645224 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 2, "Data_decimal": 0.35 }, "geometry": { "type": "Point", "coordinates": [ 5.671059780100435, 52.528291731472009 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 1, "Data_decimal": 0.35 }, "geometry": { "type": "Point", "coordinates": [ 5.671428175020021, 52.528290849155169 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 8, "Data_decimal": 0.13 }, "geometry": { "type": "Point", "coordinates": [ 5.669216368882385, 52.528071446550889 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 10, "Data_decimal": 0.51 }, "geometry": { "type": "Point", "coordinates": [ 5.669584762011135, 52.528070569958146 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 7, "Data_decimal": 0.52 }, "geometry": { "type": "Point", "coordinates": [ 5.669953155123062, 52.528069692221734 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 8, "Data_decimal": 0.86 }, "geometry": { "type": "Point", "coordinates": [ 5.670321548218141, 52.528068813341662 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 10, "Data_decimal": 0.54 }, "geometry": { "type": "Point", "coordinates": [ 5.670689941296351, 52.528067933317907 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 7, "Data_decimal": 0.54 }, "geometry": { "type": "Point", "coordinates": [ 5.671058334357669, 52.528067052150526 ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 10, "Data_decimal": 0.33 }, "geometry": { "type": "Point", "coordinates": [ 5.671426727402074, 52.528066169839413 ] } }
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										40
									
								
								FarmmapsZonering/Data/Polygons.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								FarmmapsZonering/Data/Polygons.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,40 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					"type": "FeatureCollection",
 | 
				
			||||||
 | 
					"name": "Polygons",
 | 
				
			||||||
 | 
					"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
 | 
				
			||||||
 | 
					"features": [
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 4, "Data_decimal": 0.17 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.670445415146707, 52.529088625025459 ], [ 5.670436500109911, 52.529205353741368 ], [ 5.67100275425158, 52.529226856274043 ], [ 5.670445415146707, 52.529088625025459 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 3, "Data_decimal": 0.17 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.670474664765167, 52.528705646190737 ], [ 5.670509421984359, 52.528695389390876 ], [ 5.670475899473076, 52.528689479586824 ], [ 5.670474664765167, 52.528705646190737 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 8, "Data_decimal": 0.66 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.670529486595214, 52.527987838516857 ], [ 5.670513853610409, 52.528192528445118 ], [ 5.671080652223759, 52.528222889234513 ], [ 5.671037195788521, 52.52802077466923 ], [ 5.670529486595214, 52.527987838516857 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 6, "Data_decimal": 0.87 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.671088061587392, 52.528257349960555 ], [ 5.670500031678031, 52.528373505423083 ], [ 5.670475899473076, 52.528689479586824 ], [ 5.670509421984359, 52.528695389390876 ], [ 5.67114210124075, 52.528508686753064 ], [ 5.671088061587392, 52.528257349960555 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 2, "Data_decimal": 0.97 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.671208751860665, 52.528818676769426 ], [ 5.671298932270745, 52.529238103127824 ], [ 5.671622542615743, 52.529250391677266 ], [ 5.671678791037005, 52.528901541665995 ], [ 5.671208751860665, 52.528818676769426 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 8, "Data_decimal": 0.34 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.671805511114944, 52.528115629819482 ], [ 5.671223720783484, 52.528230552757869 ], [ 5.671782157848563, 52.528260465657667 ], [ 5.671805511114944, 52.528115629819482 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 2, "Data_decimal": 0.93 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.671223720783484, 52.528230552757869 ], [ 5.671088061587392, 52.528257349960555 ], [ 5.67114210124075, 52.528508686753064 ], [ 5.671772111651965, 52.528322771687201 ], [ 5.671782157848563, 52.528260465657667 ], [ 5.671223720783484, 52.528230552757869 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 9, "Data_decimal": 0.88 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.669598765293697, 52.528964122725455 ], [ 5.669756159705026, 52.52891767588612 ], [ 5.66960263338403, 52.528879598286942 ], [ 5.669598765293697, 52.528964122725455 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 3, "Data_decimal": 0.65 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.66964340911196, 52.528542716867584 ], [ 5.669617818752811, 52.528547771814544 ], [ 5.66960263338403, 52.528879598286942 ], [ 5.669756159705026, 52.52891767588612 ], [ 5.670010186520852, 52.528842712978594 ], [ 5.670075070608809, 52.528618816025038 ], [ 5.66964340911196, 52.528542716867584 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 2, "Data_decimal": 0.12 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.669646065617165, 52.527930529158823 ], [ 5.669636227085067, 52.52814551803705 ], [ 5.670203425137223, 52.528175900222543 ], [ 5.670262935417118, 52.527970546787003 ], [ 5.669646065617165, 52.527930529158823 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 4, "Data_decimal": 0.36 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.670124673219705, 52.528447651201468 ], [ 5.66964340911196, 52.528542716867584 ], [ 5.670075070608809, 52.528618816025038 ], [ 5.670124673219705, 52.528447651201468 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 1, "Data_decimal": 0.25 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.66997288555807, 52.528971428233667 ], [ 5.669910879416426, 52.5291853941944 ], [ 5.670436500109911, 52.529205353741368 ], [ 5.670445415146707, 52.529088625025459 ], [ 5.66997288555807, 52.528971428233667 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 4, "Data_decimal": 0.32 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.670010186520852, 52.528842712978594 ], [ 5.670474664765167, 52.528705646190737 ], [ 5.670475899473076, 52.528689479586824 ], [ 5.670075070608809, 52.528618816025038 ], [ 5.670010186520852, 52.528842712978594 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 5, "Data_decimal": 0.41 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.670262935417118, 52.527970546787003 ], [ 5.670203425137223, 52.528175900222543 ], [ 5.670513853610409, 52.528192528445118 ], [ 5.670529486595214, 52.527987838516857 ], [ 5.670262935417118, 52.527970546787003 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 7, "Data_decimal": 0.8 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.670500031678031, 52.528373505423083 ], [ 5.670124673219705, 52.528447651201468 ], [ 5.670075070608809, 52.528618816025038 ], [ 5.670475899473076, 52.528689479586824 ], [ 5.670500031678031, 52.528373505423083 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 9, "Data_decimal": 0.35 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.668970013365158, 52.529149666415094 ], [ 5.669598765293697, 52.528964122725455 ], [ 5.66960263338403, 52.528879598286942 ], [ 5.668980939909752, 52.528725405867227 ], [ 5.668923420100609, 52.52914789711555 ], [ 5.668970013365158, 52.529149666415094 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 4, "Data_decimal": 0.69 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.669617818752811, 52.528547771814544 ], [ 5.668988191186747, 52.528672144197635 ], [ 5.668980939909752, 52.528725405867227 ], [ 5.66960263338403, 52.528879598286942 ], [ 5.669617818752811, 52.528547771814544 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 3, "Data_decimal": 0.43 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.669636227085067, 52.52814551803705 ], [ 5.669646065617165, 52.527930529158823 ], [ 5.669094033437861, 52.527894717682074 ], [ 5.669064060973, 52.528114869735482 ], [ 5.669636227085067, 52.52814551803705 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 6, "Data_decimal": 0.6 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.669618253034461, 52.528538282012228 ], [ 5.669636227085067, 52.52814551803705 ], [ 5.669064060973, 52.528114869735482 ], [ 5.669020756513456, 52.528432947202063 ], [ 5.669618253034461, 52.528538282012228 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 3, "Data_decimal": 0.39 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.670509421984359, 52.528695389390876 ], [ 5.670474664765167, 52.528705646190737 ], [ 5.670445415146707, 52.529088625025459 ], [ 5.67100275425158, 52.529226856274043 ], [ 5.671298932270745, 52.529238103127824 ], [ 5.671208751860665, 52.528818676769426 ], [ 5.670509421984359, 52.528695389390876 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 3, "Data_decimal": 0.93 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.67114210124075, 52.528508686753064 ], [ 5.670509421984359, 52.528695389390876 ], [ 5.671208751860665, 52.528818676769426 ], [ 5.67114210124075, 52.528508686753064 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 5, "Data_decimal": 0.2 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.671772111651965, 52.528322771687201 ], [ 5.67114210124075, 52.528508686753064 ], [ 5.671208751860665, 52.528818676769426 ], [ 5.671678791037005, 52.528901541665995 ], [ 5.671772111651965, 52.528322771687201 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 6, "Data_decimal": 0.64 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.669756159705026, 52.52891767588612 ], [ 5.669598765293697, 52.528964122725455 ], [ 5.669589198259692, 52.529173178902582 ], [ 5.669910879416426, 52.5291853941944 ], [ 5.66997288555807, 52.528971428233667 ], [ 5.669756159705026, 52.52891767588612 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 7, "Data_decimal": 0.2 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.670010186520852, 52.528842712978594 ], [ 5.669756159705026, 52.52891767588612 ], [ 5.66997288555807, 52.528971428233667 ], [ 5.670010186520852, 52.528842712978594 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 10, "Data_decimal": 0.66 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.670474664765167, 52.528705646190737 ], [ 5.670010186520852, 52.528842712978594 ], [ 5.66997288555807, 52.528971428233667 ], [ 5.670445415146707, 52.529088625025459 ], [ 5.670474664765167, 52.528705646190737 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 2, "Data_decimal": 0.06 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.669598765293697, 52.528964122725455 ], [ 5.668970013365158, 52.529149666415094 ], [ 5.669589198259692, 52.529173178902582 ], [ 5.669598765293697, 52.528964122725455 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 1, "Data_decimal": 0.62 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.670500031678031, 52.528373505423083 ], [ 5.671088061587392, 52.528257349960555 ], [ 5.671080652223759, 52.528222889234513 ], [ 5.670513853610409, 52.528192528445118 ], [ 5.670500031678031, 52.528373505423083 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 1, "Data_decimal": 0.58 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.671223720783484, 52.528230552757869 ], [ 5.671805511114944, 52.528115629819482 ], [ 5.671812693849701, 52.528071082842963 ], [ 5.671037195788521, 52.52802077466923 ], [ 5.671080652223759, 52.528222889234513 ], [ 5.671223720783484, 52.528230552757869 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 2, "Data_decimal": 0.83 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.671088061587392, 52.528257349960555 ], [ 5.671223720783484, 52.528230552757869 ], [ 5.671080652223759, 52.528222889234513 ], [ 5.671088061587392, 52.528257349960555 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 5, "Data_decimal": 0.45 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.669617818752811, 52.528547771814544 ], [ 5.66964340911196, 52.528542716867584 ], [ 5.669618253034461, 52.528538282012228 ], [ 5.669617818752811, 52.528547771814544 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 4, "Data_decimal": 0.34 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.66964340911196, 52.528542716867584 ], [ 5.670124673219705, 52.528447651201468 ], [ 5.670203425137223, 52.528175900222543 ], [ 5.669636227085067, 52.52814551803705 ], [ 5.669618253034461, 52.528538282012228 ], [ 5.66964340911196, 52.528542716867584 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 10, "Data_decimal": 0.68 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.670124673219705, 52.528447651201468 ], [ 5.670500031678031, 52.528373505423083 ], [ 5.670513853610409, 52.528192528445118 ], [ 5.670203425137223, 52.528175900222543 ], [ 5.670124673219705, 52.528447651201468 ] ] ] } },
 | 
				
			||||||
 | 
					{ "type": "Feature", "properties": { "Data_whole": 9, "Data_decimal": 0.97 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.668988191186747, 52.528672144197635 ], [ 5.669617818752811, 52.528547771814544 ], [ 5.669618253034461, 52.528538282012228 ], [ 5.669020756513456, 52.528432947202063 ], [ 5.668988191186747, 52.528672144197635 ] ] ] } }
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -1,6 +1,7 @@
 | 
				
			|||||||
using System;
 | 
					using System;
 | 
				
			||||||
using Newtonsoft.Json.Linq;
 | 
					using Newtonsoft.Json.Linq;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace FarmmapsZonering.Models
 | 
					namespace FarmmapsZonering.Models
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    public class ZoneringInput
 | 
					    public class ZoneringInput
 | 
				
			||||||
@@ -16,5 +17,6 @@ namespace FarmmapsZonering.Models
 | 
				
			|||||||
        public bool CreateNewCropfield { get; set; }
 | 
					        public bool CreateNewCropfield { get; set; }
 | 
				
			||||||
        public int CropYear { get; set; }
 | 
					        public int CropYear { get; set; }
 | 
				
			||||||
        public JObject GeometryJson { get; set; }
 | 
					        public JObject GeometryJson { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -1,4 +1,5 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "InputItemOne": "20201106_Sentinel2_L2A_B04.tiff",
 | 
					        "InputItemOne": "20201106_Sentinel2_L2A_B04.tiff",
 | 
				
			||||||
        "InputItemTwo": "20201106_Sentinel2_L2A_B08.tiff",
 | 
					        "InputItemTwo": "20201106_Sentinel2_L2A_B08.tiff",
 | 
				
			||||||
@@ -26,4 +27,21 @@
 | 
				
			|||||||
            ]
 | 
					            ]
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  //{
 | 
				
			||||||
 | 
					  //  "File": "Points.json",
 | 
				
			||||||
 | 
					  //  "geometryJson": {
 | 
				
			||||||
 | 
					  //    "type": "Polygon",
 | 
				
			||||||
 | 
					  //    "coordinates": [
 | 
				
			||||||
 | 
					  //      [
 | 
				
			||||||
 | 
					  //        [ 5.66886041703652044, 52.52929999060298627 ],
 | 
				
			||||||
 | 
					  //        [ 5.6716230923214912, 52.52946316399909676 ],
 | 
				
			||||||
 | 
					  //        [ 5.67185376229668581, 52.5280565894154563 ],
 | 
				
			||||||
 | 
					  //        [ 5.66903207841337231, 52.52790646510525363 ],
 | 
				
			||||||
 | 
					  //        [ 5.66886041703652044, 52.52929999060298627 ]
 | 
				
			||||||
 | 
					  //      ]
 | 
				
			||||||
 | 
					  //    ]
 | 
				
			||||||
 | 
					  //  }
 | 
				
			||||||
 | 
					  //}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user