solved merging in poten app

This commit is contained in:
Riepma
2021-04-07 11:10:47 +02:00
committed by Mark van der Wal
14 changed files with 27 additions and 840 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -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");

View File

@@ -319,10 +319,10 @@
//}
{
"File": "PlantingSampleDataLutum.zip",
"File": "PlantingSampleDataLutum_TEST2.zip",
"OutputFileName": "2021.03.15_vraPoten_SampleData",
"FieldName": "lutum",
"PlantingYear": 2020,
"PlantingYear": 2021,
"MeanDensity": "30",
"Variation": "20",
"UseShadow": false,
@@ -341,8 +341,8 @@
},
"GenerateTaskmap": true,
"OutputType": "isoxml", // "shape" or "isoxml" if isoxml also add ddiCode
"DdiCode": "0001",
"OutputType": "shape", // "shape" or "isoxml" if isoxml also add ddiCode
"DdiCode": "0001",
"CellWidth": "3",
"CellHeight": "10",
"Centered": "true",

View File

@@ -1,10 +1,10 @@
{
"Authority": "https://accounts.test.farmmaps.eu/",
"Endpoint": "https://test.farmmaps.eu/",
"BasePath": "api/v1",
"DiscoveryEndpointUrl": "https://accounts.test.farmmaps.eu/.well-known/openid-configuration",
"RedirectUri": "http://example.nl/api",
"ClientId": "",
"ClientSecret": "",
"Scopes": [ "api" ]
}
"Authority": "https://accounts.test.farmmaps.eu/",
"Endpoint": "https://test.farmmaps.eu/",
"BasePath": "api/v1",
"DiscoveryEndpointUrl": "https://accounts.test.farmmaps.eu/.well-known/openid-configuration",
"RedirectUri": "http://example.nl/api",
"ClientId": "",
"ClientSecret": "",
"Scopes": [ "api" ]
}