added option to process tiff data to NBS and Planting applicaions

This commit is contained in:
2020-10-07 22:06:56 +02:00
parent b56b38c308
commit ecfc76105f
3 changed files with 53 additions and 24 deletions

View File

@@ -128,6 +128,19 @@ namespace FarmmapsVRApoten
Path.Combine(DownloadFolder, $"{input.OutputFileName}.BOFEK.zip"));
}
else if (input.File.Contains(".tif") || input.File.Contains(".geotiff")) {
_logger.LogInformation("input = tiff data");
var dataPath = Path.Combine("Data", input.File);
geotiffItem = await _generalService.UploadDataAsync(uploadedRoot, GEOTIFF_PROCESSED_ITEMTYPE, dataPath,
Path.GetFileNameWithoutExtension(input.File));
if (geotiffItem == null) {
_logger.LogError("Could not find item for uploaded data");
return;
}
}
else
{
var isGeoJson = input.File.Contains("json");