diff --git a/mappymatch/matchers/lcss/lcss.py b/mappymatch/matchers/lcss/lcss.py index 8f45f76..24cc0b3 100644 --- a/mappymatch/matchers/lcss/lcss.py +++ b/mappymatch/matchers/lcss/lcss.py @@ -20,7 +20,6 @@ MatchResult, Trace, ) -from mappymatch.utils.crs import XY_CRS log = logging.getLogger(__name__) @@ -74,12 +73,12 @@ def _join_segment(a: TrajectorySegment, b: TrajectorySegment): o = Coordinate( coordinate_id=None, geom=Point(end_road.geom.coords[-1]), - crs=XY_CRS, + crs=new_traces.crs, ) d = Coordinate( coordinate_id=None, geom=Point(start_road.geom.coords[0]), - crs=XY_CRS, + crs=new_traces.crs, ) path = self.road_map.shortest_path(o, d) new_path = a.path + path + b.path