added option to process tiff data to NBS and Planting applicaions
This commit is contained in:
		| @@ -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"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user