master #8

Closed
jits wants to merge 5 commits from (deleted):master into master
Showing only changes of commit d1f95a039d - Show all commits

View File

@ -241,25 +241,25 @@ namespace FarmmapsNbs
Path.Combine(DownloadFolder, $"{input.OutputFileName}.application.zip"));
_logger.LogInformation("Application map can be found in {0}", Path.Combine(DownloadFolder, $"{input.OutputFileName}.application.zip"));
// //transforming tiff to shape
// var tiffItem = applicationMapItem;
//transforming tiff to shape
var tiffItem = applicationMapItem;
// if (tiffItem == null)
// {
// _logger.LogError("Could not find item for uploaded data");
// return;
// }
// _logger.LogInformation($"Converting geotiff to shape");
// var taskmap = await _generalService.GeotiffToShape(tiffItem);
// if (taskmap == null)
// {
// _logger.LogError("Something went wrong with geotiff to shape transformation");
// return;
// }
if (tiffItem == null)
{
_logger.LogError("Could not find item for uploaded data");
return;
}
_logger.LogInformation($"Converting geotiff to shape");
var taskmap = await _generalService.GeotiffToShape(tiffItem);
if (taskmap == null)
{
_logger.LogError("Something went wrong with geotiff to shape transformation");
return;
}
// _logger.LogInformation("Downloading taskmap");
// await _farmmapsApiService.DownloadItemAsync(taskmap.Code,
// Path.Combine(DownloadFolder, $"{input.OutputFileName}.taskmap.zip"));
_logger.LogInformation("Downloading taskmap");
await _farmmapsApiService.DownloadItemAsync(taskmap.Code,
Path.Combine(DownloadFolder, $"{input.OutputFileName}.taskmap.zip"));
}