예제 #1
0
        public async Task <ActionResult> CreateNewLayer([FromBody] CreateMapLayerDto dto)
        {
            ConversionMessageData messageData = new ConversionMessageData
            {
                LayerName    = dto.Name,
                DataLocation = dto.DataLocation,
                Description  = dto.Description
            };
            var requestId = await _mapData.CreateGdalConversionRequest(messageData);

            await _mapData.JobStatusTable.AddStatus(requestId, requestId);

            return(Json(new
            {
                requestId
            }));
        }