From 1620bfd1f5d4a14bb07c1c7e9a172fef8e9a2cfb Mon Sep 17 00:00:00 2001 From: George Date: Mon, 21 Aug 2023 11:38:59 +0100 Subject: [PATCH 1/2] [#223] Add in type for valid geojson output from route planner --- polar_route/route_planner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polar_route/route_planner.py b/polar_route/route_planner.py index 2583412e..ef844ef6 100644 --- a/polar_route/route_planner.py +++ b/polar_route/route_planner.py @@ -670,7 +670,8 @@ def compute_smoothed_routes(self,blocked_metric='SIC',debugging=False): SmoothedPath['properties']['distance'] = list(DistanceLegs) SmoothedPath['properties']['speed'] = list(SpeedLegs) SmoothedPaths += [SmoothedPath] - + + geojson['type'] = "FeatureCollection" geojson['features'] = SmoothedPaths self.smoothed_paths = geojson self.mesh['paths'] = self.smoothed_paths \ No newline at end of file From c60ee4c38138e3b466d3b2a3fbfc8c549ca81a5f Mon Sep 17 00:00:00 2001 From: George Date: Mon, 21 Aug 2023 11:57:23 +0100 Subject: [PATCH 2/2] Update version number --- polar_route/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polar_route/__init__.py b/polar_route/__init__.py index a23be521..1a24bd01 100644 --- a/polar_route/__init__.py +++ b/polar_route/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.2.20" +__version__ = "0.2.21" __description__ = "PolarRoute: Long-distance maritime polar route planning taking into account complex changing environmental conditions" __license__ = "MIT" __author__ = "Jonathan Smith, Samuel Hall, George Coombs, Harrison Abbot, Ayat Fekry, James Byrne, Michael Thorne, Maria Fox"