From b659cbc93460a8572d21f128fd38c3755144c2a1 Mon Sep 17 00:00:00 2001 From: Olga Nemt Date: Thu, 11 May 2023 17:58:26 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0,=20=D1=87=D1=82=D0=BE=20=D1=82=D0=BE=D1=87=D0=B5=D0=BA?= =?UTF-8?q?=20=D0=BF=D1=80=D0=B8=20=D0=BF=D0=BE=D1=81=D1=82=D1=80=D0=BE?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B8=20=D1=82=D1=80=D0=B0=D0=B5=D0=BA=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=B8=D0=B8=20=D0=B4=D0=BE=D0=BB=D0=B6=D0=BD=D0=BE?= =?UTF-8?q?=20=D0=B1=D1=8B=D1=82=D1=8C=20=D0=BC=D0=B8=D0=BD=D0=B8=D0=BC?= =?UTF-8?q?=D1=83=D0=BC=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Trajectory/TrajectoryVisualizationService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AsbCloudInfrastructure/Services/Trajectory/TrajectoryVisualizationService.cs b/AsbCloudInfrastructure/Services/Trajectory/TrajectoryVisualizationService.cs index ba7f9990..0da2851d 100644 --- a/AsbCloudInfrastructure/Services/Trajectory/TrajectoryVisualizationService.cs +++ b/AsbCloudInfrastructure/Services/Trajectory/TrajectoryVisualizationService.cs @@ -3,6 +3,7 @@ using AsbCloudApp.Repositories; using AsbCloudApp.Services; using System; using System.Collections.Generic; +using System.Linq; using System.Threading; using System.Threading.Tasks; @@ -46,6 +47,9 @@ namespace AsbCloudInfrastructure.Services.Trajectory /// private List GetTrajectoryVisualisation(TrajectoryDto[] geoCoordinates) { + if(geoCoordinates.Length < 2) + return new List(); + var cartesianCoordinates = new List(geoCoordinates.Length) { new (), };