forked from FarmMaps/FarmMapsApiClient
updated poten&nbs, both work properly again
This commit is contained in:
@@ -78,11 +78,7 @@ namespace FarmmapsVRApoten
|
||||
$"VRA Poten cropfield {input.OutputFileName}", input.PlantingYear,
|
||||
input.GeometryJson.ToString(Formatting.None));
|
||||
|
||||
//Item cropfieldItem;
|
||||
// _logger.LogInformation("Cropfield already exists, trying to get it");
|
||||
//cropfieldItem = await _farmmapsApiService.GetItemAsync("2927b80f63b946afb36821470b9c5c23");
|
||||
|
||||
//Calculating shadow map
|
||||
//Downloading shadowMap for own interpretation
|
||||
if (useShadow) {
|
||||
_logger.LogInformation("Calculate shadow map for field");
|
||||
var shadowItem = await _generalService.RunShadowTask(cropfieldItem);
|
||||
@@ -96,7 +92,6 @@ namespace FarmmapsVRApoten
|
||||
Path.Combine(DownloadFolder, $"{input.OutputFileName}.shadow.zip"));
|
||||
}
|
||||
|
||||
|
||||
_logger.LogInformation("Looking for local data to use");
|
||||
var localDataAvailable = input.File;
|
||||
var geotiffItem = (Item)null;
|
||||
@@ -185,7 +180,13 @@ namespace FarmmapsVRApoten
|
||||
var taskmap = (Item)null;
|
||||
if (input.OutputType == "isoxml")
|
||||
{
|
||||
|
||||
|
||||
if (input.DdiCode == null)
|
||||
{
|
||||
_logger.LogInformation("DDi not given. Using expected identifiers");
|
||||
if (countPerArea == true) {input.DdiCode = input.DdiCode = "0011";}
|
||||
else { input.DdiCode = "0016"; };
|
||||
}
|
||||
taskmap = await _generalService.CreateTaskmap(cropfieldItem: cropfieldItem, tiffItem: applianceMapItem, outputType: input.OutputType, cellWidth: input.CellWidth,
|
||||
cellHeight: input.CellHeight, startPoint: input.StartPoint.ToString(Formatting.None), ddiCode: input.DdiCode, centered: input.Centered,
|
||||
endPoint: input.EndPoint.ToString(Formatting.None), angle: input.Angle, precision: input.Precision,
|
||||
|
Reference in New Issue
Block a user