Uploaded image for project: 'Apache Sedona'
  1. Apache Sedona
  2. SEDONA-639

ST_Split may produce inaccurate results when splitting linestrings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6.1

    Description

      Here is an example:

      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)
      

      The actual result is

      MULTILINESTRING ((-8.961173822708158 -3.93776773106963, -8.08908227533288 -3.8845245068873444))
      

      The expected result is

      MULTILINESTRING ((-8.961173822708158 -3.93776773106963, -8.100103048843774 -3.885197350829553), (-8.100103048843774 -3.885197350829553, -8.08908227533288 -3.8845245068873444))
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kontinuation Kristin Cowalcijk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m