Skip to content

Commit

Permalink
Merge pull request #190 from burrscurr/main
Browse files Browse the repository at this point in the history
make sure points are created with trace CRS
  • Loading branch information
nreinicke authored Aug 22, 2024
2 parents 1707f4e + 5b16872 commit 142d810
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mappymatch/matchers/lcss/lcss.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
MatchResult,
Trace,
)
from mappymatch.utils.crs import XY_CRS

log = logging.getLogger(__name__)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 142d810

Please sign in to comment.