Kristin Cowalcijk created SEDONA-639:
----------------------------------------

             Summary: ST_Split may produce inaccurate results when splitting 
linestrings
                 Key: SEDONA-639
                 URL: https://issues.apache.org/jira/browse/SEDONA-639
             Project: Apache Sedona
          Issue Type: Bug
            Reporter: Kristin Cowalcijk
             Fix For: 1.6.1


Here is an example:

{code:scala}
val linestring = wktReader.read("LINESTRING (-8.961173822708158 
-3.93776773106963, -8.08908227533288 -3.8845245068873444)")
val polygon = wktReader.read("POLYGON ((-6.318936372442209 -6.44985859539768, 
-8.669092633645995 -3.0659222341103956, -6.264600073171498 -3.075347218794894, 
-5.3654318906014495 -3.1019726170919877, -5.488002156793005 -5.892626167859213, 
-6.318936372442209 -6.44985859539768))")
val result: GeometryCollection = splitter.split(linestring, polygon)
println(result)
{code}

The actual result is

{code}
MULTILINESTRING ((-8.961173822708158 -3.93776773106963, -8.08908227533288 
-3.8845245068873444))
{code}

The expected result is

{code}
MULTILINESTRING ((-8.961173822708158 -3.93776773106963, -8.100103048843774 
-3.885197350829553), (-8.100103048843774 -3.885197350829553, -8.08908227533288 
-3.8845245068873444))
{code}





--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to