Skip to content

Conversation

@petern48
Copy link
Collaborator

@petern48 petern48 commented Nov 1, 2025

Did you read the Contributor Guide?

Is this PR related to a ticket?

What changes were proposed in this PR?

The previous behavior would return the original input if the merged result wasn't a single linestring. This PR returns the merged linestrings even if there is more than one, which corresponds to PostGIS behavior.

How was this patch tested?

Fixed old tests and added a new one.

Did this PR include necessary documentation updates?

  • Yes, I have updated the documentation.

@petern48 petern48 changed the title bug: Make ST_LineMerge return merged lines instead of original when there are more than one [GH-2137] bug: Make ST_LineMerge return merged lines instead of original when there are more than one Nov 2, 2025
@petern48 petern48 marked this pull request as ready for review November 2, 2025 02:14
@petern48 petern48 requested a review from jiayuasu as a code owner November 2, 2025 02:14
@jiayuasu jiayuasu added this to the sedona-1.8.1 milestone Nov 2, 2025
@jiayuasu jiayuasu merged commit 194d453 into apache:master Nov 2, 2025
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JTS's org.locationtech.jts.operation.linemerge.LineSequencer is useful

2 participants