Skip to content

Commit

Permalink
Merge pull request #224 from antarctica/geojson_route_fix
Browse files Browse the repository at this point in the history
Geojson smoothed route fix
  • Loading branch information
gecoombs authored Aug 21, 2023
2 parents 8a42776 + c60ee4c commit bf3b13c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion polar_route/__init__.py
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 2 additions & 1 deletion polar_route/route_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bf3b13c

Please sign in to comment.