forked from FarmMaps/FarmMapsApiClient
solved merging in poten app
This commit is contained in:
@@ -133,7 +133,7 @@ namespace FarmmapsVRApoten
|
||||
? await _generalService.UploadDataAsync(uploadedRoot, SHAPE_PROCESSED_ITEMTYPE, dataPath,
|
||||
Path.GetFileNameWithoutExtension(input.File))
|
||||
: await _generalService.UploadZipWithShapeAsync(uploadedRoot, dataPath,
|
||||
Path.GetFileNameWithoutExtension(input.File));
|
||||
Path.GetFileNameWithoutExtension(input.File), input.GeometryJson.ToString(Formatting.None));
|
||||
|
||||
if (shapeItem == null) {
|
||||
_logger.LogError("Something went wrong while searching for the shape file");
|
||||
@@ -188,6 +188,7 @@ namespace FarmmapsVRApoten
|
||||
if(input.GenerateTaskmap) {
|
||||
//GEOTIFF TO Taskmap
|
||||
_logger.LogInformation($"Converting geotiff to taskmap");
|
||||
|
||||
var taskmap = (Item)null;
|
||||
if (input.OutputType == "isoxml")
|
||||
{
|
||||
@@ -196,10 +197,11 @@ namespace FarmmapsVRApoten
|
||||
} else
|
||||
{
|
||||
taskmap = await _generalService.CreateTaskmap(cropfieldItem, applianceMapItem, input.OutputType, input.CellWidth, input.CellHeight, input.StartPoint.ToString(Formatting.None),
|
||||
input.Centered, input.EndPoint.ToString(Formatting.None), input.Angle);
|
||||
null, input.Centered, input.EndPoint.ToString(Formatting.None), input.Angle);
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (taskmap == null)
|
||||
{
|
||||
_logger.LogError("Something went wrong with geotiff to taskmap transformation");
|
||||
|
Reference in New Issue
Block a user