From c2515281d16d99efd881a143cfda6569a8b815ad Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Fri, 2 Jul 2021 10:34:30 +0200 Subject: [PATCH] attribute pass fix for shapetogeotiff --- FarmmapsApi/Services/GeneralService.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/FarmmapsApi/Services/GeneralService.cs b/FarmmapsApi/Services/GeneralService.cs index 97ca42f..0d698b9 100644 --- a/FarmmapsApi/Services/GeneralService.cs +++ b/FarmmapsApi/Services/GeneralService.cs @@ -6,7 +6,6 @@ using System.Threading.Tasks; using FarmmapsApi.Models; using Google.Apis.Upload; using Microsoft.Extensions.Logging; -using Newtonsoft.Json; using Newtonsoft.Json.Linq; using static FarmmapsApi.Extensions; using static FarmmapsApiSamples.Constants; @@ -73,7 +72,7 @@ namespace FarmmapsApi.Services { request.attributes["resolution"] = resolution.ToString(); if(inputLayerNames.Length > 0) - request.attributes["inputLayers"] = $"[{string.Join(",", inputLayerNames)}]"; + request.attributes["inputLayers"] = $"[{string.Join(",", inputLayerNames.Select(v => $"\"{v}\""))}]"; }); return await FindChildItemAsync(shapeItem.ParentCode, GEOTIFF_PROCESSED_ITEMTYPE, shapeItem.Name,