Kontinuation opened a new issue, #2611:
URL: https://github.com/apache/sedona/issues/2611

   When splitting linework by a line blade, the result contains extra short 
segments that should be merged back into longer line strings. This appears to 
be caused by JTS overlay noding producing split segments that are not 
recombined unless they are true split points (intersections or original 
endpoints).
   
   Reproduction
   
   Splitted closed linestring (a circle):
   
   ```
   LINESTRING (-117.76405581088967 34.111876749328026, -117.76407506132291 
34.11170068822483,
   -117.76413523652074 34.111531133837936, -117.76423402376724 
34.11137460199335,
   -117.76436762657538 34.11123710803779, -117.76453091060647 34.11112393568514,
   -117.76471760098879 34.11103943398174, -117.76492052345083 34.11098685019075,
   -117.76513188000408 34.1109682050154, -117.76534354858369 34.11098421495394,
   -117.76554739513688 34.11103426476887, -117.76573558617179 34.11111643112786,
   -117.76590088976099 34.111227556508084, -117.76603695343799 
34.11136337052523,
   -117.76613854831002 34.11151865402651, -117.76620177000793 34.11168743964393,
   -117.76622418874936 34.111863241103265, -117.76620494274577 
34.11203930247842,
   -117.76614477135817 34.11220885781403, -117.7660459867224 34.11236539113964,
   -117.76591238492807 34.11250288688306, -117.7657491001595 34.11261606105824,
   -117.7655624074007 34.11270056434135, -117.76535948128496 34.112753149228745,
   -117.76514812035703 34.11277179485027, -117.76493644734776 
34.112755784639766,
   -117.76473259698435 34.112705733876126, -117.76454440333869 
34.11262356603611,
   -117.76437909873567 34.11251243886801, -117.76424303579616 34.11237662302835,
   -117.76414144330062 34.112221337947354, -117.76407822525644 
34.11205255123353,
   -117.76405581088967 34.111876749328026)
   ```
   
   Blade:
   
   ```
   LINESTRING (-117.7640751398563 34.111535124121441, -117.76628486838135 
34.112204866513046)
   ```
   
   Repro steps
   1. Construct the polygon and knife line above.
   2. Split the polygon’s exterior ring by the knife line 
(`ST_Split(closed_linestring, blade)`).
   3. Inspect result geometries.
   
   <img width="500" alt="Image" 
src="https://github.com/user-attachments/assets/dad648bd-2fff-4a5d-8da9-49c76c0e5383";
 />
   
   Expected
   - Exactly 2 line strings (two semicircle arcs).
   - Each line string length ≈ half the original perimeter.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to