File tree 2 files changed +10
-1
lines changed 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
# CHANGELOG
2
2
3
+ ## 2.2.6
4
+ FIXED:
5
+ - Ignore turf errors for steps simplification in pgrSource, and add a warning to analyse which steps trigger the error
6
+
3
7
## 2.2.5
4
8
5
9
FEAT:
Original file line number Diff line number Diff line change @@ -1028,7 +1028,12 @@ module.exports = class pgrSource extends Source {
1028
1028
1029
1029
// On n'enlève les valeurs dupliquées que si la linestring est plus longue que 2 points
1030
1030
if ( currentPgrRouteStep . geometry . coordinates . length > 2 ) {
1031
- currentPgrRouteStep . geometry . coordinates = turf . cleanCoords ( currentPgrRouteStep . geometry ) . coordinates
1031
+ try {
1032
+ currentPgrRouteStep . geometry . coordinates = turf . cleanCoords ( currentPgrRouteStep . geometry ) . coordinates ;
1033
+ } catch ( e ) {
1034
+ LOGGER . warn ( e ) ;
1035
+ LOGGER . warn ( currentPgrRouteStep ) ;
1036
+ }
1032
1037
}
1033
1038
}
1034
1039
You can’t perform that action at this time.
0 commit comments