Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-2614

LP:857087 - Wrong result with ST_INTERSECTS and LINESTRINGs

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      This query:

      SELECT ST_INTERSECTS( GeomFromText('MULTILINESTRING( ( 4030 3045 , 3149 2461 , 3004 3831 , 3775 2976 ) )') , GeomFromText('LINESTRING(3058.41 3187.91,3081.52 3153.19,3042.99 3127.57,3019.89 3162.29,3039.07 3175.05,3039.07 3175.05,3058.41 3187.91,3081.52 3153.19,3042.99 3127.57,3019.89 3162.29)') );

      returns TRUE with PostGIS and False with MariaDB. Visual examination with a GUI editor shows that intersection does indeed exist.

      The shape of the second linestring seems to be important. This linestring was taken from an actual openstreetmap , so I assume it is realistic.

      ST_INTERSECTION() also reports a non-empty intersection, so ST_INTERSECTS must be TRUE.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 857087

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 857087

              People

              • Assignee:
                holyfoot Alexey Botchkov
                Reporter:
                philipstoev Philip Stoev
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: