forked from FarmMaps/FarmMapsApiClient
attribute pass fix for shapetogeotiff
This commit is contained in:
parent
fa2075cbc6
commit
c2515281d1
@ -6,7 +6,6 @@ using System.Threading.Tasks;
|
|||||||
using FarmmapsApi.Models;
|
using FarmmapsApi.Models;
|
||||||
using Google.Apis.Upload;
|
using Google.Apis.Upload;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Newtonsoft.Json;
|
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using static FarmmapsApi.Extensions;
|
using static FarmmapsApi.Extensions;
|
||||||
using static FarmmapsApiSamples.Constants;
|
using static FarmmapsApiSamples.Constants;
|
||||||
@ -73,7 +72,7 @@ namespace FarmmapsApi.Services
|
|||||||
{
|
{
|
||||||
request.attributes["resolution"] = resolution.ToString();
|
request.attributes["resolution"] = resolution.ToString();
|
||||||
if(inputLayerNames.Length > 0)
|
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,
|
return await FindChildItemAsync(shapeItem.ParentCode, GEOTIFF_PROCESSED_ITEMTYPE, shapeItem.Name,
|
||||||
|
Loading…
Reference in New Issue
Block a user