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

LP:857087 - Wrong result with ST_INTERSECTS and LINESTRINGs

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • None
    • None
    • None

    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.

      Attachments

        Activity

          People

            holyfoot Alexey Botchkov
            philipstoev Philip Stoev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.