forked from FarmMaps/FarmMapsApiClient
added layer specification VRApoten
This commit is contained in:
@@ -59,6 +59,7 @@ namespace FarmmapsVRApoten
|
||||
var fieldName = input.FieldName;
|
||||
bool useShadow = input.UseShadow;
|
||||
bool countPerArea = input.CountPerArea;
|
||||
var inputLayerName = input.InputLayerName;
|
||||
|
||||
var myDrive = roots.SingleOrDefault(r => r.Name == "My drive");
|
||||
if (myDrive == null) {
|
||||
@@ -78,6 +79,8 @@ namespace FarmmapsVRApoten
|
||||
$"VRA Poten cropfield {input.OutputFileName}", input.PlantingYear,
|
||||
input.GeometryJson.ToString(Formatting.None));
|
||||
|
||||
_logger.LogInformation($"CropfielditemCode: {cropfieldItem.Code}");
|
||||
|
||||
//Downloading shadowMap for own interpretation
|
||||
if (useShadow) {
|
||||
_logger.LogInformation("Calculate shadow map for field");
|
||||
@@ -156,7 +159,7 @@ namespace FarmmapsVRApoten
|
||||
|
||||
// INPUT IS NEEDED as GEOTIFF
|
||||
var applianceMapItem =
|
||||
await _potenService.CalculateApplicationMapAsync(cropfieldItem, geotiffItem, meanDensity, variation, countPerArea, useShadow);
|
||||
await _potenService.CalculateApplicationMapAsync(cropfieldItem, geotiffItem, meanDensity, variation, countPerArea, useShadow, inputLayerName);
|
||||
|
||||
if (applianceMapItem == null) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user