aw5600: added fields to interface
All checks were successful
FarmMaps.Develop/CarbonLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/CarbonLib/pipeline/head This commit looks good
This commit is contained in:
@@ -139,7 +139,7 @@ namespace FarmMapsAPI.Carbon
|
|||||||
Area = cropField.Area,
|
Area = cropField.Area,
|
||||||
HistoricalCropData = mappedCropData,
|
HistoricalCropData = mappedCropData,
|
||||||
SoilType = MapSoil(cropField.SoilType),
|
SoilType = MapSoil(cropField.SoilType),
|
||||||
SoilProperty = new SoilProperty { Clay_Content = cropField.SoilProperty.Clay_Content, OM_Const = cropField.SoilProperty.OM_Const, Depth10 = cropField.SoilProperty.Depth10 },
|
SoilProperty = new SoilProperty { Clay_Content = cropField.SoilProperty.Clay_Content, OM_Const = cropField.SoilProperty.OM_Const, Depth10 = cropField.SoilProperty.Depth10, Depth = cropField.SoilProperty.Depth, OM_Type = cropField.SoilProperty.OM_Type },
|
||||||
GreenManures = greenManures
|
GreenManures = greenManures
|
||||||
});
|
});
|
||||||
foreach (var crops in cropField.HistoricalCropData)
|
foreach (var crops in cropField.HistoricalCropData)
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ namespace CarbonService.Models
|
|||||||
public class SoilProperty
|
public class SoilProperty
|
||||||
{
|
{
|
||||||
public double? OM_Const { get; set; }
|
public double? OM_Const { get; set; }
|
||||||
|
public string OM_Type { get; set; }
|
||||||
public double? Clay_Content { get; set; }
|
public double? Clay_Content { get; set; }
|
||||||
public bool? Depth10 { get; set; }
|
public bool? Depth10 { get; set; }
|
||||||
public int? Depth { get; set; }
|
public int? Depth { get; set; }
|
||||||
|
|||||||
@@ -76,8 +76,10 @@ namespace FarmMapsAPI.Carbon.Models
|
|||||||
public class SoilPropertyFarmMaps
|
public class SoilPropertyFarmMaps
|
||||||
{
|
{
|
||||||
public double? OM_Const { get; set; }
|
public double? OM_Const { get; set; }
|
||||||
|
public string OM_Type { get; set; }
|
||||||
public double? Clay_Content { get; set; }
|
public double? Clay_Content { get; set; }
|
||||||
public bool Depth10 { get; set; }
|
public bool Depth10 { get; set; }
|
||||||
|
public int? Depth { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class GreenManureTypeFarmMaps
|
public class GreenManureTypeFarmMaps
|
||||||
|
|||||||
Reference in New Issue
Block a user